对zookeeper有兴趣的同学可以看看这个apache项目,zookeeper的client http://curator.apache.org/ 这里列举了通过zookeeper和curator可以实现很多case,这个可以重点看一下 http://curator.apache.org/curator-recipes/index.html