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

The Raft Consensus Algorithm

"Raft achieves distributed consensus on a replicated log by electing a single leader per term who unilaterally manages log replication to followers."
In plain English

What does The Raft Consensus Algorithm mean?

Raft, 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.

Reliability

Rated Empirical: grounded in studies or measurable evidence. The other 608.

Lineage
2014COINED
How it works

How does The Raft Consensus Algorithm work?

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

Where you'll see it

What are examples of The Raft Consensus Algorithm?

Leader election If 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.
Log replication A leader appends a client command to its log and replicates it to followers via AppendEntries RPCs; once a majority durably store the entry, the leader considers it committed and applies it to the state machine.
Production adoption Raft underlies widely used systems such as etcd (Kubernetes’ coordination store), HashiCorp Consul, CockroachDB, and Apache Kafka’s KRaft mode.
Why it matters

Why does The Raft Consensus Algorithm matter?

Raft’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

What are the limits of The Raft Consensus Algorithm?

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

What it doesn't say

What are common misconceptions about The Raft Consensus Algorithm?

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

Is it real?

Is The Raft Consensus Algorithm real?

Yes, as far as the evidence goes. The Raft Consensus Algorithm is rated Empirical here: it rests on studies or measurements rather than on a saying.

Rated from two sources. 609 of the 1,116 entries carry this rating. How the scale works.

36 of 69entries in software & systems carry the same rating

The best-known laws are the least likely to rest on measurement.

Origin

Where did The Raft Consensus Algorithm come from?

Devised by Diego Ongaro and John Ousterhout of Stanford University; the paper was presented at USENIX ATC 2014 and received a Best Paper Award.

Sources

Sources & further reading

  1. 1Raft (algorithm), Wikipedia. — the authorship, design goals, roles/terms/election mechanics, the non-Byzantine limitation, and production adopters.secondary
  2. 2Ongaro & Ousterhout, "In Search of an Understandable Consensus Algorithm," USENIX ATC 2014. — the origin and design.primary

Everything above traces to en.wikipedia.org and web.stanford.edu, two sources in all, one of them the original publication rather than an account of it. Nothing is written from memory, and the method is written down. Spot an error or a better source? Suggest a fix.

What we checked

  • 1,116entries in the tomeListed one by one on the browse page.
  • 1,116of them citing a sourceOpen any entry: its sources sit at the foot of the page.
  • 2,489source references in allEach is named, and linked wherever the source is online.