Description
Build a comprehensive health check endpoint that reports the health of all system dependencies as a structured dependency graph, enabling rapid diagnosis of which subsystem is degraded.
Requirements and Context
- Observability: Health check must report per-dependency status
- Testing: Test health aggregation logic
- Documentation: Document the health check schema
Suggested Execution
Branch: feat/issue-066-health-check-dependency-graph
Implement Changes
- Extend
apps/backend/src/app/api/cron/health-check/route.ts to report per-dependency status
- Check database, Stellar network, Vercel API, and Stripe connectivity
- Return a structured graph with overall and per-dependency health
- Include response time metrics for each dependency check
Test and Commit
- Test the aggregation of per-dependency health into overall status
- Test partial-failure reporting
- Document the health check response schema
Example Commit Message
feat(health): build health check endpoint dependency graph
- Report per-dependency health for database, Stellar, Vercel, Stripe
- Return structured graph with overall and per-dependency status
- Include per-dependency response time metrics
Guidelines
- Use short timeouts for dependency checks to avoid slow responses
- Return 503 when critical dependencies are down
- Keep the health check itself lightweight
Description
Build a comprehensive health check endpoint that reports the health of all system dependencies as a structured dependency graph, enabling rapid diagnosis of which subsystem is degraded.
Requirements and Context
Suggested Execution
Branch:
feat/issue-066-health-check-dependency-graphImplement Changes
apps/backend/src/app/api/cron/health-check/route.tsto report per-dependency statusTest and Commit
Example Commit Message
Guidelines