How does the concept of “service registry” work in a microservices
Short answer: rchitecture? service registry is a centralized directory of available services and their instances. It helps microservices locate and communicate with each other. How it works: Each microservice registers itself with the service registry when it starts, providing metadata like its IP address, port, and health status. Other microservices query… the… registry…… to discover and connect to the required service. Service…
Explain a bit more
registries also support health checks, ensuring that only healthy services re discoverable. Tools: Examples of service registries include Consul, Eureka, and Zookeeper.
Real-world example (ShopNest)
ShopNest splits Catalog, Cart, Order, and Payment into services so teams can deploy catalog changes without redeploying payments.
Say this in the interview
- Define — one clear sentence (the short answer above).
- Example — relate it to a project like ShopNest or your real work.
- Trade-off — when you would not use it.
Share this Q&A
Share preview image: https://www.toolliyo.com/images/toolliyo-logo.png