SysPad › Examples › Notification system
Notification system
A Notification Server fans out to one queue per channel (push/SMS/email) so a slow channel can’t back up the others - SNS for push, Twilio for SMS, SES for email - after checking each user’s opt-in settings.
Per-channel queue isolation with the preference/opt-in check that decides which channels a given notification actually fans out to.
- Throughput: 3,000 req/sec
- First to saturate: Email
- Estimated cost: $760k/mo
How it works
- Notification Server
- Reads the user’s opt-in settings, then drops one message onto each opted-in channel’s own queue. It never calls a provider directly, so a slow provider can’t stall it.
- Notification Settings
- Per-user opt-in / opt-out and quiet-hours. Read on every send to decide which channels fan out; written when a user changes their preferences.
- Push Queue
- One queue per channel is the whole point: if APNs/FCM slows down, push backs up here without touching SMS or email throughput.
Request flows
Send a notification
- Calling Services
- Notification API
- Notification Server
- Notification Settings
- Delivery Log
- Push Queue
- Push Worker
- Push (APNs/FCM)
- SMS Queue
- SMS Worker
- SMS
- Email Queue
- Email Worker
Update preferences
- User (settings)
- Notification API
- Notification Server
- Notification Settings