Operation | HTTP Action | Return Value |
---|---|---|
Register new Instance | POST /apps/appId | 200 OK |
De-register application instance | DELETE /apps/appId/instanceId | 200 OK |
Send application instance heartbeat | PUT /apps/appId/instanceId | 200 OK |
Query for all appId instances | GET /apps/appId | 200 OK |
Query for a specific instanceId | GET /apps/appId/instanceId | 200 OK |
Dump all instances | GET /instances | 200 OK |
Send a POST request to /apps/appId with the following object in json format:
{
"id": "user"
"serviceType": "service"
"ip": "192_144.3.5"
"port": 87
"healthCheckUrl": "/hc"
}
The easiest way to run discoverus is to use the docker image provided:
docker build . -t discoverus
docker run -d -p 2000:2000 discoverus
The default internal port is 2000, but we can reroute it when using the docker container with the -p option.
- Website that displays available services and instances
- De-register instances
- Automatically remove services in 30 sec / renew with heartbeat
- Implement extensive logging
- Rewrite PostRegister function