Case study: design a notification system
Interview question: design the system that sends push notifications, texts and emails for an app with 50 million users. Some messages are one-time passwords that must arrive in seconds. Others are a weekly digest. Where do you start?
In this lesson you'll learn to
- Turn a vague notification question into clear requirements and rough numbers.
- Sketch a notification service with per-channel queues, workers and providers.
- Make sending reliable with retries, idempotency keys and provider failover, without spamming users.
- Respect preferences and quiet hours, clean up dead device tokens, and guard against sending the wrong message to everyone.
Create a free account to open this lesson
It's free. You'll get every free lesson, quizzes that save your progress, daily flashcards and streaks.