https://www.bilibili.com/video/BV1LL411y7Wo?p=17

image.png

注册中心一般是通过集群的方式来对外服务,比如 ZooKeeper 集群

ZoKeeper 核心算法是 Zab,实现的是 CP 一致性

在使用 ZooKeeper 获取服务列表时

如果 ZooKeeper 正在选主或者 ZooKeeper 集群中半数以上机器不可用时,那么将无法获得数据

image.png

image.png