Book Image

Apache ZooKeeper Essentials

By : Saurav Haloi
Book Image

Apache ZooKeeper Essentials

By: Saurav Haloi

Overview of this book

Table of Contents (14 chapters)
Apache ZooKeeper Essentials
About the Author
About the Reviewers
Performing Common Distributed System Tasks

Chapter 3. Programming with Apache ZooKeeper

In the previous chapter, we learned about the architecture and internals of ZooKeeper, which gave us an insight into how things work in a ZooKeeper service. So far, from the previous two chapters, we are now well versed with the ZooKeeper data model and the operations supported by it, and we know how to use the ZooKeeper shell (zkCli) to perform the basic ZooKeeper operations. We also read about the API model in ZooKeeper.

In this chapter, we are going to learn how to write client applications with the ZooKeeper client APIs.

Overall, this chapter has been organized into the following topics:

  • Programming using the ZooKeeper Java APIs

  • Writing ZooKeeper applications with the C library

  • Kazoo – a high-level Python library for ZooKeeper

It is assumed that you are familiar with high-level programming languages to follow through the sample code examples. By the end of this chapter, you will feel confident enough to start writing applications using the ZooKeeper...