Most engineers know Paxos as a two-phase single-value voting puzzle, yet Leslie Lamport’s 1998 ACM Transactions on Computer Systems paper The Part-Time Parliament actually specifies an entire fault-tolerant replicated state machine complete with log compaction, time-bounded leases, linearizable reads, and live cluster reconfiguration. Written in 1990 as an archaeological fable about absentee legislators on the Aegean island of Paxos and rescued from an editorial filing cabinet eight years later by Keith Marzullo, the paper solves the fatal flaw in Lamport’s 1978 state machine: tolerating arbitrary benign crashes and lost, duplicated, reordered messages without halting.
Its Greek terminology (“Synod”, “priests”, “olive day”) obscured the fact that Section 3 already laid out Multi-Paxos and nearly every operational trick rediscovered in production systems like Chubby and Raft.
- Three invariants (
B1,B2,B3) guarantee safety: unique ballot numbers, intersecting quorums (even weighted for “fat” reliable nodes), and forcing any new ballot to adopt the decree of the highest-numbered prior vote seen in its quorum. - Amortized steady-state Multi-Paxos: a newly elected president runs Phase 1 (
NextBallot(b, n)) once for all future decree numbers, cutting normal replication to 3 message delays and3Nmessages, or2Nmessages when piggybacked. - Clean split between durable ledger and volatile RAM: legislators keep only 3 persistent variables (
lastTried,prevVote,nextBal) in indelible ink; losing a scratch “slip of paper” on crash simply aborts the active proposal safely. - Section 3.3 solves five production headaches: snapshot “law books” for long logs, short-term “cheese inspector” leases, monotonic goat-sale reads, periodic self-stabilizing decrees, and
n - 3pipelined membership changes.
Why naive parliament rules split the ledger
The Paxon Synod originally required every priest to stay in the Chamber until a decree passed. Once commerce boomed and legislators wandered out for banquets or six-month voyages, that rule deadlocked. Letting whichever sub-group happened to be in the room pass decrees failed immediately too: one group passed decree 37 banning temple-wall paintings before going to dinner, and a second group walked in and passed a conflicting decree 37 guaranteeing artistic freedom.
To keep indelible ledgers consistent despite crashes, partitions, lost messengers, and duplicate deliveries, Lamport derives the Synod protocol backwards from three mathematical invariants over the god’s-eye set B of all ballots ever initiated:
- B1 (unique numbers): every ballot has a distinct number, partitioned across priests by pairing an increasing integer with a unique priest identifier, such as
(13, Gamma...) < (13, Lambda...). - B2 (intersecting quorums): any two ballot quorums share at least one priest. Lamport notes that a quorum need not be equal-headcount: “fat priests” who rarely left the Chamber were given higher voting weight than wandering thin ones, provided any two majority-weight sets still overlapped.
- B3 (decree inheritance): for every ballot
B, if any priest inB’s quorum voted in an earlier ballot,B’s decree must equal the decree of the highest-numbered such earlier ballot (MaxVote(B_bal, B_qrm, B)).
Theorem 1 proves by contradiction that if B1, B2, and B3 hold, no two successful ballots can ever carry different decrees. Theorem 2 proves that whenever a majority is present, a new ballot with a larger number can always succeed without violating B1 through B3.
In the preliminary protocol (Steps 1 through 6), a priest initiating ballot b sends NextBallot(b), collects LastVote(b, v) promises not to vote in ballots between v_bal and b, chooses a decree d obeying B3, sends BeginBallot(b, d), collects Voted(b, q) confirmations from quorum Q, and broadcasts Success(d). Because that preliminary design forced busy priests to log every past vote and promise forever, Lamport restricts it to the basic protocol: each priest persists only lastTried[p], prevVote[p] (prevBal, prevDec), and nextBal[p], conducts one ballot at a time on a disposable slip of paper, and strengthens LastVote into a promise never to vote in any ballot below b. Every action allowed by the basic protocol is already valid in the preliminary protocol, preserving safety.
To add liveness, the complete Synod protocol introduces hourglass timers and bounded in-Chamber delays: a present messenger delivers within 4 minutes and a present priest acts within 7 minutes (14 dzediphi at 30 seconds each), making one round trip 22 minutes. If a single elected president and a majority stay in the Chamber without churn for T + 99 minutes (where T is the leader-election timeout), a decree is guaranteed to be chosen and written into every present ledger. Footnote 12 points explicitly to FLP (1985) to explain why progress requires measuring time while safety never does.
From single decrees to a pipelined parliament
Passing one decree at a time via two full round trips would cripple any real service. Section 3 turns the Synod into the Multi-Decree Parliament using one structural insight: in the Synod protocol, a proposer does not pick the decree or quorum until Step 3 (BeginBallot).
Therefore, a newly elected president p whose ledger is complete through decree n sends a single NextBallot(b, n) message that acts as Step 1 for all infinitely many decree slots greater than n at once. Each legislator replies with a single finite LastVote summary covering only the un-committed decrees above n where it has voted, plus any committed decrees above n missing from p’s ledger.
Once a majority answers, p immediately finishes Step 3 for any constrained earlier slots and enters steady state. Every new client decree requires only Steps 3, 4, and 5 (BeginBallot, Voted, Success), taking 3 message delays and ~3N messages, or 2N messages per decree when busy presidents piggyback Success for an earlier decree onto BeginBallot for the next.
What happens when a crash leaves a hole in the log? Suppose decrees 125 and 126 are sent late Friday afternoon; 126 passes, 125 stalls, and everyone leaves for the weekend. On Monday, a new president learns of 126 without knowing 125. Rather than assigning a fresh client request to slot 125 (which would place a Monday command before Friday’s decree 126 in the state machine), the president fills gap 125 with a harmless traditional decree: "125: The ides of February is national olive day". That no-op preserves the decree-ordering property: any important decree passed before another is proposed always receives a lower index.
Five systems lessons hidden in Section 3.3
Most textbook summaries stop at Section 3.2, missing five engineering mechanisms that turned Paxos from a toy into a usable replicated database (mapped in Section 4.1 from legislator/law book to server/database state). Explore how each failure forced a concrete mechanism in the paper.
Select a mechanism (or use Left and Right arrow keys) to compare the concrete failure story in Paxos, why naive fixes break, and the paper's protocol rule.
Losing volatile RAM on restart
PersistenceA legislator drops his scratch slip of paper while leaving the Chamber after already promising or voting in a ballot.
- Why naive fix breaks
- Keeping nextBal or prevVote in volatile memory lets a restarted node break its promise and accept a conflicting lower-numbered decree.
- Paper's mechanism
- Persist only outcome, lastTried, prevVote, and nextBal in the ledger; losing the volatile slip simply sets status = idle.
- Proof artifact
- Appendix Section A2 models crashes via an explicit Forget action and proves the 7-conjunct invariant I1 through I7 holds across it.
- Modern engineering link
- Raft and Multi-Paxos fsync currentTerm/votedFor (or ballot/promise) to WAL before replying to RPCs while keeping leader queues in RAM.
Out-of-order commits during leader failover
Log gapsDecree 126 passes Friday afternoon while 125 stalls; Monday's president knows 126 without knowing 125.
- Why naive fix breaks
- Reusing slot 125 for a brand-new Monday request places a later client command ahead of Friday's already-committed decree 126.
- Paper's mechanism
- Fill any missing slot whose earlier ballot did not reveal a value with the harmless no-op 'national olive day' decree.
- Resulting invariant
- Guarantees the decree-ordering property: if important decree A passed before B was proposed, index(A) < index(B).
- Modern engineering link
- Multi-Paxos clusters still insert no-op entries on leader election; Raft avoids holes by enforcing sequential log matching.
Dual active workers after a replacement decree
LeasesParliament replaces strict cheese inspector Dijkstra with Gouda in decree 1375, yet Dijkstra misses the decree and keeps inspecting.
- Why naive fix breaks
- Because decree delivery is asynchronous, an old primary can stay disconnected and keep serving authority-sensitive actions.
- Paper's mechanism
- Issue time-bounded leases (8:30 Jan 15 for 3 months) synced via celestial clocks (15-min guard) and prove proposal timestamps never invert.
- Why ordering holds
- Because quorums intersect, any later president proposing decree D' must already know about earlier decree D or force D's proposal first.
- Modern engineering link
- Directly anticipates Gray & Cheriton (1989) leases, Chubby master leases, and leader read leases in etcd and Spanner.
Stale follower serves an outdated law
Linearizable readsFarmer passes decree 77 legalizing black goats, yet merchant asks lagging legislator Stockmeyer (stuck at 76) who wrongly says illegal.
- Why naive fix breaks
- Reading from any local replica violates monotonicity: a client acting after a write finishes can observe an earlier state.
- Paper's mechanism
- Three options: (1) slow read via decree 87, (2) causal decree numbers (277 -> 298), or (3) leased single-specialist shards.
- Multi-shard note
- Cross-area queries (merchant Liskov checking tax vs. tariff) require both specialists to freeze updates or temporarily merge under one specialist.
- Modern engineering link
- Maps directly to linearizable quorum reads, causal read-your-writes tokens, and Spanner/ZooKeeper leader-lease reads.
Changing cluster membership without split quorums
ReconfigurationLegislators vote on who counts as a legislator, creating a circular dependency between decree n and the quorum that passes decree n.
- Why naive fix breaks
- Applying a membership change immediately lets two presidents use different quorum definitions for the same slot, breaking B2 intersection.
- Paper's mechanism
- Let the membership for decree n be fixed by the committed state as of decree n - 3, padding with olive-day decrees when needed.
- Cautionary failure
- A scribe error honoring drowned sailors accidentally made them the sole Parliament members, halting all decrees and triggering General Lampson's coup.
- Modern engineering link
- Same pipelined-window idea behind Raft's single-server or joint-consensus changes and Chubby/etcd reconfiguration.
Source: Lamport (1998), Sections 2.3 and 3.3.
Without clicking through the tabs, here are the five takeaways from Sections 2.3 and 3.3:
- Crash-safe state is tiny: only
outcome,lastTried,prevVote, andnextBalneed durable storage; losing volatile coordinator state simply aborts the current round cleanly. - No-op gap filling preserves causal order: filling stalled lower slots with “olive day” prevents new commands from sneaking ahead of already-committed higher slots.
- Leases eliminate split-brain workers: time-bounded terms plus monotonic decree proposal times ensure two cheese inspectors never overlap even under network delays.
- Reads require explicit monotonicity: stale replicas can be bypassed via slow consensus reads, causal index tokens, or leased area specialists.
- Reconfiguration needs a delay window (
n - 3): fixing a slot’s quorum several committed slots ahead breaks circularity, though a bad membership command can still permanently brick liveness.
Caveats and modern context
Three caveats keep The Part-Time Parliament in sharp perspective for engineers today.
First, the protocol assumes benign crash-recovery faults, not Byzantine adversaries. As Lamport notes in Section 3.3.5 and Section 4.1, dishonest legislators sending conflicting messages can break ledger consistency. Paxos later noted that Parliament cycled redundant decrees every six months to achieve eventual self-stabilization (citing Dijkstra 1974), yet the paper intentionally leaves Byzantine fault tolerance and bounded real-time deadlines outside its scope.
Second, the allegory left key operational details underspecified. Lamport deliberately sketches president election (proposing alphabetical priority in the Synod, then documenting how slow-writing Omega-kappa-iota stalled Parliament upon returning from vacation) and omits a formal proof of the multi-decree optimizations, snapshotting (“law books”), and n - 3 reconfiguration. That gap is why Lamport later wrote Paxos Made Simple to isolate the consensus proof, and why Ongaro and Ousterhout designed Raft around a single complete specification of leader election, log matching, and membership transitions.
Third, a consensus algorithm cannot save you from operator error. The paper’s closing joke about the scribe’s error handing Parliament over to dead sailors captures a real outage mode: if a reconfiguration command commits an unreachable quorum, Paxos faithfully preserves safety by refusing to commit anything ever again, including the fix.
When reading distributed systems literature today, treat The Part-Time Parliament as the Rosetta Stone of state-machine replication: every modern production system, from Chubby locks to etcd and Spanner, implements the exact tradeoffs between quorum intersection, pipelined writes, leases, snapshots, and delayed membership windows that Lamport mapped onto one Mediterranean island.


