May 2017
Beginner to intermediate
596 pages
15h 2m
English
Apache ZooKeeper is a popular open source Distributed Coordination service. It can work as a centralized service capable of doing many operations such as configuration management and other common coordination services required for a distributed systems.
ZooKeeper works with a group of servers (an odd number ideally), commonly known as an ensemble. When the ensemble is started, one of the servers is elected as leader and the others automatically become followers. The data residing in each server (so-called state) is broadcasted, because of which each server has an up-to-date state with it. After leader election, all the write requests are routed to the leader and all the followers get the data from the chosen leader server. ...