Readiness probe
GET/readyz
Returns 200 {"status":"ready"} while the process is accepting traffic, and 503 {"status":"not_ready"} once graceful shutdown has begun (ADR 0020 — readiness is flipped FIRST so a Kubernetes readinessProbe stops routing new requests during the drain window). Distinct from /healthz, which is liveness only and is never flipped by shutdown. Checks no downstream dependency.
Responses
- 200
- 503
Service is ready to receive traffic.
Not ready: either graceful shutdown has begun (a plain {"status":"not_ready"} JSON body), or a runtime dependency (Postgres, Kafka) is unreachable (an RFC 7807 application/problem+json body of type dependency-unavailable whose detail names the failing dependencies; the verdict is cached for a few seconds).