Design an APNs-Style Push Gateway for Billions of Devices

Last updated: November 29, 2026

Quick Overview

Design a push notification gateway that keeps persistent connections to billions of Apple devices and delivers notifications from app servers with priority, collapsing, and offline storage.

Apple
System Design
Software Engineer
Apple
November 29, 2026
Software Engineer
System Design Round
System Design
Medium

0

0

0 solved


Design a push notification gateway that keeps persistent connections to billions of Apple devices and delivers notifications from app servers with priority, collapsing, and offline storage.

Every iOS app relies on Apple Push Notification service, and it is a classic connection-heavy system. The interviewer checks long-lived connection management, routing a message to the right connection server, store-and-forward semantics, and protecting device battery.

What the Interviewer Expects
  • Separates provider-facing API from device-facing connection servers
  • Maintains a device to connection-server routing table that tolerates reconnects
  • Stores only the latest notification per collapse id when the device is offline
  • Supports priorities and coalescing to protect battery
  • Authenticates providers with tokens and validates device tokens per app
Key Topics to Cover
persistent connections
push notifications
routing
store-and-forward
battery efficiency
How to Approach This
  1. Start by clarifying functional and non-functional requirements with the interviewer.
  2. Estimate the scale: QPS, storage, bandwidth. This drives your design decisions.
  3. Draw a high-level architecture first, then deep dive into 1-2 critical components.
  4. Discuss trade-offs explicitly (e.g., consistency vs availability, SQL vs NoSQL).
  5. Address failure scenarios, monitoring, and how the system handles 10x traffic spikes.
Possible Follow-up Questions
  • How would you drain a connection server for deploys without dropping notifications?
  • How would you support Live Activities that update a lock screen widget many times a minute?
  • How do you tell a provider that a device token is no longer valid?
  • How would you rate-limit a provider that floods one device?
Sharpen Your Skills on Codemia

Practice similar problems with our interactive workspace, get AI feedback, and track your progress.

Practice System Design Problems
Sample Answer
Requirements

Functional: providers send (device_token, payload, priority, collapse_id, expiry) over HTTP/2; devices receive over a persistent TLS connection; offline devices get the message later if not expired....

High-Level Design
  • Provider API: HTTP/2 front ends authenticate JWTs, validate the token belongs to the app's topic, and enqueue.
  • Routing service: maps device id to the connection server currently holding it...

Submit Your Answer
Markdown supported