# Paxos

> Paxos is a family of protocols that let a network of unreliable processors reach consensus on a single value.

**Field:** Software & systems · **Reliability:** Empirical · **Coined:** 1998

## What it means

Paxos solves the fundamental distributed-systems problem of getting multiple nodes, some of which may fail or be slow, to agree on one value even though messages can be lost or delayed. It guarantees safety (all nodes that decide, decide the same value) under asynchronous, unreliable conditions, provided a majority of participants are functioning.

## How it works

Paxos proceeds in proposal-numbered rounds among proposers, acceptors, and learners: a proposer requests a promise from a majority of acceptors not to accept older proposals, then, if it wins that majority, sends an accept request for a value, which acceptors adopt if consistent with their promises; a value is chosen once a majority of acceptors accept it.

## Examples

- **The Paxos parable:** Lamport cast the algorithm as a whimsical parable about the parliament of the Greek island of Paxos, whose legislators wandered in and out of session yet still needed to pass laws by consensus.
- **Google Chubby:** Google’s Chubby distributed lock service, along with Spanner and Megastore, use Paxos to keep replicas consistent.
- **Publication history:** Lamport wrote the paper in 1989 but it was not published until 1998, as "The Part-Time Parliament," ACM Transactions on Computer Systems.

## Why it matters

Paxos became the foundational consensus algorithm underlying practical fault-tolerant replicated systems, enabling reliable distributed locking, configuration management, and state-machine replication at companies like Google, Microsoft, and Amazon.

## Where it breaks down

The original Part-Time Parliament paper was notoriously difficult to understand, prompting Lamport to write "Paxos Made Simple" (2001); implementing Paxos correctly in real systems remains complex, spawning variants like Multi-Paxos and Raft.

## Common misreadings

Paxos is sometimes assumed to be named after a person, but it is named after the real Greek island of Paxos, the setting for Lamport’s parliamentary allegory.

## Origin

Devised by Leslie Lamport at Digital Equipment Corporation; written and circulated in 1989, formally published in 1998.

## Related

- [The Raft Consensus Algorithm](https://conyso.com/lawtome/laws/the-raft-consensus-algorithm/) — near-twin

## Sources

- [Paxos (computer science), Wikipedia. — the core definition, the naming origin, and real-world deployments.](<https://en.wikipedia.org/wiki/Paxos_(computer_science)>)
- [Lamport, "The Part-Time Parliament," ACM Transactions on Computer Systems 16(2) (1998). — the primary paper introducing Paxos.](<https://lamport.azurewebsites.net/pubs/lamport-paxos.pdf>)

---
Source: https://conyso.com/lawtome/laws/paxos/ · The Law Tome — a sourced index of named laws.
