简体   繁体   中英

What is the difference between zookeeper and raft?

this is really dumb but what does zookeeper do that raft doesn't - not talking about zab but zookeeper itself.

I get raft does leader election etc. w servers but what's the point of zookeeper? is there an analogy anyone has

Raft is a consensus algorithm/protocol, Apache Zookeeper is a product, a centralized service for maintaining configuration information, naming, providing distributed synchronization, and providing group services.

Zookeeper uses Zab as the broadcast protocol to propagate state updates between nodes in the ensemble.

So, if that makes sense, you should compare Raft against Zab or Apache Zookeeper against some other similar system like etcd .

Raft is a consensus algorithm, Zookeeper is a Key Value Store driven by the atomic broadcast protocol ZAB. So Zookeeper enables you to asynchronously create ZNODEs like /a, /a/b, without having to block-wait operations to complete. This style is refered to as pipelining, and is enabled by the fact ZAB provides async linearizability guarantee.

Found a very good URL explaining RAFT [link] .

And about Zookeeper, it is mainly used to store configurations which are commonly used by various application.

Benefit of using it, consider a project which is distributed in nature and it uses various common configurations. So to maintain consistency between these distributed systems , you store these configurations in central zookeeper , and all application get these configurations through zookeeper.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM