Zookeeper
etcd is used by kubernetes for the same purpose etcd和Zookeeper孰优孰劣?
Handle Request
Snapshot decided by how big log count and log size.
Data structure
This is where the data is stored.
Single thread block write?
Network
ZooKeeper (三)源码剖析: 服务端网络连接层 NIO
NIO Mechanism: NIOServerCnxnFactory.java
Watch node
The actual implementation is at ZKDatabase with the help of the DataTree
Election
ZAB
Leader -> request -> get ack -> send commit -> done
CommitRequest (under quorum)
FinalRequest