Service discovery using Spring Cloud Netflix – Eureka
We've already seen how to do service discovery using HashiCorp Consul and integrate it with our application. This recipe will go over an alternative, and a very popular service discovery framework from Netflix-Eureka. Eureka was developed by Netflix to help solve the problem of service discovery, health checking, and load balancing for their RESTful services in AWS.
Unlike Consul, Eureka is solely focused on the task of service discovery, and does not provide many additional functionalities, such as key/value store service or event delivery. It is, however, very good at what it does and should be considered a viable candidate for a service discovery solution.
How to do it...
Before we get to the steps to add Eureka to our application, we need to get the Eureka service itself up and running. Thankfully, the Spring Cloud folks have been awesome enough to provide a sample project that makes creating an instance of Eureka server and running...