Design the backend for a team chat product like Slack. Companies get a workspace with channels, people post messages and reply in threads, and everyone in a channel sees new messages live.
Functional:
- Post messages to channels and to threads under a message, with edits and deletes.
- Deliver new messages live to every member who has the channel open, on every device.
- Show unread counts per channel, and keep history scrollable back to the start.
- Search messages in channels you belong to.
Non-functional:
- A posted message appears for online members within 500 ms at p99.
- Messages in a channel show in the same order for everyone.
- A member of one workspace never sees another workspace's messages, including in search.
- Large channels (50,000 members) must not slow down small ones.
- 20 million daily users across 500,000 workspaces, 8 million connected at peak.
- 2 billion messages a day, 25,000 per second at peak.
- Most channels have under 50 members; a few have 50,000.
Calls, file uploads, bots and app integrations.
Loading editor...
Submit your design to grade it.
- The components and connections this prompt needs
- Structure: an entry point, data stores, async work, and failure handling
- The concepts you explain on the board or in Notes, in your own words
To pass, score 65 or more with every required component but one, and name at least half the concepts, or all of them if a component is missing.