Paxos Algorithm
Updated 2026-07-28
Summary
The Paxos algorithm is a protocol for solving the consensus problem in distributed systems, proposed by Leslie Lamport (the 'La' in LaTeX) in 1990. It aims to enable multiple processes (nodes) to agree on a single value in an environment where the network may be delayed, nodes may fail, but messages are not maliciously tampered with. Note that Paxos is often mistakenly referred to as a 'consistency algorithm'.
Definition
The Paxos algorithm is a protocol for solving the consensus problem in distributed systems, proposed by Leslie Lamport (the 'La' in LaTeX) in 1990. It aims to enable multiple processes (nodes) to agree on a single value in an environment where the network may be delayed, nodes may fail, but messages are not maliciously tampered with. Note that Paxos is often mistakenly referred to as a 'consistency algorithm'. However, 'consistency' and 'consensus' are not the same concept. Paxos is a consensus algorithm.
Introduction
How to use
The Paxos algorithm is a protocol for solving the consensus problem in distributed systems, proposed by Leslie Lamport (the 'La' in LaTeX) in 1990. It aims to enable multiple processes (nodes) to agree on a single value in an environment where the network may be delayed, nodes may fail, but messages are not maliciously tampered with. Note that Paxos is often mistakenly referred to as a 'consistency algorithm'.
Mechanism
In an asynchronous network where messages may be lost and nodes may crash, reaching consensus on a value cannot rely on a single command. Paxos uses two phases: Propose (proposer sends a numbered proposal) → Promise (majority promises not to accept earlier proposals) → Accept (accept) → Learn (notify all). As long as a majority is alive, the system can always converge to the same value, achieving 'reliability from unreliability'.
Practice
In progress 0/5Practice this model in one real situation:
Cases
- Distributed database leader election: even if some nodes are unreachable, Paxos allows the surviving majority to agree on who is the leader, avoiding split-brain.
Common pitfalls
- Treating Paxos as a single communication (it is actually multi-round negotiation); improper number management leading to livelock; mistakenly thinking it can tolerate simultaneous failure of the majority (it can only tolerate a minority).
Sources
Source support: Explicit
References currently contain only Wikipedia links; primary sources still need review.
- zh.wikipedia.orghttps://zh.wikipedia.org/wiki/Paxos%E7%AE%97%E6%B3%95verified
account_treeGenealogyexpand_more
PRIVATE NOTES · Only visible to you
SAVED Q&A
ENTRY Q&A · Private saving available
Ask with a clear boundary
thinkingmodels answers from published entry context only.
Your question is sent to thinkingmodels. The answer uses public entry context only.
RELATED MODELS