Service discovery and registry are key parts of a microservice-based application, because locations of service instances are always changing. We can implement service discovery using two approaches: client-side service discovery and server-side service discovery. In this chapter, we used the Eureka Discovery server and registered a client application using Spring Boot, Spring Cloud, and Netflix Eureka.
In Chapter 6, External API Gateway, we'll discuss how to use an API gateway to provide the common interface of communication. We'll also take a look at an approach for implementing API gateway patterns and their use cases.