Continue where you left off ×
Amazon, the case study
Boards
Everything · Open board
The nine boards on one canvas, and the story below runs through them in the order Amazon hit each problem.
Before you start. Amazon is two businesses sharing one set of machines: the shop you buy from, and AWS, which rents storage and computers to everybody else. All you need to bring is this: a big website runs on thousands of machines, and any one of them can die at any second without warning.
The idea in 30 seconds
Amazon could not get teams to decouple by asking, so it changed the org chart until only one architecture was possible, and the service interfaces that produced became AWS.
The cart never refuses a write, so copies disagree for a while and a deleted item can come back. That is a chosen wrong, not a bug.
Blast radius is the real question about a failure: not how likely, but how many customers.
Shuffle sharding deals each customer a random hand of machines, so the odds of sharing a whole hand fall combinatorially rather than by a constant factor.
Constant work kills the retry spiral by refusing to have a busy mode, and static stability removes recovery by already being recovered.
Eleven nines is a budget you provision for, not a promise you make. Every big outage had a harmless trigger and an amplifier. Remove the amplifier, because you will never run out of triggers.
Read the story
Lesson 76 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 2001: one program, and one bad commit that burned the whole shop 2002: a mandate, and the service interface nobody could route around The cart that cannot say no, and the deleted item that comes back One poisoned request: blast radius, and the random hand called shuffle sharding The coffee urn: constant work, and a load that cannot spike Static stability: recovery is a state you were already in Eleven nines: what “we will not lose your file” costs A warehouse sorted by nothing: the index is cheaper than the sorting February 2017: the typo was not the villain, the amplifier was The numbers that are real What is NOT published (do not invent it) Retrieval (cold, no peeking) Terms it explains: decoupling, service interface, blast radius, Shuffle sharding, constant work, static stability, Dynamo, CAP, AP, CP, virtual nodes, vector clocks, anti-entropy with Merkle trees, gossip, cell, cell router, Control plane, Data plane, Erasure coding, replication, ShardStore, witness, item-to-item collaborative filtering, 99.9th percentile, 3M+ checkouts/day, 89.2 million requests/sec, 11 nines, 1/28, 730 billion, 90% unaffected, $775M, ~6s, 16 issues, 1998 Distributed Computing Manifesto, are, Obidos internals, 1,600-shard early-MySQL history, Deploy stats, S3 metadata sharding algorithm, "280 trillion objects".
The API mandate: Conway's law, aimed on purpose · also Dynamo: never reject a write, and pay for it in zombie items , Shuffle sharding: cutting the blast radius combinatorially , Constant work: the system that does the same thing whether it is healthy or on fire , Eleven nines: durability as a budget, and a storage engine proven against a hash map , Chaotic storage: stop sorting the shelf, pay for the index instead , The trigger is never the villain: four outages and the amplifiers inside them , Amazon, the whole system on one canvas
Review System Design
Mark as read Saved in this browser, and to your account when you sign in.