Paxos/Raft Consensus

Computer Science

How It Works

The Raft consensus protocol orchestrates fault-tolerant, consistent state machine replication across distributed computing clusters. A recognized Leader accepts client update proposals and multicasts AppendEntries remote procedure calls to Follower replicas. Once a proposed entry is logged by a strict majority quorum of servers, it is marked committed and executed into the state machine, guaranteeing strict safety under network partitions.

Governing Equation
$$ \text{Quorum} = \lfloor N / 2 \rfloor + 1 \quad\vert\quad \text{Commit}(i) \iff \sum_{k=1}^N I_{\text{match}(k, i)} \ge \text{Quorum} $$