In previous chapters, we discussed a variety of points about the microservice architecture, but this chapter is all about how to discover a service. In Chapter 4, Inter-Service Communication, we discussed how services communicate with each other and looked at different aspects of communication within a microservice architecture.
As you know, we require both the IP address and the port for any communication between services when using either the REST API or the Apache Thrift API. However, it is possible to change the IP address, so how can we ensure that service communication remains stable? In this chapter, we will explore the solution to this problem and discuss other issues related to service discovery.
After reading this chapter, you will be able to diagnose service discovery issues related to microservice REST APIs and the service client.
This...