In a distributed system using a gossip protocol, how is data consistency typically achieved?
Think about how gossip mimics how rumors spread in social groups.
Gossip protocols rely on nodes randomly sharing their state with peers repeatedly. Over time, this leads to all nodes converging to the same data without central coordination.
Which of the following components is not typically part of a gossip protocol system?
Gossip protocols avoid central points of control.
Gossip protocols are decentralized and do not rely on a centralized coordinator. Instead, nodes independently select peers and exchange state.
When scaling a gossip protocol to thousands of nodes, what is a common technique to reduce network overhead?
Think about how to limit message explosion in large groups.
To reduce network traffic, nodes gossip with a small random subset of peers each round, which still ensures eventual convergence with less overhead.
Which design choice in a gossip protocol increases convergence speed but also increases bandwidth usage?
More data per message means faster updates but more network use.
Exchanging larger state per message speeds up convergence but consumes more bandwidth, showing a tradeoff between speed and network cost.
Consider a gossip protocol with 10,000 nodes. Each node gossips with 3 random peers every 5 seconds. Estimate the total number of gossip messages sent per minute across the cluster.
Calculate messages per node per minute, then multiply by total nodes.
Each node sends 3 messages every 5 seconds. There are 60/5 = 12 rounds per minute, so 3 × 12 = 36 messages per node per minute. For 10,000 nodes: 10,000 × 36 = 360,000 messages per minute.
