Consensus with Raft
Five servers must agree on the order of every change, even while some of them crash and the network drops messages. If two of them disagree about what happened, which one is right? Consensus algorithms make sure that question never comes up.
In this lesson you'll learn to
- Explain what consensus solves, and why it needs a majority.
- Describe how Raft elects a leader with terms, votes and randomized timeouts.
- Describe how Raft replicates a log and decides when an entry is committed.
- Choose a cluster size, know the cost of consensus, and recognise where it's used.
Create a free account to open this lesson
It's free. You'll get every free lesson, quizzes that save your progress, daily flashcards and streaks.