KatInterview

Design a Push Notification Delivery Service

System DesignModel answer
EasyModel answerSystem Designsystem designnotificationsscalability

Last updated

Design a scalable backend service that reliably delivers push notifications to millions of mobile and web users with low latency.

Background

You are a backend engineer at a mid-sized consumer app (think a social or e-commerce product). The product team wants to send push notifications — new messages, order updates, promotional alerts — to users across iOS, Android, and web browsers.

Today the app has 10 million registered users, roughly 2 million daily active users, and expects to send up to 5 million push notifications per day with occasional spikes of ~50,000 notifications per minute during flash sales.

What You Are Asked To Do

Design a push notification delivery service from scratch. Walk through:

  1. Requirements & scale — clarify functional and non-functional requirements, back-of-envelope numbers.
  2. API design — what endpoints or interfaces does the service expose internally?
  3. Data model — what tables or documents do you need?
  4. High-level architecture — components, their responsibilities, and how they connect.
  5. Deep dives — at least two: delivery guarantees and handling third-party provider failures.
  6. Trade-offs — discuss at least one key design choice you made and why.

You do not need to design the client SDK. Focus on the backend service.

Hints

Hint 1

What state do you need to store per user, per device? A user may have multiple devices.

Hint 2

Push notifications ultimately go through Apple APNs, Google FCM, or browser Web Push — how does your service interact with these, and what happens when they are slow or unavailable?

Hint 3

Think about what 'at-least-once' vs 'at-most-once' delivery means for notifications — a duplicate promotional alert is annoying; a missing order confirmation is worse.