Index

Raft Capstone: Everything

Who Holds the Pen
Who Holds the Pen · Open board

The System Design episode on who holds the pen. This capstone is the pen, built: one holder at a time, a record the others can check, and a way to hand it over. Closes the Raft series, Build Your Own Raft.

Before you start. This series built a small copy of Raft in four stages. By now your five nodes can: pick one leader by numbered terms and votes (Raft 01: Leader Election); copy the leader’s log to a majority and overwrite what conflicts (Raft 02: Log Replication); write their term, vote and log down before they reply, and come back from a power cut (Raft 03: Persistence); and serve a key-value store whose clients can retry safely (Raft 04: A Key-Value Store on Top). This lesson follows one command through all of it, then runs the whole thing under random failure.

Continue reading with a plan

The first three lessons of every track are free. This lesson is included with a plan, which unlocks every lesson, board, video, lab and paper for one price.

View plans →Already a member? Sign in

Lab

The room splits in two. Both halves think they are in charge. Who is allowed to write?

Stay on Whoever asks first, press Add next write to the end of the night, and watch The bill so far.

Open Who holds the pen →

Related paper

Review From Scratch →

Saved in this browser, and to your account when you sign in.