Understanding Raft: Why Distributed Systems Need Consensus

When I first started learning distributed systems, one question kept coming up: How do multiple machines agree on the same state, even when…