Design an extensible notification system for email, SMS, iOS and Android push

Quick Overview

Design a notification system that sends email, SMS, iOS and Android push messages and can add new channels later. It tests how you set delivery guarantees, enforce consent and rate limits, keep one slow provider from blocking the rest, retry failed sends without duplicates, and prioritize urgent messages.

Design an extensible notification system for email, SMS, iOS and Android push

Role: Software Engineer

Category: System Design

Difficulty: medium

Interview Round: Other

Design a notification system that delivers messages to users across several channels. Other services call it when something happens, such as an order being placed or shipped, and the system gets the message to the user by email, SMS, iOS push or Android push. Functional requirements: 1. Send notifications to different channels (email, SMS, iOS, Android). 2. Be extendable, so more notification channels can be added later. Set the non-functional requirements yourself before you design. Give numbers where you can (availability target, whether a notification may ever be lost, peak throughput, end-to-end latency) and say which property wins when two conflict, for example availability over consistency. ```hint Slow channels Picture the SMS provider slowing to a crawl during a traffic spike. Decide what sits between the servers that accept requests and the code that calls each provider, so email and push keep flowing. ``` ```hint Retries A worker can crash after the provider accepted a message but before it recorded the success. Pick the delivery guarantee you promise and work out what a retry does in that case. ``` ### Clarifying Questions to Ask - Which systems send notifications: internal services only, or also external partners, scripts and cron jobs? - Is bulk sending to every user who matches some criteria in scope, or only notifications addressed to one user at a time? - What peak volume and how many registered devices should the design handle? - Do some notification types, such as billing or security codes, need to go out ahead of marketing messages? - Does the business need a record of each notification's status for auditing or analytics? ### What a Strong Answer Covers - Non-functional requirements with numbers, including the delivery guarantee and what a lost or duplicated notification costs the user. - A data model for users, per-channel device settings and consent, notifications and templates. - An API for sending a notification and checking its status, including whether sending is synchronous. - The path from request to provider: where consent and rate limits are checked, how work is buffered per channel, and how a new channel plugs in without changes upstream. - Failure handling: retries with backoff, what happens to messages that keep failing, and how retries avoid sending twice. ### Follow-up Questions - During a marketing campaign, billing and security notifications get stuck behind millions of promotional messages. How would you prioritize them? - How would you track each notification's lifecycle (accepted, sent, delivered, opened) for auditing and analytics, and where would you store those events? - Walk through adding a new channel such as web push or a chat app. Which components change and which stay the same? - How would you protect user data and meet regulations such as GDPR or CCPA?

Overview: Design a notification system that sends email, SMS, iOS and Android push messages and can add new channels later. It tests how you set delivery guarantees, enforce consent and rate limits, keep one slow provider from blocking the rest, retry failed sends without duplicates, and prioritize urgent messages.

Nov 24, 2026
mediumSoftware EngineerOtherSystem Design
0
0

Design a notification system that delivers messages to users across several channels. Other services call it when something happens, such as an order being placed or shipped, and the system gets the message to the user by email, SMS, iOS push or Android push.

Functional requirements:

  1. Send notifications to different channels (email, SMS, iOS, Android).
  2. Be extendable, so more notification channels can be added later.

Set the non-functional requirements yourself before you design. Give numbers where you can (availability target, whether a notification may ever be lost, peak throughput, end-to-end latency) and say which property wins when two conflict, for example availability over consistency.

Clarifying Questions to Ask Guidance

  • Which systems send notifications: internal services only, or also external partners, scripts and cron jobs?
  • Is bulk sending to every user who matches some criteria in scope, or only notifications addressed to one user at a time?
  • What peak volume and how many registered devices should the design handle?
  • Do some notification types, such as billing or security codes, need to go out ahead of marketing messages?
  • Does the business need a record of each notification's status for auditing or analytics?

What a Strong Answer Covers Guidance

  • Non-functional requirements with numbers, including the delivery guarantee and what a lost or duplicated notification costs the user.
  • A data model for users, per-channel device settings and consent, notifications and templates.
  • An API for sending a notification and checking its status, including whether sending is synchronous.
  • The path from request to provider: where consent and rate limits are checked, how work is buffered per channel, and how a new channel plugs in without changes upstream.
  • Failure handling: retries with backoff, what happens to messages that keep failing, and how retries avoid sending twice.

Follow-up Questions Guidance

  • During a marketing campaign, billing and security notifications get stuck behind millions of promotional messages. How would you prioritize them?
  • How would you track each notification's lifecycle (accepted, sent, delivered, opened) for auditing and analytics, and where would you store those events?
  • Walk through adding a new channel such as web push or a chat app. Which components change and which stay the same?
  • How would you protect user data and meet regulations such as GDPR or CCPA?