What is `ZAB` (ZooKeeper Atomic Broadcast) and how does it work?
ZAB is a protocol to make sure all messages are sent to all servers and stored correctly. It doesn't focus on consensus or consistency.
That's not correct. ZAB's main purpose is to provide consensus and ensure consistency in distributed systems, not just message delivery.
Could you explain how ZAB ensures consistency across all servers during a leader election?