How distributed systems agree on state. A practical look at Raft’s Leader Election and Log Replication, finally making sense of consensus.