Continue where you left off ×
Slack, the case study
Boards
Everything · Open board
The nine boards on one canvas, and the story below runs through them in the order Slack hit each problem.
Before you start. Slack is the chat app companies use instead of email, and it was built on one idea: a company signs up, gets its own private space, and everything about that company lives together in one place. This lesson is the story of what happened when Slack started selling to companies far too big for that idea.
The idea in 30 seconds
Slack assumed one company equals one space, and every hard problem since has been prying that assumption apart while live.
The boot payload grew with headcount, so compression could not help. The answer was a cache of objects at the edge.
A thundering herd is a synchronised arrival, and it is the shape behind the old message servers and both famous outages.
Hashing channels across a ring deleted the per-customer blast radius. A channel became an address, not a room.
A shard key is a frozen product assumption, and changing team_id took three years even with the right tool.
A queue that needs free memory in order to drain cannot recover from being full. Put a log in front of it.
Enterprise features pull load-bearing columns out of your schema, which is how privacy stopped living in the channel id.
Read the story
Lesson 100 of 115 in System Design
The rest of this lesson is part of a plan.
A plan opens every lesson, board, video, lab and paper on chalk. Yearly is $39/year .
See plans Already a member? Sign in
Or start free : a free account opens lessons 2 and 3 of every track.
In this lesson 2013: a failed game, and the program nobody rewrote 2016: the seven-megabyte hello, and the herd behind it One message server per company, and the ring that replaced it Autumn 2016: team_id, the shard key that lied 2016: the queue that could not drain 31 January 2017: Enterprise Grid, and one channel with two owners 4 January 2021: a cold cache, and the brake they built The numbers that are actually published Retrieval (cold, no peeking) Terms it explains: boot payload, thundering herd, cache, hash, ring, channel server, stateless, shard key, job queue, vtgate, VSchema, vttablet, vindex, scatter, 12.5M, ~9B/day, Reproduce the Redis deadlock, Realtime, Data, The enterprise trilogy, Failure, Search & AI, Runtime.
Review System Design
Mark as read Saved in this browser, and to your account when you sign in.