O'Reilly logo

Practical Microservices by Umesh Ram Sharma

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Discovering other services

Other than registering a service discovery, the service has one more goal: providing meta-data about other services in the system. At any point, if any service wants to communicate with another service, it should be able to locate that service from this discovery service. The following are the two patterns of communication between services asking for any other service location and the discovery service:

  • Client-side discovery
  • Server-side discovery

In the client-side discovery pattern, each microservice will communicate with the discovery service directly. In this pattern, the service gets the network location of all other services and their instance location from the discovery service before making the request ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required