Solution
Add a new component – a service discovery service – to the system landscape, which keeps track of currently available microservices and the IP addresses of its instances.
Solution requirements
Some solution requirements are as follows:
Automatically register/unregister microservices and their instances as they come and go.
The client must be able to make a request to a logical endpoint for the microservice. The request will be routed to one of the available microservice instances.
Requests to a microservice must be load-balanced over the available instances.
We must be able to detect instances that currently are unhealthy, so that requests will not be routed to them.