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

System DesignConsensus: leader lease

Who holds the pen

The room splits and half the clerks can no longer see the pen. How many pens are there now?

Five clerks share one pen, and only the clerk holding it may write in the book. The night's writes land wherever a desk is nearest, and the middle panel shows each side of the room and the book it is keeping. Watch the bill count lines written while two pens were out.

Included with a plan

This lab 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.

the lesson Who holds the pen (consensus & Raft)
The whole idea this lab came from, told start to finish.

on the path Module 2 of 32 in System Design: When the stalls must agree
The lessons, boards and videos around this lab, in reading order.

Board: Who Holds the Pen

see also In Search of an Understandable Consensus Algorithm, The Google File System, Spanner: Google's Globally-Distributed Database, Time, Clocks, and the Ordering of Events in a Distributed System, Paxos Made Simple, The Chubby lock service for loosely-coupled distributed systems and ZooKeeper: Wait-free coordination for Internet-scale systems in Papers.