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

Replication: the copy clerks

Chapters

Narration

Every wala walks to one register. That register is a single database, and it is two problems wearing one coat. It is the bottleneck every read must pass through, and it is the one place all of your data can die at once. So one book alone accepts changes, and clerks copy every new line into books of their own. Writes go to the leader. Reads, which are almost all of the traffic, spread across the copies. But a copy is always a moment behind. You save your name, the leader has it, and your very next read lands on a clerk who has not been told yet. The page shows the old value, and you assume it failed. When the leader is allowed to call a write done is a dial. Wait for a copy and nothing is ever lost, but every write pays a round trip. Answer straight away and a crash takes the last writes with it. And copies only ever scale reads. Every clerk still receives every change, so ten clerks do each write ten times over. Read capacity multiplies. Write capacity has not moved at all. Then the leader dies, and two hard questions arrive together. Which copy is the most complete, because promoting a lagging one quietly deletes committed writes. And how do you stop the old leader waking up still believing it holds the pen. Once truth has been copied, you stop getting both. Answer instantly, or answer perfectly. Every consistency guarantee you will ever read about is a small, targeted repair of that one trade.

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