ZooKeeper实现配置中心
- znode能存储数据
- watch能监听数据变化
ZooKeeper实现命名服务
ZooKeeper实现Master选举
ZooKeeper实现分布式队列
有界队列与无界队列?
ZooKeeper实现分布式锁
- 方式一
缺点:惊群效应
方式二:
原理:取号+最下号得+watch
ZooKeeper实现配置中心
ZooKeeper实现命名服务
ZooKeeper实现Master选举
ZooKeeper实现分布式队列
有界队列与无界队列?
ZooKeeper实现分布式锁
方式二:
原理:取号+最下号得+watch