Skip to content

[Reliability] Separate liveness and readiness checks for deployment-safe health monitoring - #1066

Merged
ayomideadeniran merged 2 commits into
StellarDevHub:mainfrom
doctorlight0:feat/health-liveness-readiness
Aug 3, 2026
Merged

[Reliability] Separate liveness and readiness checks for deployment-safe health monitoring#1066
ayomideadeniran merged 2 commits into
StellarDevHub:mainfrom
doctorlight0:feat/health-liveness-readiness

Conversation

@doctorlight0

Copy link
Copy Markdown
Contributor

🚀 Feature Overview

[Reliability] Separate liveness and readiness checks for deployment-safe health monitoring

🛠️ Implementation Requirements

  • Improve the current health endpoint so orchestrators can distinguish a running process from one ready to serve dependent services.
  • Add a lightweight liveness endpoint with no dependency calls.
  • Add a readiness endpoint that checks required database and Redis capabilities with timeouts.
  • Return meaningful non-2xx readiness status when essential dependencies are unavailable.
  • Document probe configuration for Docker and hosting providers.

🔧 Technical Specifications

TypeScript, React/Next.js, Node.js/Express, PostgreSQL/Redis, GitHub Actions — as applicable to the scoped implementation.

Acceptance Criteria

  • Liveness remains fast and succeeds while the process is alive.
  • Readiness fails when required dependencies are unavailable or unhealthy.
  • Responses avoid credentials, connection strings, and internal stack traces.
  • Health routes have automated success and dependency-failure tests.
  • Deployment documentation includes probe examples.

🎓 Difficulty Level

Intermediate to Advanced — requires careful production-quality implementation.

⏱️ Timeline

ETA: 2 days

- Add GET /health/live lightweight liveness endpoint (no dependency calls)
- Add GET /health/ready readiness endpoint (checks PostgreSQL and Redis)
- Keep GET /health for backward compatibility
- Update Docker Compose healthcheck to use /health/ready
- Add tests for all health endpoints
@vercel

vercel Bot commented Jul 30, 2026

Copy link
Copy Markdown

@doctorlight0 is attempting to deploy a commit to the Ayomide Adeniran's projects Team on Vercel.

A member of the Team first needs to authorize it.

@ayomideadeniran

Copy link
Copy Markdown
Contributor

pr under review

@ayomideadeniran
ayomideadeniran merged commit a705bd4 into StellarDevHub:main Aug 3, 2026
0 of 6 checks passed
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.

2 participants