A Raft group acts only with a majority and numbers every leadership with a term, so a term has at most one leader and a cut-off old leader can never commit on its own.
Learn the idea first
Three Raft nodes share one replicated log. A leads term 1, B and C follow, and a client wants to save x=5. Election timers are random between 150 and 300 ms, the range the Raft paper suggests. Heartbeat spacing, the client's timeout and every other timing are illustrative.
Client app
wants to save x=5
Node A
leader · term 1
Node B
follower
Node C
follower
Swipe the diagram sideways to see every column →
Where the time goes
345 ms total
Three Raft nodes share one replicated log. A leads term 1, B and C follow, and a client wants to save x=5. Election timers are random between 150 and 300 ms, the range the Raft paper suggests. Heartbeat spacing, the client's timeout and every other timing are illustrative.
Illustrative timings. Real numbers vary with distance, network quality and server load.