Microservices need interprocess communication so that services can communicate with each other. Spring Cloud uses Netflix Ribbon, a client-side load balancer that plays this critical role and can handle both HTTP and TCP. Ribbon is cloud-enabled and provides built-in failure resiliency. Ribbon also allows you to use multiple and pluggable load balancing rules. It integrates clients with load balancers.
In the last chapter, we added the Eureka server. Ribbon is integrated with the Eureka server in Spring Cloud by default. This integration provides the following features:
- You don't need to hardcode remote server URLs for discovery when the Eureka server is used. This is a prominent advantage, although you can still ...