February 2019
Intermediate to advanced
442 pages
11h 46m
English
We are going to configure Ribbon while making calls from inventory-service to catalog-service, so if you have configured Eureka server, just remove it for the time being while we learn how Ribbon works without Eureka. The very first thing is to add the Ribbon starter dependency. Since we want to handle the call initiated from inventory-service, and add the dependency in inventory-service as follows:
<dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-netflix-ribbon</artifactId></dependency>
In the previous section, we configured the Feign client to handle REST calls. We will use Ribbon along with the Feign client. Open the proxy class that we created in the previous ...