Practice this topic in a realistic system design interview
Raft is a consensus algorithm. It keeps a replicated log consistent across a group of servers, so every server applies the same commands in the same order, even when some servers crash.
In this chapter, we will walk through the Raft consensus algorithm step by step, including how it elects a leader, how it replicates a log across servers, and the rules that keep that log consistent even when servers crash.