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)
Custom Checks
Add checks for dependencies such as databases or external APIs.
java
@Readiness
@ApplicationScoped
public class PaymentProviderHealthCheck implements HealthCheck {
@Override
public HealthCheckResponse call() {
return HealthCheckResponse.up("payment-provider");
}
}Design Notes
- Keep checks fast
- Fail readiness when critical dependencies are down
- Use graceful degradation when possible