A discovery service is probably the most important support function required to make a landscape of cooperating microservices production-ready. As we already described in Chapter 1, Introduction to Microservices, in the Service discovery section, a discovery service can be used to keep track of existing microservices and their instances. The first discovery service that Spring Cloud supported was Netflix Eureka.
We will use this in Chapter 9, Adding Service Discovery Using Netflix Eureka and Ribbon, along with a load balancer and the new Spring Cloud load balancer.
We will see how easy it is to register microservices with Netflix Eureka when using Spring Cloud, and as a client sends HTTP requests such as a call to a RESTful API to one of the instances registered in Netflix Eureka. We will...