Learning ZooKeeper with Curator: Comprehensive Examples and Recipes
This guide offers a complete collection of practical examples that demonstrate Curator's usage for Apache ZooKeeper, covering leader election, distributed locks, barriers, counters, caches, queues, and transaction handling, with each chapter independent and source code available on GitHub.
This article provides a comprehensive set of examples demonstrating how to use Apache ZooKeeper through the Curator framework, covering core recipes such as leader election, distributed locks, barriers, counters, caches, queues, and transaction handling. Each section is independent, allowing readers to select topics of interest, and all source code can be downloaded from GitHub.
Leader Election
Leader Latch
Leader Election
Distributed Locks
Reentrant Lock (Shared Reentrant Lock)
Non‑Reentrant Lock (Shared Lock)
Reentrant Read‑Write Lock (Shared Reentrant Read Write Lock)
Semaphore (Shared Semaphore)
Multi‑Lock Object (Multi Shared Lock)
Barriers
Barrier
Double Barrier
Counters
Shared Counter
Distributed Atomic Long
Caches
Path Cache
Node Cache
Tree Cache
Ephemeral Nodes
Queues
Distributed Queue
Distributed Id Queue
Distributed Priority Queue
Distributed Delay Queue
Simple Distributed Queue
Curator Framework Applications
Framework Introduction
Operational Methods
Transactions
Curator Extension Libraries
(Click the original article to open links to each chapter.)
Qunar Tech Salon
Qunar Tech Salon is a learning and exchange platform for Qunar engineers and industry peers. We share cutting-edge technology trends and topics, providing a free platform for mid-to-senior technical professionals to exchange and learn.
How this landed with the community
Was this worth your time?
0 Comments
Thoughtful readers leave field notes, pushback, and hard-won operational detail here.