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

CAP: the cut phone line

Chapters

Narration

Splitting the ledger bought you machines. It also bought you the wire between them, and that wire is not a detail. Two branches of the famous chai stall, one book each, kept in step over a phone line. On a normal day this works perfectly. Then the line goes down. Not a crash, both branches are alive, both are serving customers. They simply cannot reach each other. This is a partition, and you do not get to prevent it. Cables get cut, switches reboot, a data centre loses a link. Plan for it or be surprised by it. So each clerk is alone with a customer and no way to check the other book, and there are only two honest answers. Answer anyway, from the book in front of you: fast, always up, and now the two books disagree. Or refuse to answer until the line is back, never wrong, and sometimes useless. Which is where the famous line gets it wrong. Pick two of three, they say: consistency, availability, partition tolerance. But nobody picks partition tolerance. It is weather. The real choice arrives only when the line is already down, and it is not one decision for a whole company. Adding to a cart can answer always while charging the card refuses to be wrong, in the same application, on the same afternoon. And the honest version goes further. CAP only speaks about the bad day. On every other day you are still trading: wait for all the replicas to agree, or answer from the nearest one and risk being slightly behind. Latency versus consistency never fully goes away, even on a perfectly healthy network. So stop asking which two you picked. Ask what your system says when the line is down.

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