Sandbox/Version demo/2.0
From OHC Network Wiki
More languages
More actions
⚠️ Warning
This is a sandbox demonstration of the wiki's versioning system. It is not real documentation. See Sandbox/Version demo for the latest version.
Notification system (v2.0)
Version 2.0 introduced async delivery and user preferences.
Channels
| Channel | Added in | Notes |
|---|---|---|
| 1.0 | Now sent via background queue | |
| In-app | 2.0 | Bell icon + dropdown |
| SMS | 2.0 | Optional, requires Twilio credentials |
User preferences
Users could now toggle channels per notification type:
{
"appointment_reminder": { "email": true, "sms": true, "in_app": true },
"lab_result": { "email": true, "sms": false, "in_app": true },
"system_alert": { "email": true, "sms": false, "in_app": true }
}
Architecture
Action → Queue (Redis) → Worker → Channel adapter → Delivery
↘ Retry (3x exponential backoff)
What improved over 1.0
- Async delivery — no more UI blocking
- Multi-channel support
- User opt-out per type/channel
- Basic retry logic
Still missing
- No templating engine (messages still hardcoded)
- No delivery receipts / read tracking
- No batching (100 users = 100 individual sends)