Service registry
A database with the network addresses of each service's instances.
Example
Consul stores that payments is at 10.0.0.5, 10.0.0.6 and 10.0.0.7.
Test yourself: Service registry
Service discovery
In server-side discovery, the client sends the request to a ___.
The client knows 1 single address; the load balancer checks the registry and forwards to one of the 10 instances. The client takes 1 step instead of 2.
Service discovery
Which 2 things must a service registry meet?
If it goes down, the 50 services stop finding each other; if it's stale, they call dead instances.
Service discovery
With self-registration, each instance sends ___ to say it's still alive.
If it sends 1 every 10 seconds and they stop for 30, the registry treats it as dead and stops sending it requests.
0/3
â–¶ Play