What is the difference between a liveness check and a readiness check, and why does an orchestrator need both?
Last updated
Liveness asks "is the process alive or wedged?" and a failure makes the orchestrator restart the container. Keep it cheap and independent of downstream services.
Readiness asks "can this instance serve traffic now?" and a failure removes it from load-balancer endpoints without restarting it. It may check dependencies or warm-up state.
Both are needed because restart and de-register are different remedies: a busy or warming-up pod should be pulled from routing, not killed.
- https://www.geeksforgeeks.org/system-design/top-microservices-interview-questions/
- https://www.geeksforgeeks.org/system-design/microservices-resilience-patterns/
- https://medium.com/@RichaShukla2111/saga-pattern-a-practical-guide-to-distributed-transactions-in-microservices-f4f0f27755f0
- https://dev.to/athulmr/making-rest-microservices-resilient-bulkhead-retry-circuit-breaker-in-practice-1mpl
- https://blog.bytebytego.com/p/6-more-microservices-interview-questions