Express-service-discovery
Express Plugin for OpenTable service discovery.
Takes a discovery client, exposes routes for announce, unannounce (so that you can control the server externally). Is compatible with https://github.com/opentable/grunt-ot-discovery.
Currently depends on some closed-source modules which we are in the process of open-sourcing.
Usage:
var express = ;var OTDiscovery = ; var discoveryClient = 'hostname.opentable.com'; discoveryClient;
Routes:
GET /discovery/announce - announce this server to the registry
GET /discovery/unannounce - unannounce this server
GET /discovery/lease - show lease info
GET /discovery/lastUpdated - show last time the client received an update from the remote discovery service (useful for monitoring)