Service discovery
The service registry has details of the services available. But in order to find out where the required service is and which services to connect, we need to have service discovery.
When the pricing service wants to communicate with the demand service, it needs to know the network location of the demand service. In the case of traditional architecture, this is a fixed physical address but in the microservices world, this is a dynamic address that is assigned and updated dynamically.
The pricing service (client) will have to locate the demand service in the service registry and determine the location and then load balance the request o the available demand service. The demand service, in turn, will respond to the request of ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access