Vol. I a living index of named laws · est. mmxxvi no ads · no account
The Law Tomeindex of named laws
Often confused

Paxos vs The Raft Consensus Algorithm

These two are routinely mistaken for each other. Here is what separates them, and what each actually claims, field by field.

Paxos compared with The Raft Consensus Algorithm
AttributePaxosThe Raft Consensus Algorithm
FieldSoftware & systemsSoftware & systems
ReliabilityEmpiricalEmpirical
Coined19982014
Named after——
TypeEstablishedEstablished

What they have in common

  • Both sit in Software & systems.
  • Both are rated Empirical, so they stand on the same kind of evidence.
  • Paxos is the older of the two by 16 years.

Side by side

What it claims

PaxosPaxos is a family of protocols that let a network of unreliable processors reach consensus on a single value.
The Raft Consensus AlgorithmRaft achieves distributed consensus on a replicated log by electing a single leader per term who unilaterally manages log replication to followers.

In plain English

PaxosPaxos 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.
The Raft Consensus AlgorithmRaft, introduced by Diego Ongaro and John Ousterhout in their 2014 paper "In Search of an Understandable Consensus Algorithm," keeps a replicated log consistent across a cluster of servers so they can implement the same replicated state machine. It was explicitly designed as an easier-to-understand alternative to Paxos while providing equivalent correctness and efficiency.

How it works

PaxosPaxos 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.
The Raft Consensus AlgorithmRaft decomposes consensus into three subproblems: leader election (servers use randomised timeouts to become candidates and win a leader role via majority vote for a numbered "term"), log replication (the leader appends client commands to its log and replicates them, committing once a majority store an entry), and safety (rules ensuring a newly elected leader holds all previously committed entries). Servers act as leader, follower, or candidate, and leader heartbeats prevent unnecessary elections.

Why it matters

PaxosPaxos 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.
The Raft Consensus AlgorithmRaft’s emphasis on understandability made distributed consensus far more accessible to engineers and students than Paxos had been, a user study in the original paper found students learned Raft more easily, driving its rapid, widespread adoption in production infrastructure.

Where it breaks down

PaxosThe 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.
The Raft Consensus AlgorithmRaft is not Byzantine fault tolerant (it assumes servers fail by stopping, not by acting maliciously) and it relies on a single leader per term, which can create a temporary availability gap during elections and a throughput bottleneck since all writes flow through one node.

Commonly misread as

PaxosPaxos 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.
The Raft Consensus AlgorithmRaft is sometimes assumed to guarantee strict linearizable reads from any replica without qualification; in practice safe linearizable reads require additional mechanisms such as leader leases or read-index checks, and its guarantees apply only under its non-Byzantine failure model.

A worked example

PaxosLamport 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.
The Raft Consensus AlgorithmIf a follower receives no heartbeat within its randomised election timeout, it becomes a candidate, increments the term, and requests votes to become the new leader.

Where it came from

PaxosDevised by Leslie Lamport at Digital Equipment Corporation; written and circulated in 1989, formally published in 1998.
The Raft Consensus AlgorithmDevised by Diego Ongaro and John Ousterhout of Stanford University; the paper was presented at USENIX ATC 2014 and received a Best Paper Award.

Sources

Questions about this pair

What is the difference between Paxos and The Raft Consensus Algorithm?

Paxos says “Paxos is a family of protocols that let a network of unreliable processors reach consensus on a single value.”; The Raft Consensus Algorithm says “Raft achieves distributed consensus on a replicated log by electing a single leader per term who unilaterally manages log replication to followers.”. They are near-twins and easy to confuse; the field-by-field comparison above sets out what each actually claims.

Are Paxos and The Raft Consensus Algorithm the same thing?

No, though they are routinely mistaken for each other. They are recorded here as near-twins precisely because the confusion is common.

Which one should I apply?

Whichever one's conditions your case meets. This page will not guess which that is. Paxos states where it stops working, and so does The Raft Consensus Algorithm; both passages are above, in the entries' own words. Reading the two limits side by side answers this faster than a recommendation from a site that cannot see your situation.