You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Separate health check readiness from Stellar dependency checks #521
The health check endpoint at /health (lines 209-235 in src/server.ts) calls Stellar Horizon and Soroban RPC as part of the health check. If either Stellar service is down, the health check returns 503 even though the API itself is healthy.
Location
src/server.ts lines 209-235
The Problem
The health check performs 4 checks:
Database (SELECT 1)
Redis (PING)
Stellar Horizon (root call)
Soroban RPC (health check)
If any of these fail, the entire health check returns 503 "degraded". This means:
A Stellar network outage makes the API appear "down" to load balancers
Kubernetes/Docker health checks may restart healthy API instances
Users cannot access non-Stellar features (course browsing, quiz taking) during Stellar outages
Recommended Fix
Separate the health check into:
Liveness (/health/live) - Is the process alive? (always 200)
Readiness (/health/ready) - Can it serve requests? (DB + Redis only)
Full Health (/health) - Detailed status including external dependencies
The readiness check should only verify core infrastructure (DB + Redis), not external blockchain services. Stellar-dependent endpoints can handle their own degradation.
Current State
Note: /health/live already exists and returns { status: "ok" }. However, /health/ready has the same 4-check structure as /health, making it equally fragile.
Acceptance Criteria
/health/live - Returns 200 if process is alive (already done)
/health/ready - Returns 200 if DB and Redis are healthy (remove Stellar checks)
/health - Keep as detailed status endpoint for monitoring dashboards
Update documentation to explain the difference between readiness and liveness
Severity
medium - Can cause unnecessary container restarts and load balancer failures during Stellar outages.
Hello Maintainer, I’m interested in working on this issue and have reviewed the requirements carefully. I’m confident I can deliver a quality implementation that satisfies the acceptance criteria. Please consider assigning it to me.
@joewee-x has applied to work on this issue as part of the Stellar Wave Program's 9th wave.
Hi Maintainer, I'm a smart contract/full-stack dev (Rust, Soroban, Cairo, TypeScript) focused on secure, clean blockchain code. I've reviewed the issue and can deliver a complete solution within 24 hours. Please assign it to me
@dammy-lab has applied to work on this issue as part of the Stellar Wave Program's 9th wave.
I can work on this issue because it is a focused backend reliability and health-check improvement involving API infrastructure, dependency isolation, and service availability. The main work is to separate process liveness from application readiness and external dependency health.
@TheHalalHunter has applied to work on this issue as part of the Stellar Wave Program's 9th wave.
Hi maintainer
I’d love to help out with this issue. I’ve checked the current codebase/documentation and know exactly what needs to be updated to make this clearer. I will ensure everything aligns perfectly with your existing contribution guidelines.
Congratulations, @TheHalalHunter! 🎉 Your application was accepted by the repo's maintainers, and the issue is due on September 30, 2026.
🧑💻 @TheHalalHunter: Please resolve the issue such that the repo's maintainers have enough time to review your contribution before the due date. You'll earn Points for completing the issue on-time, which will make you eligible for a share of the Stellar Wave Program's reward pool.
Warning
When opening a PR, please link it to this issue to ensure it gets tracked accurately. Points are awarded when this issue is marked as completed by the maintainer.
🤠 Repo maintainers: Please keep an eye on the contributor's progress and review their work before the due date. You can manage this issue, including adjusting its complexity and points, here.
🏆 @TheHalalHunter: You earned 35 FoxPoints for this contribution! Your current tier: Explorer (608 total points). Track your full progress on GrantFox.
👏 Great work, @TheHalalHunter! Keep contributing to ChainLearnOfficial.
Activity
guptakumarranjeet150 commentedon Sep 30, 2026
Hey team,
I am interested in working on this issue.
Plan:
Separate health check readiness from Stellar dependency checksensuring proper HTTP status codes and error propagation.Looking forward to collaborating on this—please assign!
Emoji-dot commentedon Sep 30, 2026
@Emoji-dot has applied to work on this issue as part of the Stellar Wave Program's 9th wave.
ℹ️ Repo Maintainers: To accept this application, review their application or assign @Emoji-dot to this issue.
Peolite001 commentedon Sep 30, 2026
@Peolite001 has applied to work on this issue as part of the Stellar Wave Program's 9th wave.
ℹ️ Repo Maintainers: To accept this application, review their application or assign @Peolite001 to this issue.
adeboladee commentedon Sep 30, 2026
@adeboladee has applied to work on this issue as part of the Stellar Wave Program's 9th wave.
ℹ️ Repo Maintainers: To accept this application, review their application or assign @adeboladee to this issue.
kolawoleoluwaferanmi014-a11y commentedon Sep 30, 2026
@kolawoleoluwaferanmi014-a11y has applied to work on this issue as part of the Stellar Wave Program's 9th wave.
ℹ️ Repo Maintainers: To accept this application, review their application or assign @kolawoleoluwaferanmi014-a11y to this issue.
Onefie10 commentedon Sep 30, 2026
@Onefie10 has applied to work on this issue as part of the Stellar Wave Program's 9th wave.
ℹ️ Repo Maintainers: To accept this application, review their application or assign @Onefie10 to this issue.
Fayedamz commentedon Sep 30, 2026
@Fayedamz has applied to work on this issue as part of the Stellar Wave Program's 9th wave.
ℹ️ Repo Maintainers: To accept this application, review their application or assign @Fayedamz to this issue.
official-rex commentedon Sep 30, 2026
@official-rex has applied to work on this issue as part of the Stellar Wave Program's 9th wave.
ℹ️ Repo Maintainers: To accept this application, review their application or assign @official-rex to this issue.
joewee-x commentedon Sep 30, 2026
@joewee-x has applied to work on this issue as part of the Stellar Wave Program's 9th wave.
ℹ️ Repo Maintainers: To accept this application, review their application or assign @joewee-x to this issue.
ife-daniel commentedon Sep 30, 2026
@ife-daniel has applied to work on this issue as part of the Stellar Wave Program's 9th wave.
ℹ️ Repo Maintainers: To accept this application, review their application or assign @ife-daniel to this issue.
Kao-thar commentedon Sep 30, 2026
@Kao-thar has applied to work on this issue as part of the Stellar Wave Program's 9th wave.
ℹ️ Repo Maintainers: To accept this application, review their application or assign @Kao-thar to this issue.
dammy-lab commentedon Sep 30, 2026
@dammy-lab has applied to work on this issue as part of the Stellar Wave Program's 9th wave.
ℹ️ Repo Maintainers: To accept this application, review their application or assign @dammy-lab to this issue.
oscar24357 commentedon Sep 30, 2026
@oscar24357 has applied to work on this issue as part of the Stellar Wave Program's 9th wave.
ℹ️ Repo Maintainers: To accept this application, review their application or assign @oscar24357 to this issue.
TheHalalHunter commentedon Sep 30, 2026
@TheHalalHunter has applied to work on this issue as part of the Stellar Wave Program's 9th wave.
ℹ️ Repo Maintainers: To accept this application, review their application or assign @TheHalalHunter to this issue.
drips-wave commentedon Sep 30, 2026
Congratulations, @TheHalalHunter! 🎉 Your application was accepted by the repo's maintainers, and the issue is due on September 30, 2026.
🧑💻 @TheHalalHunter: Please resolve the issue such that the repo's maintainers have enough time to review your contribution before the due date. You'll earn Points for completing the issue on-time, which will make you eligible for a share of the Stellar Wave Program's reward pool.
Warning
When opening a PR, please link it to this issue to ensure it gets tracked accurately. Points are awarded when this issue is marked as completed by the maintainer.
🤠 Repo maintainers: Please keep an eye on the contributor's progress and review their work before the due date. You can manage this issue, including adjusting its complexity and points, here.
🌊 Happy Wave 🌊
fix: resolve issues #521 #522 #523 #526
Merge pull request #542 from TheHalalHunter/fix/521-522-523-526-healt…
grantfox-oss commentedon Oct 1, 2026
🎉 This issue has been marked as completed on GrantFox!
@TheHalalHunter's PR #542 was approved and merged by @DeFiVC.
🏆 @TheHalalHunter: You earned 35 FoxPoints for this contribution! Your current tier: Explorer (608 total points). Track your full progress on GrantFox.
👏 Great work, @TheHalalHunter! Keep contributing to ChainLearnOfficial.