Skip to content

Service discovery: names, health and front doors

Compare DNS and registries, place endpoint selection, and reason about health checks, stale membership and gateway routing.

18 min7 steps

By the end you can
  • Compare DNS discovery with a dynamic service registry
  • Distinguish client-side from server-side endpoint selection
  • Reason about health-check detection and cached endpoint staleness
  • Explain the roles of reverse proxies and API gateways

A stable name hides changing endpoints

DNS

  • Query a stable service name
  • A/AAAA gives addresses
  • SRV adds port, priority, weight

Registry API

  • Query registered instances
  • Can expose metadata and health
  • Requires registry-aware integration

Discovery maps a logical service to candidate endpoints. DNS offers a common naming interface; a registry offers explicit membership and metadata. They can coexist: a registry may expose DNS. Neither interface makes returned endpoints permanently healthy.

Which comparison is accurate?

Answer this step to continue.