Service Discovery
ELI5 — The Vibe Check
Service discovery is how microservices find each other without hardcoding addresses. When Service A needs to talk to Service B, it asks a registry 'where is Service B right now?' and gets a current address. It's like a phone book that updates itself when services move or scale.
Real Talk
Service discovery is the automatic detection and registration of services in a distributed system. Services register themselves with a discovery server (Consul, etcd, Eureka) and query it to locate other services. It enables dynamic scaling, failover, and load balancing without hardcoded hostnames. Supports both client-side and server-side discovery patterns.
When You'll Hear This
"Service discovery automatically routes traffic to the new instance after we scaled up." / "Without service discovery, every config change requires redeploying half the services."
Related Terms
Consul
Consul is HashiCorp's tool for service discovery, health checking, and configuration.
DNS (Domain Name System)
DNS is the internet's phonebook. You type 'google.
Load Balancer
A load balancer is like a traffic cop for servers.
Microservice
Microservices is an architecture where instead of one big app, you have many tiny apps that each do one thing.