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 ...