Interview questions
Question 158 of 254
FreeWhat is service discovery, and why do microservices need it?
Microservices & Spring Cloud
In a dynamic environment where service instances scale up/down and get rescheduled to different hosts/IPs (as in containerized deployments), hardcoding a downstream service's address is unworkable. Service discovery (e.g., via Netflix Eureka, Consul, or Kubernetes' own built-in DNS-based discovery) lets services register themselves with a central registry on startup and lets callers look up currently-healthy instances by logical service name instead of a fixed address.
Intermediate5 min

