Whiteboard ScaleTopicsNotifications

Notification System

VERY COMMON

Notification system design is asked at Google, Apple, Amazon, and Meta because it tests queueing, third-party integration, and product judgment in one problem. It is how platforms deliver 10 billion pushes, emails, and SMS per day without an OTP ever waiting behind a marketing campaign. You will design physically isolated priority tiers that keep OTPs under 5 seconds during a 100M-recipient campaign burst, an at-least-once pipeline with deterministic idempotency keys, and provider gateways sized by concurrency that survive an FCM outage.

  • Design priority tier isolation that keeps OTPs under 5s during a 100M-recipient campaign
  • Build at-least-once delivery with deterministic idempotency keys that survives consumer crashes
  • Size a provider gateway fleet by concurrency (580K/sec x 50ms = 29K in flight) with circuit breakers
GoogleAppleAmazonMetaUberAirbnb
8
Concepts
Deep dives
10
Cheat Items
Quick ref
Elevator Pitch3-minute interview summary

I would design a notification platform delivering 10 billion sends per day across 1 billion device tokens on push, email, SMS, and in-app channels. Three physically isolated priority tiers guarantee OTPs land in under 5 seconds even while a 100M-recipient campaign bursts at 167K sends per second through two-stage chunked fanout. Delivery is at-least-once with deterministic idempotency keys in Redis, so consumer crashes never produce duplicates. Coalescing windows and collapse keys cut engagement volume 60%, and per-user budgets cap marketing at 2 pushes per day. Provider gateways, sized by concurrency (580K/sec x 50ms = 29K in flight, about 100 servers), terminate at APNs and FCM behind circuit breakers with channel failover for P0.

Concepts Unlocked8 concepts in this topic