Design a Notification System with Preferences, Channel Fan-out and Retries

Quick Overview

A system design question asking for a notification service that other services call to alert users through channels such as mobile push, email and SMS. It tests scoping, preference handling, queue-based fan-out, provider integration, retries with deduplication, rate limits and keeping urgent messages ahead of bulk campaigns.

Design a Notification System with Preferences, Channel Fan-out and Retries

Company: Amazon

Role: Software Engineer

Category: System Design

Difficulty: medium

Interview Round: Onsite

Design a notification system. The prompt names only the system, so part of the exercise is scoping it: which services send notifications, through which channels, at what volume, and with what delivery guarantees. A reasonable starting scope is one service that other internal services call to notify users through channels such as mobile push, email and SMS, honoring each user's preferences. ### Clarifying Questions - Which channels are in scope (mobile push, email, SMS, in-app), and can one notification go to several channels? - Are notifications triggered one at a time by events, sent in bulk to large audiences, or both? - What delivery guarantee is expected, and how much duplication can users tolerate? - Do latency targets differ by notification type, for example a one-time sign-in code versus a promotion? - What volumes should the design handle on average and at peak? ### Part 1: API, data model and preferences Define how other services request a notification and what data the system stores: templates, user contact details, user preferences and delivery records. ```hint Start from the caller Write the request a sending service would make, then list what the system must look up before anything can be delivered. ``` #### What This Part Should Cover - A request API with idempotency and an asynchronous response - A data model for templates, contacts, preferences and delivery status - Where preferences and opt-outs are enforced ### Part 2: Delivery pipeline Describe how a request becomes delivered messages: queues, fan-out to channels, template rendering, and integration with third-party providers for push, email and SMS. ```hint Separate the slow parts Ask which steps depend on external providers and should not hold up the services that send notifications. ``` #### What This Part Should Cover - Queue-based flow from request intake to channel-specific workers - Provider integration, including rate limits and delivery callbacks - Bulk sends and how they share the pipeline with individual notifications ### Part 3: Reliability, deduplication, rate limits and priorities Explain how the system behaves when providers fail or slow down, how it avoids sending duplicates, how it protects users from floods, and how urgent notifications get through during a large bulk send. ```hint Follow one message through a crash Pick a worker crash at the worst moment and ask what the user receives: nothing, one message or two. ``` #### What This Part Should Cover - Retry policy, dead-letter handling and the delivery guarantee that results - Deduplication across retries and worker restarts - Priority isolation and rate limits per user, per caller and per provider ### What a Strong Answer Covers - Scoping questions and explicit assumptions before the design - Capacity estimates that drive the choices for queues, storage and worker counts - Horizontal scaling of stateless workers and partitioning of stored data - Observability: per-channel success rates, end-to-end latency and queue lag ### Follow-up Questions - One channel's provider goes down for an hour. What happens to queued notifications, and what does the user experience? - How would you send a campaign to a very large audience without delaying time-sensitive notifications? - How would you let users browse the notifications they received, and how long would you keep them?

Overview: A system design question asking for a notification service that other services call to alert users through channels such as mobile push, email and SMS. It tests scoping, preference handling, queue-based fan-out, provider integration, retries with deduplication, rate limits and keeping urgent messages ahead of bulk campaigns.

Read the full Amazon Software Engineer interview experience this question came from

Amazon logo
Amazon
Nov 25, 2026
mediumSoftware EngineerOnsiteSystem Design
0
0

Design a notification system. The prompt names only the system, so part of the exercise is scoping it: which services send notifications, through which channels, at what volume, and with what delivery guarantees. A reasonable starting scope is one service that other internal services call to notify users through channels such as mobile push, email and SMS, honoring each user's preferences.

Clarifying Questions Guidance

  • Which channels are in scope (mobile push, email, SMS, in-app), and can one notification go to several channels?
  • Are notifications triggered one at a time by events, sent in bulk to large audiences, or both?
  • What delivery guarantee is expected, and how much duplication can users tolerate?
  • Do latency targets differ by notification type, for example a one-time sign-in code versus a promotion?
  • What volumes should the design handle on average and at peak?

Part 1: API, data model and preferences

Define how other services request a notification and what data the system stores: templates, user contact details, user preferences and delivery records.

What This Part Should Cover Guidance

  • A request API with idempotency and an asynchronous response
  • A data model for templates, contacts, preferences and delivery status
  • Where preferences and opt-outs are enforced

Part 2: Delivery pipeline

Describe how a request becomes delivered messages: queues, fan-out to channels, template rendering, and integration with third-party providers for push, email and SMS.

What This Part Should Cover Guidance

  • Queue-based flow from request intake to channel-specific workers
  • Provider integration, including rate limits and delivery callbacks
  • Bulk sends and how they share the pipeline with individual notifications

Part 3: Reliability, deduplication, rate limits and priorities

Explain how the system behaves when providers fail or slow down, how it avoids sending duplicates, how it protects users from floods, and how urgent notifications get through during a large bulk send.

What This Part Should Cover Guidance

  • Retry policy, dead-letter handling and the delivery guarantee that results
  • Deduplication across retries and worker restarts
  • Priority isolation and rate limits per user, per caller and per provider

What a Strong Answer Covers Guidance

  • Scoping questions and explicit assumptions before the design
  • Capacity estimates that drive the choices for queues, storage and worker counts
  • Horizontal scaling of stateless workers and partitioning of stored data
  • Observability: per-channel success rates, end-to-end latency and queue lag

Follow-up Questions Guidance

  • One channel's provider goes down for an hour. What happens to queued notifications, and what does the user experience?
  • How would you send a campaign to a very large audience without delaying time-sensitive notifications?
  • How would you let users browse the notifications they received, and how long would you keep them?