Messaging & Realtime
MediumDesign a Real-Time Notification System
Focus: scale, async boundaries, and trade-offs.
Drag a component from the left onto the canvas
Scenario brief
Brief
Goal
Design a real-time notification system: events (likes, messages, alerts) fan out to users quickly via push (WebSocket/SSE) and optional email/push later.
Functional requirements
- Producers publish notification events (e.g. “user X liked your post”).
- Online users receive near-real-time push on an open connection.
- Persist notifications so users can read history when they come back online.