ZooKeeper Service Discovery

ZooKeeper service discovery gem.

You can use it to publish and discover well-known service URL's within your application infrastructure.

Service Publication by a Service Provider

require 'zoo-service-discovery'

ZooService::Publication.register_service('service_name', 'http://api.service.com/')

Service Lookup by a Service Consumer

require 'zoo-service-discovery'

base_service_url = ZooService::Discovery.get_service_url('service_name')

Specs

RSpecs were developed and ran on a Mac OS X machine. They require ZooKeeper to be installed locally (e.g. via Brew) and be available in the path.

More details on how the Zookeeper instances are started and torn down are in the zookeeper_runner.rb RSpec support file.