The presentation discusses the engineering approach taken by Vitess to solve the consensus problem in a high QPS environment while prioritizing performance over theoretical correctness.
- Vitess is a single leader system that relies on a topology server for persistent state and recovery
- The system prioritizes performance over theoretical correctness
- Durability policy is defined as avoiding data loss and is configurable based on trade-offs between durability and availability
- Leader election has three stages: revocation, choosing a new leader, and propagation
- Planned and unplanned leader elections have different revocation processes
Vitess was able to handle millions of queries per second for reads and writes while respecting the durability policy chosen by the user. In a planned leader election, the current leader is asked to step down before a new leader is chosen, while in an unplanned leader election, a sufficient number of followers must be reached to revoke the leader. The system prioritizes performance over theoretical correctness, but still ensures that completed requests are propagated to all replicas to avoid data loss.