01 / 07 · THE PROBLEM
Five replicas. One dropped message.
Two different truths.
CONSENSUS
QUORUM
majority = N2 + 1 = 3 of 5 — any two majorities overlap
NARRATIONFive servers, one dropped packet — and now two of them believe different things.
02 / 07 · PAXOS · LAMPORT, 1998
Promise, then accept. Two phases, one chosen value.
PAXOS
SAFETY
N2+1 promises ∧ N2+1 accepts ⇒ value chosen forever
NARRATIONA majority promise, plus a majority accept, equals agreement no crash can undo.
03 / 07 · THE COST OF ELEGANCE
Beautiful on paper. Brutal to implement.
MULTI-PAXOS
REALITY
Multi-Paxos = Paxos + leader + gap filling + membership + snapshots
NARRATIONFor decades students were told to trust the proof — because almost nobody could ship it.
04 / 07 · RAFT · ONGARO & OUSTERHOUT, 2014
Three states, numbered terms, one direction.
RAFT
RULE
term > termcurrent ⇒ old leader demoted · log flows leader → follower only
NARRATIONA follower that stops hearing heartbeats starts an election and asks for votes.
05 / 07 · LOG REPLICATION & SAFETY
Committed means a majority stored it.
REPLICATION
COMMIT
committed ⟺ entry stored on N2 + 1 nodes
NARRATIONAn entry is committed the moment a majority stores it — and it is never overwritten.
06 / 07 · HEAD TO HEAD
A theorem, or an architecture?
COMPARISON
VERDICT
Paxos gives you a theorem · Raft gives you an architecture
NARRATIONPaxos specifies agreement on a single value. Raft specifies the whole system.
07 / 07 · WHERE THEY RUN
Consensus is hard. Clarity makes it possible.
IN PRODUCTION
SUMMARY
safety ∧ liveness ⇒ consensus · quorum = N2 + 1
NARRATIONThe lesson is not that one is better — it is that clarity is what makes consensus possible.