PraisonAIUI provides multiple health endpoints optimized for different use cases:
/health/live
/health/ready
/health
Fast endpoint to verify the server is running. Returns immediately with minimal processing.
Use for:
Response time: <500ms (typically <100ms)
Example:
Response:
Verifies the server is ready to handle requests. Performs parallel health checks on all features with timeout protection.
Query parameters:
?deep=false
Response time:
Response with deep checks:
Cached version of readiness check for dashboard polling. 30-second TTL to reduce load.
Response: Same as /health/ready but cached for 30 seconds
If you're upgrading from a version using only /health:
1. Update monitoring: Change health checks to use /health/live for liveness
2. Update readiness: Use /health/ready?deep=false for readiness probes
/health/ready?deep=false
3. Update dashboards: Point status indicators to /api/health (cached)
/api/health
4. Backward compatibility: The /health endpoint remains available but may be slow
| Endpoint | Cold Start | Warm (p50) | Warm (p95) | Use Case |
|----------|------------|------------|------------|----------|
| /health/live | <100ms | <20ms | <50ms | Liveness probes |
| /health/ready?deep=false | <200ms | <50ms | <100ms | Basic readiness |
| /health/ready | <1s | <500ms | <800ms | Full diagnostics |
| /api/health (cached) | <1s* | <20ms | <50ms | Dashboard polling |
*First request only, then cached for 30s
If you're seeing slow responses on the legacy /health endpoint:
Features that timeout in /health/ready will show:
This indicates the feature took longer than 500ms to respond. The server is still operational, but that specific feature may be experiencing issues.
Under high load, use /health/live exclusively for monitoring. It has minimal overhead and won't impact performance.