跟着实例学习ZooKeeper的用法: Curator扩展库
还记得Curator提供哪几个组件吗? 我们不妨回顾一下:
- Recipes
- Framework
- Utilities
- Client
- Errors
- Extensions
前面的例子其实前五个组件都涉及到了, 比如Utilities例子的TestServer, Client里的CuratorZookeeperClient, Errors里的ConnectionStateListener等。 还有最后一个组件我们还没有介绍,那就是Curator扩展组件。 阅读全文

(2 votes, average: 4.00 out of 5)
(3 votes, average: 4.67 out of 5)
可以利用ZooKeeper在集群的各个节点之间缓存数据。 每个节点都可以得到最新的缓存的数据。 Curator提供了三种类型的缓存方式:Path Cache,Node Cache 和Tree Cache。
