Skip to content
jaredhanson edited this page Dec 5, 2014 · 32 revisions

The Registry interface defines an API for announcing and resolving services in a service registry. A service registry is a key primitive in distributed systems, where multiple applications coordinate to accomplish an objective. The registry allows applications can dynamically look up the locations of needed services, and those services can be scaled out and in on demand, which more instances started when load increases and stopped when load subsides.

API

announce(domain, service, location, cb)
{string} domain - Domain in which to announce service.
{string} service - Type of service being announced.
{string} location - Location of service being announced.

Announces availability of a service within a domain at a given location.

registry.announce('api.example.com', 'oauth2-token', 'http://127.0.0.1:8080/token', function() { ... });
Clone this wiki locally