The cut phone line
The line between the branches is cut. What does the far clerk say to the customer in front of them?
Two branches of the same stall share one ledger over a phone line, and tonight that line gets cut. The tabs set what the far branch does while it is out: keep answering, refuse, or decide question by question. Watch the turned-away count trade against the conflicting entries somebody has to reconcile.
Preparing for interviews? The ten-week plan puts this in order with DSA and the design rounds.
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 The cut phone line (CAP, done properly)
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.
see also Dynamo: Amazon's Highly Available Key-value Store, Spanner: Google's Globally-Distributed Database, Brewer's Conjecture and the Feasibility of Consistent, Available, Partition-Tolerant Web Services, Paxos Made Simple and Conflict-free Replicated Data Types in Papers.