Although it is acceptable to call microservice endpoints directly from the Eureka server, explicitly through its machine name and ports, Spring Cloud offers automatic service discovery which makes RESTful service execution free from hardcoding the service URL. When it comes to duplicate instances for backup and recovery purposes, this recipe will define the concept of client-side load balancing wherein an algorithm is used to determine the most viable and healthy instance to utilize in executing the endpoints.
Implementing the Eureka service discovery and client-side load balancing
Getting started
Create another Eureka instance that will contain a @Controller, which will consume RESTful services from the Eureka registry applying...