Index

Module 02 · System DesignWhen the stalls must agree

Watch: CAP: the cut phone line →▶ Watch the video

The cut phone line (CAP, done properly)

The Cut Phone Line
The Cut Phone Line · Open board

The law under The copy clerks (database replication) and Splitting the ledger (sharding). Both left you holding copies that can disagree. This is the rule about what you may do when they do.

Before you start. The copy clerks gave you a second book that copies from the first and can fall behind by seconds; splitting the ledger spread the stall’s records over more than one branch. That is the whole prerequisite: two places holding writing meant to say the same thing, and a wire between them.

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 line between the branches is cut. What does the far clerk say to the customer in front of them?

Pick Answer anyway, press Play next moment through all fourteen, and watch The bill so far count conflicting entries.

Open The cut phone line →

Related paper

Review System Design →

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