liveBook · Manning

Server-side discovery

As explained in Microservices Patterns, Second Edition

Server-side discovery is a service discovery pattern in which a client sends a request to a router that discovers and selects a service instance.

Server-side discovery routes a client’s request through a router that queries the service registry and selects an available service instance. The deployment platform can also register instances and load-balance requests, keeping discovery code out of clients and services. section 8.2.5

Order Service

A client requests the Order Service by DNS name. The name resolves to a virtual IP address, and the platform routes requests across three service instances. section 8.2.5

Figure 8.11 The platform is responsible for service registration, discovery, and request routing. Service instances are registered with the service registry by the registrar. Each service has a network location, a DNS name/virtual IP address. A client makes a request to the service’s network location. The router queries the service registry and load balances requests across the available service instances.
PlatformProvidedServiceDiscovery

Follow how the platform registers service instances, resolves a client request, and routes it across available instances. section 8.2.5

How Microservices Patterns, Second Edition covers it

How deep it goes
Explains the registry lookup and load-balancing flow, while noting that implementation depends on deployment technology.
Examples
Uses an Order Service DNS name resolving to a virtual IP that routes across three instances.
What you can do after
Understand how a deployment platform can handle service registration, discovery, and request routing without application-level discovery code.
How it connects
Combines service registry lookup with third-party registration and load balancing.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Microservices Patterns, Second Edition. The section links point to the parts of the book it draws on.