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 01 · System Design · The stall gets famous · about 19 min to read

Watch: Dynamo: never reject a write, and pay for it in zombie items
▶ VideoPlay it as a journeyTutor comes with a plan

Who is alive, and where does it go: gossip, detectors and hash variants

The Cart That Cannot Say No
The Cart That Cannot Say No · Open board

Dynamo, the system that keeps a list of live machines with no boss and places every key on a ring. This lesson takes those two jobs apart and shows the other ways to do each.

Before you start. Splitting the ledger (sharding) gave you the ring: keys and servers sit on a circle, and a key belongs to the next server clockwise. It also gave you the cost of the plain remainder rule, which moves almost every key when the server count changes. Raft 01: Leader Election showed a heartbeat, a small “I am alive” message sent on a timer, and a follower that gives up when the timer runs out. This lesson asks what happens when there are ten thousand machines and nobody is the leader.

Lesson 6 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

  • The problem: ten thousand machines, and every one must know who is down
  • Gossip: every second, tell one random peer what you know
  • A silent machine: how long is too long
  • Where does the key go: three answers beside the ring
  • Gossip: push, pull, and what the doubling hides
  • The phi detector: what it keeps and what it assumes
  • Rendezvous, jump and ring: one test, same keys

Terms it explains: gossip, round, fixed timeout, failure detector, phi accrual, Rendezvous hashing, Jump hash, Common mistakes, push, pull, suspicion, action.

Review System Design