ZK的服务端之间采用的是ZAB(Multi-Paxos)其最终一致性毋庸置疑,我们现在来看看其客户端的一致性视图。
- Every ZooKeeper server services clients. Clients connect to exactly one server to submit irequests. Read requests are serviced from the local replica of each server database.
- Requests that change the state of the service, write requests, are processed by an agreement protocol.
- all write requests from clients are forwarded to a single server, called the leader.
- The rest of the ZooKeeper servers, called followers, receive message proposals from the leader and agree upon message delivery.
- The clients view of the system is guaranteed to be up-to-date within a certain time bound.
欢迎来到这里!
我们正在构建一个小众社区,大家在这里相互信任,以平等 • 自由 • 奔放的价值观进行分享交流。最终,希望大家能够找到与自己志同道合的伙伴,共同成长。
注册 关于