Add a /health Readiness Check
Tell orchestrators when your service is ready to serve.
How Does the Cluster Know?
Orchestrators like Kubernetes need a way to ask your service: are you alive, and are you ready to take traffic? A health endpoint answers that. 🩺
Liveness vs Readiness
Liveness asks if the process is running. Readiness asks if it can actually serve requests yet. They are two different questions.
All lessons in this course
- Your First /predict Endpoint
- Validate Requests with Pydantic
- Load the Model Once at Startup
- Add a /health Readiness Check