Raft Log Replication
8 min read.
Follow a client write through the leader to a majority and commit, repair a follower that fell behind, and see an old leader’s uncommitted entries overwritten.
Think of it this way: The leader is a minute-taker whose notebook is the truth. An entry counts as decided once most members have copied it down. A member who missed meetings gets caught up page by page, and anyone holding pages the notebook never had tears them out and copies the notebook.
Three servers keep the same log. S1 is the leader in term 1. Entry 1 is on all three and committed.
Check your understanding
Answer from memory before you scroll back up. Pulling an idea out of your head is what makes it stay there.
Commit a Raft entry
Order the steps from the client write to followers learning it is committed.
Tap a piece, then tap where it goes — or drag it. Tap the tray to take one back.
- 1Drop a step here
- 2Drop a step here
- 3Drop a step here
- 4Drop a step here
- 5Drop a step here
Quiz
8 questionsWhen is a Raft entry committed?
Done with this lesson?
Sign in free to keep your progress, streak and quiz scores.