Issue #40 — feat: Advanced Health Check Endpoint
Description
The basic /health endpoint is insufficient for Kubernetes readiness probes, as it returns success even if the database is down. An advanced health check validates downstream dependencies, preventing traffic from routing to broken instances.
Requirements & Context
Architectural Goal: Enable accurate container orchestration readiness probes.
Implementation Expectations: Update the /health endpoint to query the Prisma database connection and the Stellar RPC node. Return an HTTP 503 if any critical dependency is offline.
Acceptance Criteria
Out of Scope
- Implementing complex retries for the health check itself.
Suggested Execution
git checkout -b feat/advanced-health-check
Suggested Commit Message
feat: implement advanced health check verifying database and rpc connectivity
Testing Notes
- Turn off the local PostgreSQL database and verify the endpoint responds with a 503 HTTP code.
References
Kubernetes Liveness and Readiness Probe best practices.
Definition of Done
Issue #40 — feat: Advanced Health Check Endpoint
Description
The basic
/healthendpoint is insufficient for Kubernetes readiness probes, as it returns success even if the database is down. An advanced health check validates downstream dependencies, preventing traffic from routing to broken instances.Requirements & Context
Architectural Goal: Enable accurate container orchestration readiness probes.
Implementation Expectations: Update the
/healthendpoint to query the Prisma database connection and the Stellar RPC node. Return an HTTP 503 if any critical dependency is offline.Acceptance Criteria
Out of Scope
Suggested Execution
Suggested Commit Message
Testing Notes
References
Kubernetes Liveness and Readiness Probe best practices.
Definition of Done