Service Discovery
In the previous chapter, we created our example microservices and let them communicate with each other, using static local addresses hardcoded into each service. While a static-based approach was trivial to implement, it lacked some useful features, such as the ability to add or remove service instances dynamically without updating the service code. In this chapter, we will review a more advanced approach that would allow us to easily scale our services and let them locate each other in a dynamic environment.
In this chapter, we are going to cover the following topics:
- Service discovery overview
- Service discovery solutions
- Adopting service discovery
We will use the microservices we created in the previous chapter to illustrate how to implement service discovery. Now, let’s move on to an overview of the service discovery concepts.