March 2021
Intermediate to advanced
260 pages
5h 45m
English
Raft is a distributed consensus algorithm designed to be easily understood and implemented. It’s the consensus algorithm behind services like Etcd—the distributed key-value store that backs Kubernetes, Consul, and soon Kafka, whose team is migrating from ZooKeeper to Raft.[48] Because Raft is easy to understand and implement, developers have written many quality Raft libraries used in many projects and it’s become the most widely deployed consensus algorithm today.
Let’s talk about Raft’s leader election first and then talk about its replication, and that’ll transition into coding replication in our service.
A Raft cluster has one leader and the rest of the servers are followers. The leader ...
Read now
Unlock full access