Service Discovery

Service Discovery

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

Service Discovery

STATE

Consul, ZK, etcd cluster

svc A

svc B

"HEY, I SERVE SERVICE B  AT 10.0.55.229:8080". CALL ME! 😍"

Service Discovery

STATE

svc A

svc B

I need some data from SVC B!

SVC B just called me, she's at 10.0.55.229:8080!

SVC B just called me, she's at 10.0.55.229:8080!

In Real Life?

STATE

svc A

svc B

u up?

Service Discovery

STATE

Consul, ZK, etcd cluster

svc A

svc B

Service Discovery

By Corey Brooks

Service Discovery

  • 555