Our order-service has to communicate with all other microservices from the example to perform the required operations. So, we need to define three different Ribbon clients with network addresses set using the ribbon.listOfServers property. The second important thing in the example is to disable discovery services in Eureka, which are enabled by default. Here are all the defined properties for order-service inside its application.yml file:
server: port: 8090account-service: ribbon: eureka: enabled: false listOfServers: localhost:8091customer-service: ribbon: eureka: enabled: false listOfServers: localhost:8092product-service: ribbon: eureka: enabled: false listOfServers: localhost:8093
We should include ...