Slack: The All-Hands Announcement
Hard · system design problem
The CEO posts in #general: everyone comes online at once, #general becomes the hottest partition in Cassandra, and then a zone of the gateway fleet disappears.
Desktop and mobile clients keep a WebSocket to the chat gateway (150,000 connections per instance), which calls chat-svc to load channel history and post messages into Cassandra (6 nodes, partitioned by channel). At T+20s the CEO announces a reorg in #general: three times the users come online for the rest of the hour and 40% of all requests are #general’s history and replies. At T+60s one availability zone of the gateway fleet is lost. Channel history is identical for every member.
Topics
More
Codelays runs in your browser: turn on JavaScript to use it.