内容摘自微信公众号,程序员小灰.推荐-ing Zookeeper的数据模型 Zookeeper的数据模型是什么样子呢?它很像数据结构当中的树,也很像文件系统的目录. 树是由节点所组成,Zookeeper的数据存储也同样是基于节点,这种节点叫做Znode. 但是,不同于树的节点,Znode的引用方式是路径引用,类似于文件路径: / 动物 / 仓鼠 / 植物 / 荷花 这样的层级结构,让每一个Znode节点拥有唯一的路径,就像命名空间一样对不同信息作出清晰的隔离. 关于Znode Znode包含了数