Imagine you and four friends are trying to agree on where to eat dinner â but any of you might fall asleep mid-conversation, forget what was said, or repeat an old message that arrived late. How do you reach a decision that everyone who stays awake will honor?
This is, roughly, the consensus problem in distributed computing. A cluster of servers must agree on a single value â a database write, a leader election, the next command in a log â even though any server can crash and restart, and network messages can arrive late or out of order.
Paxos, invented by Leslie Lamport around 1989 and published formally in 1998 (with a simpler explanation in 2001 as "Paxos Made Simple"), was the first clean solution. It guarantees that:
- Only one value is ever chosen.
- Any chosen value was actually proposed by some node.
- If a value is chosen, every node that asks will eventually learn it.
The catch? Even the inventors called it "surprisingly subtle." Paxos is proven correct, is widely deployed, and remains the yardstick every newer consensus protocol (Raft, Zab, Multi-Paxos) is measured against.
Comments
Loading comments...