Health checks with readiness + liveness

7819
0

One /health endpoint is ambiguous: is the process alive, or is it actually ready to serve traffic? I split them. Liveness answers ‘should the orchestrator restart me?’ and is usually just ‘the event loop is alive’. Readiness answers ‘can I accept traffic?’ and checks dependencies like DB/Redis. I also flip readiness to false immediately when shutdown begins so the load balancer drains connections before we start force-closing sockets. When these endpoints are consistent across services, infrastructure becomes easier to automate. The goal is fewer noisy incidents during rolling deploys and transient dependency failures—not building a perfect health oracle.