NEW
A protocol where nodes spread information by periodically sharing with random peers.
DESCRIPTION
Gossip protocols disseminate state by having nodes periodically exchange information with random peers, enabling scalable, robust convergence. They underpin membership, failure detection, and anti-entropy in distributed systems. SWIM refines gossip with efficient failure detection and low overhead. Gossip tolerates node churn and partitions better than centralized schemes. It offers probabilistic guarantees and eventual consistency.
ALTERNATIVE DEFINITIONS
Wikipedia
A gossip protocol is a style of computer-to-computer communication protocol inspired by the way epidemics spread.
Highlights epidemic-style, probabilistic dissemination.
Cornell University
We present SWIM, a membership protocol with low message load and weakly consistent but highly available failure detection based on randomized probing.
Focuses on SWIM’s efficient membership and failure detection characteristics.
RELATED TERMS
Epidemic Algorithms Membership Service Failure Detection Anti-Entropy Eventually Consistent SWIM Protocol CRDT Heartbeat Overlay Network Dissemination
COMPETING TERMS
Centralized Service Registry Flooding
RELATIONS
- Broader: Protocol
KNOWLEDGE AREAS
Infrastructure Real-time & Streaming Data Software Engineering Data Engineering
TARGET AUDIENCE
DevOps Engineer Software Developer Cloud Architect Data Engineer Software Architect
EXTERNAL SOURCES
- Wikipedia - Gossip protocol
- Cornell University - SWIM membership protocol paper
- HashiCorp Consul - Gossip in service discovery
- Apache Cassandra - Cassandra’s gossip and membership
TOP QUESTIONS
Why choose a Gossip Protocol over centralized coordination?
Gossip scales and tolerates failures better, avoiding single points of failure at the cost of probabilistic convergence.
Category: Comparison
What is SWIM in the context of Gossip Protocols?
SWIM is a gossip-based membership and failure detection protocol with low message overhead and scalable design.
Category: Concept
What are common mistakes when implementing Gossip Protocols?
Insufficient randomness, improper timeouts, or ignoring network partitions can lead to false suspicions and slow convergence.
Category: Mistakes
How does Gossip achieve eventual consistency?
Repeated randomized exchanges spread updates system-wide, ensuring all nodes converge given sufficient time and connectivity.
Category: Concept
Where are Gossip Protocols used?
They drive membership, failure detection, and anti-entropy in databases, service meshes, and cluster managers.
Category: Application
What are the risks of Gossip Protocols?
Propagation delays and false positives can cause transient inconsistencies; tuning helps mitigate these issues.
Category: Risk
How to test a Gossip Protocol?
Simulate churn, partitions, and message loss; measure convergence time, false suspicion rates, and message overhead.
Category: Testing
What metrics matter in Gossip Protocols?
Convergence latency, message load per node, false positive rate, and scalability with cluster size.
Category: Requirements
What’s a hot topic around Gossip Protocols?
Hybrid models combining gossip with partial centralization to improve timeliness and reliability.
Category: Topic