What is a service registry, and how does registration and health-based deregistration work?
Last updated
A service registry is a live database of available instances and their network locations, populated by self-registration or a third-party registrar.
Health is tracked via heartbeats (lease renewals) or active probes of a
/healthendpoint.Instances deregister on graceful shutdown, or are removed when their lease expires, so traffic only reaches healthy endpoints (e.g.
Consul,Eureka,etcd).
- https://danimai.medium.com/microservices-patterns-architecture-and-implementation-c9acb50ed62b
- https://medium.com/@jusuftopic/service-registry-discovery-f18b08263e34
- https://dev.to/gokul_gk/lets-talk-about-service-discovery-service-registry-and-service-mesh-1ebi
- https://www.freecodecamp.org/news/design-patterns-for-distributed-systems/
- https://www.geeksforgeeks.org/java/client-side-service-discovery-in-microservices/
- https://www.geeksforgeeks.org/java/server-side-service-discovery-in-microservices/
- https://medium.com/@codingground334/service-registry-and-service-discovery-in-spring-boot-microservices-755ff8db0555