Glossary

Raft

A consensus algorithm: elect a leader, replicate a log to a majority.

1 min read·4 sections
Open the interactive version → diagrams, practice & more

Definition

A consensus algorithm: elect a leader, replicate a log to a majority.

How it works

Understandable Paxos. Any two majorities overlap, so it stays safe under partitions — only the majority side makes progress. Powers etcd, Consul, CockroachDB.

Common questions

What is Raft?

A consensus algorithm: elect a leader, replicate a log to a majority.

How does Raft work?

Understandable Paxos. Any two majorities overlap, so it stays safe under partitions — only the majority side makes progress. Powers etcd, Consul, CockroachDB.

What is Raft used for in system design?

Understandable Paxos. Any two majorities overlap, so it stays safe under partitions — only the majority side makes progress. Powers etcd, Consul, CockroachDB.

Part of Glossary on SystemLore — system design explained with 148 deep topics, interactive diagrams, and a build-it-yourself game. Build this one →