Raft is a consensus algorithm that manages a replicated state machine across a cluster of servers to ensure fault tolerance. It achieves consensus by electing a single leader responsible for managing log replication to follower nodes. The algorithm's core components are leader election, log replication, and safety, which guarantee that all servers agree on the same sequence of log entries even during network partitions or server failures. Its design prioritizes understandability and correctness over raw performance.
