Gossip protocol
In Consul, the gossip protocol is used to manage client and server communication through message broadcasting between multiple data centers and within the same data center.
The gossip protocol in Consul is based on the Scalable Weakly-consistent Infection-style Process Group Membership (SWIM) protocol that was developed by Cornell University. Its implementation is done through a tool called Serf (https://www.serf.io/docs/internals/gossip.html), which is based on a modified SWIM protocol that has been enhanced by Hashicorp. This protocol is used to provide communication membership, failure detection, and event broadcasting.
Gossip protocol communicates over UDP to build a membership list and to converge it as soon as possible. ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access