Distributed Coordination: Consensus, Heartbeats and Gossip

Use strong agreement, lightweight failure detection, integrity checks and membership propagation for the right problems.

Different problems, different tools

Distributed coordination: leader agreement, heartbeats, gossip membership and checksums solve different failure questionsDistributed coordination: leader agreement, heartbeats, gossip membership and checksums solve different failure questions

ProblemToolGuarantee
One ordered configuration/logRaft or Paxos-style consensusMajority agreement
Is a node probably alive?Heartbeat + timeoutSuspicion, not certainty
Spread membership at scaleGossipEventual convergence
Was data corrupted?ChecksumDetect accidental modification

Raft elects a leader and commits a log entry after a majority replicates it. Use it for a small control plane, not as a free replacement for high-throughput data paths. Heartbeats can be late during pauses; use leases/fencing when an old owner could cause damage.