Index

Free, with Google

Keep going, free.

A free account opens lessons 2 and 3 of every track, 33 more lessons, and keeps your progress and review cards on every device.

Start free with Google

A chalk plan

Open everything on chalk.

Every lesson, board, video, lab and paper, and the full review decks. Yearly is $39/year.

See plansStart free instead

Module 10 · From Scratch · Sharded KV store · with code: Go · about 15 min to read

Watch: Dynamo: never reject a write, and pay for it in zombie items
▶ VideoPlay it as a journeyTutor comes with a plan

KV: hinted handoff

The Cart That Cannot Say No
The Cart That Cannot Say No · Open board

Amazon’s shopping cart, which must take an item even while the machines behind it are failing. This build makes our store take that write, and then shows the one promise it breaks to do it.

Before you start. KV: quorum stored every key on three machines, its replicas, and made a write wait for W of them to confirm and a read ask R of them, keeping the value with the biggest version number. When R + W was more than 3, every read shared a machine with the last write and so saw it. The price was that with two of the three replicas down, a W = 2 write was refused. The cut phone line (CAP, done properly) named that price: a machine that cannot reach the others must either answer with what it has or refuse. This lesson chooses to answer, and builds what that takes.

Lesson 74 of 117 in From Scratch

The rest of this lesson 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.

In this lesson

  • June 2008: Facebook’s inbox search, and machines that are only away
  • Where the vote left us: a strict quorum says no
  • The neighbour takes the parcel: a sloppy quorum, and a hint
  • C comes home: hinted handoff
  • The read that looks in the wrong place: R + W > N stops protecting you
  • The read that fixes what it finds: read repair
  • Where did version 2 go?
  • The sloppy branch of Put
  • Handoff
  • Counting part 6
  • What sloppy quorums cost, stated exactly

Terms it explains: home nodes, strict quorum, sloppy quorum, hint, hinted handoff, read repair.

Review From Scratch