Index

Module 08 · From ScratchSharded KV store

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

KV: everything

The Cut Phone Line
The Cut Phone Line · Open board

Two copies that cannot reach each other, and the choice between answering and refusing. The last three builds chose to answer. This one pays the bill that choice runs up, then kills two machines and measures the whole store.

Before you start. KV: hinted handoff kept the store taking writes while machines were down: a healthy machine stood in for a dead one and kept the value as a hint, a note saying who it really belongs to, and handed it over when the owner came back; and a read that noticed a copy behind fixed it on the spot. Amazon - the case study tells how Amazon put these same pieces under its shopping cart. Two holes were left open: hints are only kept for a while, and a read only fixes keys somebody reads. This lesson closes both.

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 From Scratch →

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