Distributed Systems

Gossip protocol

Each node periodically tells a random peer what it knows.


In plain terms

Information spreads in O(log N) rounds. Cassandra, Consul, Riak. No single coordinator to fail.

Origin

Demers et al., "Epidemic Algorithms for Replicated Database Maintenance," PODC 1987. Cassandra (2008) brought gossip into mainstream production.

Where it shows up in production
  • Cassandra & ScyllaDB Cluster membership, schema agreement, repair coordination — all gossip.
  • HashiCorp Consul Uses Serf, a SWIM-based gossip layer, for cluster membership.
  • Bitcoin Block and transaction propagation across the peer-to-peer network is gossip-style.
Sources & further reading
Found this useful?