Courses / Node.js
21. Health-check and readiness endpoints
Implement lightweight endpoints that report application liveness and readiness for orchestration systems.
JavaScript
Health-check and readiness endpoints
Small HTTP endpoints that tell orchestrators whether your app is alive and ready to receive traffic.
"I need Kubernetes to know when to stop sending traffic to my service during startup or when it's down."
Liveness and readiness endpoints are minimal HTTP handlers that return a short success response when an application is running (liveness) and fully initialized/dependent-resources-available (readiness).
"I need Kubernetes to know when to stop sending traffic to my service during startup or when it's down."
Liveness and readiness endpoints are minimal HTTP handlers that return a short success response when an application is running (liveness) and fully initialized/dependent-resources-available (readiness).