使用
ZooKeeper · 3 notes
- Distributed Locks with ZooKeeperhistorical
Apache Curator examples demonstrate ZooKeeper distributed locks, including locking, unlocking, and behavior across lock instances in one thread.
- ZooKeeper as a Service Registryhistorical
A ZooKeeper registry can record services with ephemeral sequential nodes and watch changes to a parent's children to detect instance arrivals and departures.
- Leader Election with ZooKeeperhistorical
ZooKeeper can use ephemeral sequential nodes for leader election. These notes begin with connecting and creating nodes and examine predecessor watching.