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. This approach would work until we to add or remove service instances dynamically, known as service discovery – letting microservices find each other in a dynamic environment. Setting up service discovery is the first step for writing and preparing scalable microservices in a real production 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 use the service discovery solutions. Now, let’s move on to the overview of the service discovery concepts.