ZooKeeper之service discovery
Zookeeper整体介绍
ZooKeeper is a centralized service for maintaining configuration information, naming, providing distributed synchronization, and providing group services.
Out of the Box Applications: Name Service, Configuration, Group Membership
Zookeeper食谱
http://zookeeper.apache.org/doc/current/recipes.html
Apache Curator
Apache Curator is a Java/JVM client library for Apache ZooKeeper
It includes a highlevel API framework and utilities to make using Apache ZooKeeper much easier and more reliable.
It also includes recipes for common use cases and extensions such as service discovery and a Java 8 asynchronous DSL.
使用示例:http://curator.apache.org/curator-examples/index.html
签名:删除冗余的代码最开心,找不到删除的代码最痛苦!