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 and 3N messages, or 2N messages 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 - 3 pipelined membership changes.
From single-decree Synod to Multi-Decree Parliament
1. Single-Decree Synod
Basic protocol compresses history to 3 persistent fields per node.
5 steps per decree (NextBallot -> Success)
Phase 1 reads prevVote and bumps nextBal; Phase 2 runs BeginBallot / Voted; Success(d) commits to ledgers.
2. Multi-Decree Parliament
Decree value and quorum are deferred until Step 3, enabling batching.
Steady state: 3 delays, 2N to 3N messages
New president sends one NextBallot(b, n) for all slots > n, then skips Phase 1 per decree and piggybacks Success.
3. Durable vs. volatile state
Separates crash-safe promises from disposable coordinator bookkeeping.
Ledger vs. slip of paper
Ledger holds outcome, lastTried, prevVote, nextBal; losing the scratch slip resets status to idle safely.

Architecture from Lamport (1998), Sections 2.3, 3.1, and 3.2.

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 in B’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.

Three production traps solved in Section 3.3
Unbounded logs

Replaying every decree since founding stalls recovery. Paxos checkpoints state into a “law book” plus a trailing week of decrees.

Split-brain workers

Decree 1375 appointed Gouda cheese inspector while Dijkstra kept inspecting. Parliament added timed leases and ordered proposal times.

Membership circularity

A decree cannot both set and use the current quorum. Parliament applied decree n using membership as of decree n - 3.

Operational refinements from Lamport (1998), Section 3.3.

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.

Five real-world systems failures and how Paxos solved them

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

Persistence

A 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.

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, and nextBal need 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.