Registration Center: Service Registration and Enquiry (discovery)
Service provider: The provider of the service, the party providing the service.
Service consumer: The consumer of the service, the party using the service.
We do not have a registration center, and service providers and service consumers can also call through the resttemplate in spring. Use the method to search the Internet.
If through the registry, register with the discovery service.
Then the address of the corresponding service provider is stored in the registry, and if the service consumer requests the service provider from the registry, the service consumer obtains the address of the provider and caches it locally.
In this case, even if the registry is down, consumers and providers can call each other.
The high availability of the registry is to provide stable registration and discovery capabilities, and if one of the servers in the registry cluster is down, other servers can continue to provide service registration (update) and lookup capabilities.
Relationship between Spring Cloud Eureka Registry Service consumer service providers and high availability