Consul uses modern protocols to quickly detect failures and significantly reduce false positives. To achieve these objectives, it uses the following protocols:
- RAFT protocol to elect a leader
- Consensus protocol to replicate data from a leader server to its peers
- Gossip protocol for failure detection
Let's go through these protocols to understand how the Consul cluster works.