Design the Windows Push Notification Service for Billions of Devices
Last updated: November 29, 2026
Quick Overview
Design a push service like Windows Push Notification Services where app backends send toast, badge or raw notifications to a channel URI and the service delivers them to the right Windows device over a persistent connection.
Microsoft
November 29, 20260
0
0 solved
Design a push service like Windows Push Notification Services where app backends send toast, badge or raw notifications to a channel URI and the service delivers them to the right Windows device over a persistent connection.
WNS is a real Microsoft platform, and this question tests holding hundreds of millions of persistent connections, routing a message to the right connection server, and handling offline devices. Interviewers check authentication of app backends and the notification lifecycle.
What the Interviewer Expects
- Explains channel URIs that encode the device and app
- Holds persistent connections on a connection tier and routes via a session directory
- Authenticates app backends with tokens scoped to their app
- Stores offline notifications with TTL and per-device caps
- Applies rate limits per app and per channel
- Reports delivery status to the sender
Key Topics to Cover
How to Approach This
- Start by clarifying functional and non-functional requirements with the interviewer.
- Estimate the scale: QPS, storage, bandwidth. This drives your design decisions.
- Draw a high-level architecture first, then deep dive into 1-2 critical components.
- Discuss trade-offs explicitly (e.g., consistency vs availability, SQL vs NoSQL).
- Address failure scenarios, monitoring, and how the system handles 10x traffic spikes.
Possible Follow-up Questions
- How does the service know which connection server holds a given device?
- A device is offline for two days. What does it receive when it comes back?
- How do you prevent one app from sending 10,000 notifications per minute to a user?
Sharpen Your Skills on Codemia
Practice similar problems with our interactive workspace, get AI feedback, and track your progress.
Practice System Design ProblemsSample Answer
Requirements
Hundreds of millions of concurrently connected devices. Apps request a channel URI on the device, send it to their backend, and the backend POSTs a notification to that URI. Delivery to online devices...
High-Level Design
Device side: a single OS-level client keeps one TLS connection to a connection server for all apps, with keep-alive tuned for battery. Channel service issues channel URIs `https://.../chan...