zookeeper's namespace
1、znode
Znodes maintain a stat structure that includes version numbers for data changes, ACL changes, and timestamps.( znode节点的数据结构)
The data stored at each znode in a namespace is read and written atomically.(读写的原子性)
ZooKeeper also has the notion of ephemeral nodes,These znodes exists as long as the session that created the znode is active.(znode 的 暂存节点)
ZooKeeper supports the concept of watches. Clients can set a watch on a znodes. (client 端对znode的观察)
znode 数据结构
zxid = Zookeeper Transaction Id
zxid的存在,对znode 的每次修改连接事务,都有一个唯一的zxid(从小到大递增),zxid的大小可以反映事务的先后顺序,
2、read and write
Read requests are serviced from the local replica of each server database. (读请求访问当前server节点的本地副本)
As part of the agreement protocol all write requests from clients are forwarded to a single server, called the leader.(写请求被agreement protocal 转向到leader进行处理)
3、zookeeper successful used
https://cwiki.apache.org/confluence/display/ZOOKEEPER/PoweredBy