A replicated log is an ordered, append-only sequence of state-changing entries maintained across multiple nodes. In Raft, a leader receives each request and records it before followers append the same entry, establishing a consistent order for changes such as schema updates. section 8.2.5
A Raft write proceeds in two stages:
- Append the entry to the leader’s local log, reserving its position. section 8.2.5
- Ask other nodes to append the entry to their logs. section 8.2.5
- Commit the entry after a majority of nodes acknowledge the append, making it locked in and persistent. section 8.2.5
Ordering a schema change
If two conflicting schema changes arrive at different nodes, routing requests through one leader places one entry before the other in the replicated log instead of allowing concurrent, conflicting updates. section 8.2.5
Figure 8.9 Raft’s leader appends entries to its log, committing them when a majority of nodes have also acknowledged the append operation.
Trace how a Raft leader appends an entry, replicates it to followers, and commits it after a majority acknowledges the append. section 8.2.5
