: the Data Systems board on consistency and consensus. This lesson builds its core: how five machines agree on one value, then on a whole log of values, while messages go missing.
Before you start. You need three ideas, and each is refreshed here. A majority is more than half of the machines, so 3 of 5. A log is a list of commands in a fixed order, and every machine must end with the same list. Raft Capstone: Everything built that with a leader, a log and a majority vote, so you have seen one answer to this problem. Consistency and Consensus says why agreement is hard. Beyond Raft: Paxos, its family, and liars names Multi-Paxos in a few lines. Here you build it and test it.
Lesson 84 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.