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.
- 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
- 1Services register on start
- 2Heartbeats keep entries alive
- 3Dead entries expire
- 4Clients query
Where it is used
Discovery.
Watch out for
The registry must be highly available.