Paxos looks arbitrary until you watch every simpler alternative fail, at which point the entire two-phase protocol falls out of one constraint: any two majorities must share at least one acceptor. Written in November 2001 because The Part-Time Parliament “was Greek to many readers,” Leslie Lamport’s Paxos Made Simple strips away the island fable and derives the core Synod algorithm from three safety axioms in under twelve pages.
For engineers building replicated databases and coordination services, the paper explains not just what prepare and accept messages do, but why removing a single rule (promises, disjoint proposal numbers, or adopting the highest prior value) immediately breaks agreement under asynchronous message delays.
- Minimal durable state per acceptor: each acceptor stores only two fields on disk (
max_preparepromised and the highest-numbered accepted(n, v)), while proposers can crash or abandon rounds freely as long as proposal numbers never repeat. - Four-step safety derivation (
P2toP2c): strengthening safety from chosen values to issued proposals proves by induction that querying a majority and picking the highest priorvprevents conflicting commits. - Liveness vs. safety are strictly decoupled: competing proposers can livelock forever in a dueling loop (
n1 < n2 < n3), yet electing a single leader is needed only for progress and never for safety. - Optimal steady-state state machine: running Phase 1 once across all future log slots reduces normal-case Multi-Paxos replication to Phase 2 alone, the minimum possible fault-tolerant agreement cost, while filling crash gaps with
no-opcommands.
Why simpler consensus shortcuts break
Lamport models an asynchronous, non-Byzantine network: proposers, acceptors, and learners run at arbitrary speeds, may crash and restart (even all at once after choosing a value, making durable storage mandatory), and exchange messages that can be arbitrarily delayed, duplicated, or dropped, though never corrupted. Safety requires three things: only a proposed value can be chosen, at most one value is chosen, and a learner never learns a value unless it was actually chosen.
Starting from scratch, the first two obvious designs break immediately. A single acceptor chooses the first value it receives, which works until that one acceptor crashes and halts the system. Moving to multiple acceptors where a majority decides avoids single-node failure, yet if each acceptor can accept at most one value, two concurrent proposers splitting the cluster nearly in half leave nobody able to reach a majority; if one acceptor then crashes, consensus stalls permanently.
Acceptors must therefore be allowed to accept multiple proposals, each tagged with a unique natural proposal number (n, v). To ensure progress when one proposer talks to a healthy majority, we initially require P1: an acceptor must accept the first proposal it receives. Because multiple proposals can now be accepted, safety requires P2: if a proposal with value v is chosen, every higher-numbered chosen proposal must also have value v.
Now watch how P1 and asynchrony force us to strengthen P2 twice. Strengthening P2 to P2a requires every higher-numbered proposal accepted by any acceptor to have value v. Yet suppose majority C already chose (m, v) while one slow acceptor c never received any messages at all. If a new proposer wakes up and sends (n, v') with n > m and v' != v directly to c, rule P1 forces c to accept v', violating P2a. To keep P1 intact, we must constrain proposers via P2b: if (m, v) is chosen, every higher-numbered proposal issued by any proposer must carry v.
Why Phase 1 promises lock in the overlap proof
To enforce P2b, Lamport proves by induction on n > m that it suffices to maintain invariant P2c: whenever a proposer issues (n, v), there exists a majority S where either no acceptor in S has accepted any proposal numbered less than n, or v is the value of the highest-numbered proposal less than n accepted by any acceptor in S.
Why does P2c guarantee P2b? Suppose (m, v) was chosen by majority C, and assume inductively that every proposal issued with a number in m..(n - 1) had value v. Because every acceptor in C accepted m, and any majority S queried for proposal n shares at least one acceptor with C, S must report at least one accepted proposal numbered >= m. Since every accepted proposal in m..(n - 1) carries v by induction, the highest-numbered proposal returned from S is guaranteed to carry v!
One trap remains: P2c requires knowing not just what S has accepted below n, but what S will accept below n in the future. Since a proposer cannot predict future messages arriving at S, it controls the future by extracting a promise: acceptors reply to prepare(n) by promising never again to accept any proposal numbered less than n. That turns P1 into P1a: an acceptor can accept proposal n if and only if it has not already responded to a prepare request with a number greater than n.
Putting both pieces together gives the complete two-phase Synod algorithm:
- Phase 1: Proposer picks a unique
n(partitioned across proposers via disjoint sets and persisted so numbers never repeat) and sendsprepare(n)to a majority. Ifnexceeds every previously promisedmax_prepare, each acceptor persistsmax_prepare = nand returns(max_prepare promise, highest accepted (n_a, v_a)). - Phase 2: Upon collecting replies from a majority, the proposer sets
vto thev_aof the highestn_areported (or any value if none were reported) and sendsaccept(n, v). Each acceptor accepts(n, v)and persists it unless it has already promised a highermax_prepare > n.
Acceptors can drop stale requests (and optionally hint the higher max_prepare so the proposer aborts early). Learners discover the chosen value either directly from every acceptor (A * L messages, 1 step) or through one or more distinguished learners (A + L messages, 2 steps). If messages drop right after a majority accepts, learners cannot tell whether a value was chosen until a proposer runs another ballot, which P2c ensures will rediscover and re-commit the same v.
Dueling proposers, Multi-Paxos, and log gaps
Why cannot Paxos guarantee termination under pure asynchrony? Because two proposers p and q can livelock indefinitely: p completes Phase 1 for n1, q completes Phase 1 for n2 > n1 (causing acceptors to reject p’s Phase 2 accept(n1)), so p jumps to n3 > n2 and kills q’s Phase 2 accept(n2), repeating forever. Consistent with the FLP impossibility theorem, breaking this loop requires electing a single distinguished proposer using randomness or real-time timeouts, though safety still holds even when multiple leaders duel.
Section 3 scales single-decree consensus to a replicated state machine by assigning instance i of Paxos to command slot i. Because Phase 1 depends only on n and not on the value v, a newly elected leader sends one prepare(n) message covering all un-chosen slots simultaneously. Suppose the new leader knows slots 1..134, 138, and 139: Phase 1 tells it 135 and 140 already had proposals, so it finishes Phase 2 for 135 and 140, commits no-op commands in gaps 136 and 137 so 138..140 can execute in order, and then runs Phase 2 alone for 141, 142, .... Citing Keidar and Rajsbaum (2001), Lamport notes that steady-state Phase 2 hits the theoretical lower bound for fault-tolerant consensus cost. Leaders can even pipeline alpha commands ahead (i + 1 .. i + alpha), creating gaps of at most alpha - 1 slots on crash, and execute cluster reconfiguration cleanly by letting the state after command i define the server set for instance i + alpha.
Trace five Paxos scenarios in action
Even after reading the proof, edge cases around majority overlap, livelock, and Multi-Paxos pipelining are easiest to see with concrete proposal numbers. Step through the five cases below to trace the exact state transitions.
Select a scenario (or use Left and Right arrow keys) to trace the message flow, the naive flaw avoided, and the paper's invariant.
Uncontested Phase 1 and Phase 2
Single decreeA proposer picks number 7, queries three acceptors with no prior votes, and commits value A.
- Why naive fix breaks
- Skipping Phase 1 leaves the proposer blind to any value previously accepted by a quiet majority.
- Paper's mechanism
- Phase 1 promises max_prepare = 7 and reports no prior proposals; Phase 2 sends accept(7, A) and commits once two acceptors persist it.
- Durable writes
- Each acceptor writes max_prepare = 7, then accepted = (7, A) to stable storage before sending its reply.
- Steady-state shortcut
- Under a stable Multi-Paxos leader, Phase 1 is already complete for slot 141, leaving only the Phase 2 round trip.
Proposal 8 meets an earlier commit at 7
Invariant P2cAcceptors 1 and 2 chose (7, A), then acceptor 1 goes down and a new proposer runs prepare(8) across acceptors 2 and 3.
- Why naive fix breaks
- Letting proposal 8 choose B whenever acceptor 3 reports blank would overwrite the already-committed value A.
- Paper's mechanism
- Any majority {2, 3} intersects choosing majority {1, 2} at acceptor 2, which reports (7, A) and forces proposal 8 to carry A.
- Role of promise
- Acceptor 3 promises not to accept anything < 8, blocking any delayed older proposal from sneaking in later.
- Why highest n_a wins
- If acceptor 2 saw (5, B) and acceptor 3 saw (7, A), induction guarantees 7 came after 5 was either uncommitted or already A.
Two proposers preempt each other forever
Liveness vs. safetyProposer p completes prepare(n1), proposer q completes prepare(n2 > n1), and both block each other's Phase 2 indefinitely.
- Why naive fix breaks
- Deterministic retries without backoff or leader election never guarantee convergence in an asynchronous network (FLP).
- Paper's mechanism
- Safety still holds (nothing wrong is accepted); elect a single distinguished proposer via randomized backoff or real-time timeouts.
- Early-abort hint
- Acceptors may reply to rejected requests with their higher max_prepare so the losing proposer abandons immediately.
- Modern engineering link
- Chubby and Raft separate randomized election timers from safety invariants so temporary split votes never corrupt committed logs.
New leader fills missing slots 136 and 137
Multi-PaxosA new leader knows committed commands 1..134, 138, and 139, then learns 135 and 140 during batched Phase 1.
- Why naive fix breaks
- Executing 138 before 136 breaks state-machine determinism; assigning new client work to 136 breaks temporal causality.
- Paper's mechanism
- Leader re-proposes constrained values for 135 and 140, commits no-op values in unconstrained gaps 136 and 137, then executes 1..140.
- Batched Phase 1 cost
- One short prepare message covers 135..137 and all indices > 139; acceptors report only the finite set of un-committed votes.
- Pipelining bound
- Allowing alpha in-flight proposals ahead of commit bounds maximum failover gap size to alpha - 1 slots.
Balancing notification latency against A * L messages
Message complexityWith A acceptors and L learners, full broadcast speeds up learning at quadratic-style product cost.
- Why naive fix breaks
- All-to-all sends A * L messages per commit; a single distinguished learner (A + L messages) breaks learning if that one node crashes.
- Paper's mechanism
- Use a small set of distinguished learners that collect majority acceptances and fan out to remaining learners.
- Silent commit corner case
- If messages drop right after a majority accepts, learners cannot tell whether commit occurred until a proposer runs a new ballot.
- Modern engineering link
- Production Multi-Paxos collapses proposer and distinguished learner onto the leader, broadcasting commit notifications with heartbeats.
Source: Lamport (2001), Sections 2 and 3.
Without clicking through the tabs, here is the takeaway across all five traces:
- Normal write: Phase 1 collects promises and prior values; under a stable Multi-Paxos leader, steady-state writes pay only Phase 2’s single round trip.
- Overlap proof: any majority
Sintersects choosing majorityC, and adopting the highest-numbered reported value forces chosen values forward across failures. - Dueling loop: alternating
preparerequests can prevent progress indefinitely without ever risking split-brain writes; randomized timers or leases break the tie. - Leader gap: batched Phase 1 recovers constrained slots (
135,140) and seals missing slots (136,137) withno-opcommands before advancing past138. - Learner fanout: switching between all-to-all (
A * L) and distinguished learners (A + Lplus 1 hop) trades notification latency against network amplification.
Caveats and modern context
Three caveats show where Paxos Made Simple stops and production consensus begins.
First, single-decree simplicity hides Multi-Paxos complexity. Paxos Made Simple devotes nine pages to choosing one value and just three pages to replicated logs, log compaction, and reconfiguration. In real clusters, catching up lagging replicas, pruning old snapshots, serving linearizable reads without running Phase 2 on every query, and testing alpha-pipelined reconfiguration dominate implementation bugs, which is why Raft later chose stronger leader-log restrictions (Up-to-Date election checks and strictly sequential append) to eliminate out-of-order log gaps altogether.
Second, Paxos optimizes for crash-stop/recovery, not Byzantine faults or disk corruption. The model explicitly assumes messages and durable storage are never corrupted. A single flipped bit in max_prepare on disk or a malicious node forging ballot numbers can violate safety unless wrapped in checksums or a Byzantine protocol like PBFT.
Third, steady-state optimality still assumes a stable leader and healthy quorums. When cross-region WAN traffic makes a single leader a bottleneck, systems either deploy Chubby-style regional cells or move to leaderless / multi-leader variants (like EPaxos or Mencius) that accept extra conflict-resolution paths in exchange for lower geo-distributed latency.
For engineers choosing or debugging consensus today, Paxos Made Simple remains the cleanest litmus test of correctness: whenever a replication design claims fault-tolerant agreement, check whether every write path intersects previous commits, locks out older proposals with durable promises, and strictly separates liveness heuristics from the safety invariant.


