A service instance is a running deployment with a network location, such as an IP address and port. In cloud-based microservices, locations and the set of available instances change as services scale, fail, or upgrade, so clients cannot rely on hardcoded addresses. section 8.2.5
Service discovery locates available instances when a client invokes a service. A service registry tracks their network locations; the discovery mechanism updates it as instances start and stop, then uses it to find a destination for a request. section 8.2.5
Figure 8.10 The service registry keeps track of the service instances. Clients query the service registry to find network locations of available service instances.
The registry connects changing service instances with clients seeking an available network location. section 8.2.5
