DesignTheSystem/dev
MEDIUM Real-Time & Messaging

Design Push Notification Pipeline

Ingest and deliver 100,000 event notifications/sec (95% writes). Decouple ingest from delivery workers to guarantee p99 ingest latency under 300ms.

Category & DifficultyReal-Time & Messaging · MEDIUM
Traffic Profile100,000 RPS sustained, 180,000 RPS spike (5% reads / 95% writes)
Latency & Availability SLAp99 < 300 ms · 99.95% availability
Monthly Infra Budget$2,200/month

Scale, traffic & SLA targets

To pass in the DesignTheSystem simulator, your architecture must hold all four targets simultaneously across a 60-second load run (spiking up to 180,000 RPS):

Peak traffic100,000 RPS5% reads / 95% writes
Latency (p99)< 300 ms99th percentile target
Availability99.95%Max error rate 0.05%
Monthly budget$2,200/moPriced per component

Functional & non-functional requirements

Functional scope

  • Serve Push Notification Pipeline at the traffic below.

Non-functional goals

  • p99 latency under 300 ms at the spike.
  • At least 99.95% of requests answered.
  • Costs no more than $2,200 a month.

Core challenge: Accept fast, deliver in the background

The caller only needs to know the notification was accepted. Put it on a queue and let workers talk to the slow phone push services at their own pace.

What breaks first?

Run the starting design first and look at what breaks. Notification Gateway reaches 1131% of its capacity at the spike, and Notification Store 985%. About 91% of requests fail. Open Full metrics to see which requests pile up there, and ask why that part gets so much traffic.

Key architectural trade-offs

  • Slight queuing delay under peak bursts; requires idempotency keys to avoid duplicate notifications.

Starting architecture & how to practise

The simulator starts you with a baseline setup: Event Producers → Notification Gateway → Notification Store. Run the baseline under 100,000 RPS to watch exactly which component saturates first, then add caching, queues, replicas, sharding or CDN until latency, availability and cost all turn green.

Common interview questions for Push Notification Pipeline

What are the target SLA and scale numbers for Push Notification Pipeline?

Design for 100,000 RPS sustained (spiking to 180,000 RPS) with a 5% read / 95% write mix, keeping p99 latency under 300 ms, availability at or above 99.95%, and infrastructure spend within $2,200/month.

What is the main architectural bottleneck in Push Notification Pipeline?

The caller only needs to know the notification was accepted. Put it on a queue and let workers talk to the slow phone push services at their own pace.

How can I verify my Push Notification Pipeline architecture works under load?

Open the live simulator to wire up load balancers, caches, queues, replicas, or shards and run a 60-second traffic simulation that grades latency, error rate, and monthly cost automatically.

Recommended lessons before you build

Related Real-Time & Messaging problems