AppendEntries
AppendEntries is a remote procedure call used in the Raft consensus algorithm. It is sent by the leader to followers to replicate log entries and to maintain authority through heartbeats. Each AppendEntries message includes the leader’s term, the leader’s identifier, the index and term of the log entry immediately preceding new entries (prevLogIndex and prevLogTerm), a set of new log entries to store (entries), and the leader’s commit index (leaderCommit).
When a follower receives AppendEntries, it first compares terms. If the leader’s term is older than the
The follower responds with its current term and a success flag. A successful response allows the leader
AppendEntries is central to log replication and leader performance in Raft, ensuring that followers converge toward