Skip to content

6.3. Service Discovery

In a dynamic environment where instances start, stop, and move constantly, hard-coded addresses are impossible — a service must discover where its dependencies currently live. The core choice is where that lookup happens: client-side discovery puts the logic (and the load-balancing decision) in the caller, server-side hides it behind a load balancer. This chapter covers both models, the registration approaches that keep the registry accurate, and the health-check pattern that ensures discovery never returns a dead instance.