Index

Free, with Google

Keep going, free.

A free account opens lessons 2 and 3 of every track, 33 more lessons, and keeps your progress and review cards on every device.

Start free with Google

A chalk plan

Open everything on chalk.

Every lesson, board, video, lab and paper, and the full review decks. Yearly is $39/year.

See plansStart free instead

Module 13 · System Design · Amazon · about 35 min to read

Watch: The API mandate: Conway's law, aimed on purpose
▶ VideoPlay it as a journeyTutor comes with a plan

Amazon, the case study

Boards

Everything
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.

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 plansAlready 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".

Review System Design