Closed Nava2 closed 8 years ago
Also, there should be a route PUT /heartbeat
that is used for a running service to update that it's still running. This gives better fault detection.
This is not worth doing yet, please focus on your paper presentation.
The client registrar needs a heartbeat to check on its registered services.
Suggested implementation: On each URL, every X seconds, do a
HEAD /
request and if a non-network error or success is returned, then it's available.