Index

Module 02 · System DesignWhen the stalls must agree

Watch: Consensus: who holds the pen →▶ Watch the video

Who holds the pen (consensus & Raft)

Who Holds the Pen
Who Holds the Pen · Open board

The System Design spine’s episode on who is allowed to write. The copy clerks (database replication) said the stall may have “only ONE new master” and never said who picks it. This is who picks it, and what the picking cannot protect.

Before you start. The stall in this lesson is the chai stall the System Design spine has been running: five clerks behind the counter, each keeping a copy of the register in a book of their own, and one pen that decides who is allowed to write in it. The copy clerks (database replication) is where those clerks came from, and The cut phone line (CAP, done properly) is the rule that when the wire between two copies is cut, you must choose between answering and being right.

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 System Design →

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