1.

What Are The Basics Of Zookeeper Api?

Answer»

Application interacting with ZooKeeper ensemble is referred as ZooKeeper Client or simply Client. Znode is the core component of ZooKeeper ensemble and ZooKeeper API provides a small SET of methods to manipulate all the details of znode with ZooKeeper ensemble. A client should follow the steps given below to have a clear and clean interaction with ZooKeeper ensemble.

  • Connect to the ZooKeeper ensemble. ZooKeeper ensemble ASSIGN a Session ID for the client.
  • Send heartbeats to the server PERIODICALLY. Otherwise, the ZooKeeper ensemble expires the Session ID and the client needs to reconnect.
  • GET / Set the znodes as long as a session ID is active.
  • Disconnect from the ZooKeeper ensemble, once all the TASKS are completed. If the client is inactive for a prolonged time, then the ZooKeeper ensemble will automatically disconnect the client.

Application interacting with ZooKeeper ensemble is referred as ZooKeeper Client or simply Client. Znode is the core component of ZooKeeper ensemble and ZooKeeper API provides a small set of methods to manipulate all the details of znode with ZooKeeper ensemble. A client should follow the steps given below to have a clear and clean interaction with ZooKeeper ensemble.



Discussion

No Comment Found