Problem
Design a Slack-like chat system supporting DMs and channels up to 100K members
- Deliver instantly for small chats while bounding fan-out costs for massive channels
- Persist messages before acknowledging sends and recover missed data via cursor-based history fetches
- Route real-time events across millions of WebSocket connections distributed over a gateway fleet
Key Test Points
- Hybrid push-pull delivery
- Redis Pub/Sub routing
- TIMEUUID-based ordering
Spot an issue or have a suggestion?