With many services & replicas, we need a way for them to talk
The most common approach is to register a service in a registry
All services communicate with this registry
They get the addresses of the relevant services
STATE
Consul, ZK, etcd cluster
svc A
svc B
"HEY, I SERVE SERVICE B AT 10.0.55.229:8080". CALL ME! 😍"
I need some data from SVC B!
SVC B just called me, she's at 10.0.55.229:8080!
u up?
By Corey Brooks