Skip to content
StackDecode
System Design
11. Microservices ArchitectureAnimated

Service Registry

The database of live service instances.

The idea

Consul, etcd and Eureka hold names, addresses and health.

Watch it work

Press play, pause, or step through. Some animations have settings you can change.

Service BRegistryService Aregister B at 10.0.0.7:8080
  • current message
  • earlier
  • failure or attack

On start, B tells the registry where it lives.

step:
1/6
from:
Service B
to:
Registry
1/6

Time runs downward. Solid arrows are requests, dashed arrows are replies.

Step by step

  1. 1Services register on start
  2. 2Heartbeats keep entries alive
  3. 3Dead entries expire
  4. 4Clients query

Where it is used

Discovery.

Watch out for

The registry must be highly available.

Related