Cognitive Scaffold

Preparing your thinking workspace

arrow_back_ios_new
MENTAL MODEL · M1469

Paxos Algorithm

Paxos Algorithm
SystemsHigh supportSystems Theory
Included
account_tree

Updated 2026-07-28

Loading revision record…

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.

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/5

Practice this model in one real situation:

Check to track your progress (stored locally)
Learning progress0%

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.

  • link
    zh.wikipedia.orghttps://zh.wikipedia.org/wiki/Paxos%E7%AE%97%E6%B3%95ZH · Explicit
    verified
account_treeGenealogyexpand_more

RELATED MODELS