Distributed Systems · Agreeing and coordinating
Service discovery
Instances start, move and die all day, so callers cannot hard-code addresses. Service discovery keeps a live list of healthy instances and hands it to callers by API, DNS or a proxy.
- Time20 min
- LevelDeveloper
- Pictures11 diagrams
- Check6 questions







Orders pod calls
Cluster IP the request heads for a virtual address that no machine owns.
Payments pod receives the call; pods that were not ready were never candidates.
Instance list addresses kept current by registration or EndpointSlices.
Health probes and TTLs remove instances that stop answering.
Instances come and go with deploys, scaling and failures.