In this chapter, we will learn how to use Netflix Eureka as a discovery server for microservices based on Spring Boot. To allow our microservices to communicate with Netflix Eureka, we will use the Spring Cloud module for Netflix Eureka clients. Before we delve into the details, we will elaborate on why a discovery server is needed and why a DNS server isn't sufficient.
The following topics will be covered in this chapter:
- Introduction to service discovery
- The problem with DNS-based service discovery
- Challenges with service discovery
- Service discovery with Netflix Eureka in Spring Cloud
- Setting up a Netflix Eureka server
- Connecting microservices to a Netflix Eureka server
- Setting up configuration for use in the development process
- Trying out the discovery service