Skip to content

docs: document /health and /health/ready probes (closes #16)#45

Merged
CryptoJones merged 1 commit into
mainfrom
docs/health-readiness-16
Jun 20, 2026
Merged

docs: document /health and /health/ready probes (closes #16)#45
CryptoJones merged 1 commit into
mainfrom
docs/health-readiness-16

Conversation

@CryptoJones

Copy link
Copy Markdown
Owner

Summary

Closes #16. The readiness endpoint it asks for already shipped/health/ready opens Postgres, runs SELECT 1, returns 200 {"status":"ready"} when reachable and 503 {"status":"unavailable"} otherwise, kept deliberately separate from the cheap static /health liveness probe (so a DB blip drains traffic instead of restart-looping). It already has test coverage (HealthEndpointTests exercises the 503 failure path).

The only unmet acceptance criterion was documentation. This PR adds a Health & probes subsection to the README API reference explaining the liveness-vs-readiness split and where to point orchestrator probes vs. load-balancer / deploy gates, and updates the intro line to note both probes are open.

Docs-only change; no code touched.

🤖 Generated with Claude Code

The readiness endpoint already shipped (SELECT 1 against Postgres, 503 on
failure, separate from the static liveness probe). The only unmet acceptance
criterion in #16 was documentation: add a Health & probes subsection to the
README API reference explaining the liveness-vs-readiness split and where to
point orchestrator probes vs. load-balancer / deploy gates.

Closes #16

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@CryptoJones CryptoJones merged commit 8c600b3 into main Jun 20, 2026
2 checks passed
@CryptoJones CryptoJones deleted the docs/health-readiness-16 branch June 20, 2026 08:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add database-backed readiness health endpoint

1 participant