tags : Two Phase Locking (2PL) & Two Phase Commit (2PC), Distributed Systems, Concurrency Consistency Models, Data Replication, Eventual Consistency, Zookeeper

![](/ox-hugo/20231118205116-consensus_protocols-1001622362.png)

FAQ

Partial Quorum

Paxos

Raft

Leader selection

  • The protocol doesn’t require a quorum (majority) for a leader election vote to pass, it can function on 2 servers.
  • When the 3rd one returns, it will see it’s raft log is out of date and will synchronise back up and start working again. During that phase it will not make itself a candidate for leader election

Resources