Health Checks ​
Expose liveness and readiness so orchestration platforms can manage your services safely.
Built-in Checks ​
Quarkus provides default endpoints that report service health and readiness.
Common endpoints:
/q/health(aggregate)/q/health/live(liveness)/q/health/ready(readiness)
Pipeline Startup Checks ​
The orchestrator performs startup health checks for dependent services before running a pipeline. These are controlled by pipeline.health.startup-timeout and will fail startup if required services are unhealthy.
Custom Checks ​
Add checks for dependencies such as databases or external APIs.
java
@Readiness
@ApplicationScoped
public class PaymentProviderHealthCheck implements HealthCheck {
@Inject
PaymentProviderClient client;
@Override
public HealthCheckResponse call() {
try {
client.ping();
return HealthCheckResponse.up("payment-provider");
} catch (Exception error) {
return HealthCheckResponse.down("payment-provider");
}
}
}Design Notes ​
- Keep checks fast.
- Fail readiness when critical dependencies are down.
- Use graceful degradation when possible.
- Keep startup checks aligned with pipeline dependencies.