Building distributed applications is difficult enough without having to coordinate the actions that make them work. This practical guide shows how Apache ZooKeeper helps you manage distributed systems, so you can focus mainly on application logic. Even with ZooKeeper, implementing coordination tasks is not trivial, but this book provides good practices to give you a head start, and points out caveats that developers and administrators alike need to watch for along the way.
In three separate sections, ZooKeeper contributors Flavio Junqueira and Benjamin Reed introduce the principles of distributed systems, provide ZooKeeper programming techniques, and include the information you need to administer this service.
Learn how ZooKeeper solves common coordination tasks
Explore the ZooKeeper API’s Java and C implementations and how they differ
Use methods to track and react to ZooKeeper state changes
Handle failures of the network, application processes, and ZooKeeper itself
Learn about ZooKeeper’s trickier aspects dealing with concurrency, ordering, and configuration
Use the Curator high-level interface for connection management
Become familiar with ZooKeeper internals and administration tools