Raft
How a cluster of servers agrees on one log, even when some crash or the network splits.
Code
Start an election
Leader
Candidate
Follower
Crashed
Votes
Heartbeats and entries
Logs