Zookeeper

Zookeeper

ZooKeeper源码分析与实战

etcd is used by kubernetes for the same purpose etcd和Zookeeper孰优孰劣?

Handle Request

Data structure

ZooKeeper (四) 源码剖析:数据模型和存储

Network

ZooKeeper (三)源码剖析: 服务端网络连接层 NIO

NIO Mechanism: NIOServerCnxnFactory.java

Watch node

The actual implementation is at ZKDatabase with the help of the DataTree

Election

ZooKeeper(二) 源码剖析: 群首选举

ZAB

Zookeeper (五) 源码剖析: Zab 协议

Leader -> request -> get ack -> send commit -> done