Description
The /health endpoint returns a static OK response without checking database or Redis connectivity. This makes it unreliable for load balancers and monitoring.
Current Behavior
func (h *Handler) Health(w http.ResponseWriter, r *http.Request) {
respondJSON(w, http.StatusOK, map[string]string{"status": "ok"})
}
Proposed Implementation
Check all dependencies and return their status:
{
"status": "ok",
"database": "connected",
"redis": "connected",
"stellar": "connected"
}
- Return 503 if any critical dependency is down
- Include response time for each dependency
- Cache status briefly to avoid hammering dependencies
Acceptance Criteria
Labels
enhancement backend good first issue
Description
The
/healthendpoint returns a static OK response without checking database or Redis connectivity. This makes it unreliable for load balancers and monitoring.Current Behavior
Proposed Implementation
Check all dependencies and return their status:
{ "status": "ok", "database": "connected", "redis": "connected", "stellar": "connected" }Acceptance Criteria
Labels
enhancementbackendgood first issue