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
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.
Basically we are comparing RAFT protocol/algorithm to Paxos protocol/algorithm. Basically Paxos is a single decree consensus protocol while RAFT is a replicated state machine. In Raft voting is taken on moving the replicated state machine from state A to state B if accepted the entire cluster will be at state B, otherwise the entire cluster would be at state A. On the hand in Paxos it's about winning a single decree not the entire state.
RAFT is a much cleaner protocol, easier to understand, easier to implement correctly. Paxos it's more complex to implement correctly because if a decree is win it does not mean I can pin point the winning state.
© 2022 - 2025 — McMap. All rights reserved.