Description
Implement a health module that exposes readiness and liveness endpoints, along with basic observability hooks. In a production API, especially one with on-chain integrations, knowing the service is healthy and its dependencies are reachable is critical. This module ensures the API is production-operable from day one.
Acceptance Criteria
Description
Implement a
healthmodule that exposes readiness and liveness endpoints, along with basic observability hooks. In a production API, especially one with on-chain integrations, knowing the service is healthy and its dependencies are reachable is critical. This module ensures the API is production-operable from day one.Acceptance Criteria
healthmodule is scaffolded atsrc/health/GET /health/livereturns 200 if the process is runningGET /health/readychecks DB connectivity and returns 200 or 503 accordingly