AlgoPlus//networking / raft
Read the theory

Raft Consensus

Elect a leader, then replicate a log so every node agrees on the same commands.

Term
Leader
Legend
Follower
Candidate
Leader / committed
AI Tutor Workspace
In a nutshell
Raft keeps a replicated log consistent across many servers. The nodes elect one leader by majority vote, and every change goes through it. The leader appends each command and copies it to the followers; once a majority have stored an entry it is committed. If the leader fails, a new election picks another.
Ready
Press play to begin the cinematic walkthrough.
Pick one boss by majority vote, and route every change through it. As long as a majority writes something down before it counts, the cluster can never disagree on history.
Key terms
Go deeper in the lesson
Read the full theory, intuition & complexity for Raft Consensus.