Playground · Medium line · Station M12

Notification service at scale

Deliver OTPs, push and email through the right providers, check opt-outs, and never let a burst delay a login code.

One service sends every notification for a big shopping app: one-time passwords by SMS, order updates by push, and newsletters by email. When a sale starts, a scheduled push blast goes out at 8,000 a second for two minutes. Login codes can never wait behind a newsletter, and people who opted out must never be messaged.

Sale push blast
8,000/s for 120s
Preference checks
3,000/s
Newsletter emails
1,500/s
Budget
$1,600/mo
Speed
under 200 ms
Must
Survive a crash

Reported in interviews at Google, Pinterest, OCI, Stubhub