1.0.0 • Published 4 years ago
pkg_node_discovery-client v1.0.0
Discovery Service Client
Api gate way will be the client that constantly pull the latest lookup from the Discovery Service
Design
Data Flow
- Register: Register with discovery service with url/register every
- Pull: pull the latest lookup with url/tellme Note: although the ip address may change but the service name will remain constant
API Doc
Register you own location
POST ec2-3-250-106-30.eu-west-1.compute.amazonaws.com/register
Pull latest lookup
GET ec2-3-250-106-30.eu-west-1.compute.amazonaws.com/tellme
Response contract
ok response
{
ok: true,
data: []
}
error response
{
ok: false,
error: []
}
Maintainers
X, D
1.0.0
4 years ago