Zookeeper as a service registry

I want to use ZooKeeper as a registry that replicates identical services that can register, and clients can discover the available service URLs to call them. As a ZooKeeper starter, I need some basic Java code to register and discover services in ZooKeeper.

+5
source share
1 answer

Check out Discovery Curator (part of Apache Curator ), a Zookeeper-based service registry written in Java.

In SOA / distributed systems, services need to find each other. those. the web service may need to find a caching service, etc. DNS can be used for this, but it is nowhere flexible enough for services that are constantly changing. A service discovery system provides a mechanism for:

  • Registration Services
  • Search for a single instance of a specific service
  • Notification when service change instances
+11
source

All Articles