Readiness check
GET/readyz
Reports whether this instance should receive traffic. Returns 200 {"status":"ready"} only while serving AND Postgres answers a ping AND a Kafka broker answers a metadata request (ADR-0038; topics are never required and the verdict is cached for 3 s). Returns 503 {"status":"not_ready"} once graceful shutdown has begun (ADR-0022): readiness is flipped first so a Kubernetes readinessProbe stops routing new requests during the drain window, while the liveness probe (/healthz) stays green. Returns 503 problem+json (dependency-unavailable) naming postgres and/or kafka while a dependency is unreachable.
Responses
- 200
- 503
Instance is ready to receive traffic.
Instance is draining for shutdown (not_ready) or a runtime dependency (Postgres, Kafka) is unavailable (dependency-unavailable); it must not receive new traffic.