Skip to content
Putting It All Together
step 1/5

Reading — step 1 of 5

Read

~1 min readProduction

Putting It All Together

Layers:

LayerLesson
Why gossip1
Anti-entropy2
Membership3
SWIM4
Phi-accrual5
Convergence6
Applications7

What we glossed over:

  • Lifeguard improvements (Hashicorp 2018): anti-friend bias, SWIM tuning. Used in modern memberlist.
  • CRDT-based gossip: when state itself is a CRDT, conflict resolution is automatic.
  • Scuttlebutt protocol: an early gossip protocol used by Cassandra.
  • Tree-based gossip: spanning-tree variants for highly structured topologies.
  • Adversarial settings: gossip with Byzantine nodes (some lying) needs different protocols (HotStuff, Avalanche).

Production tips:

  • Tune gossip period to balance bandwidth vs convergence time.
  • Use UDP for gossip (lossy is OK; protocol re-converges).
  • Limit message size — split state into chunks.
  • Monitor convergence: alert if cluster doesn't agree within N seconds.
  • Test under partition: split brain should heal when partition resolves.

Useful libraries:

  • Hashicorp memberlist (Go)
  • Akka cluster (JVM)
  • Cassandra's gossip module
  • libp2p gossipsub (used by IPFS/Ethereum)

You now understand a fundamental distributed-systems primitive.

Discussion

Ask a question, share an insight, or help someone who’s stuck.

Sign in to post a comment or reply.

Loading…