Understanding the discovery client

Now, we will learn about service discovery and how it works in complex and dynamic environments. The basic idea of service discovery is to maintain the services repository and provide service addresses for the callers.

It requires some complex tasks to achieve this goal. There are two main behaviors to understand:

  • The first one is the register. As we know, the service discovery needs to store the services information, such as the address and name, and then during the service bootstrap, it needs to send the information to the service registry. 
  • In the the second operation, the service discovery clients need to query the service registry, asking for the desired service name, for instance. Then the service ...

Get Spring 5.0 By Example now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.