Skip to content
Backend system design · about 45 minutes

Notification service

Design a service that other teams call to notify users by email, push notification and SMS. A notification can go to one user, for example a password reset, or to millions, for example a product announcement. Users choose which kinds they want on which channel. Providers fail and rate-limit us, and a user must never get the same message five times.

Ask first

  • Which channels, and which providers do we already use for each?
  • Which messages are urgent (a login code) and which can wait (a weekly summary)?
  • Can one request target a whole segment of users, or only listed user ids?
  • Do we need delivery status and opens, or only that we sent it?
  • Are there quiet hours or limits per user per day?

The outline

Write your own outline for each part first.

The strong answer, the pitfalls and the follow-ups opens with a year in the app. What a year includes