Skip to content

api-gateway health endpoint responds 200 even when some dependents fail #562

Description

@therealjhay

ProblemThe gateway /health returns 200 if it itself is up, ignoring downstream (DB, Redis, Horizon) status, so load balancers keep traffic flowing to a degraded gateway.

  1. Downstream failures don't affect status code.
  2. No readiness vs liveness split.
  3. LB keeps routing.

Solution

  • Return 503 for readiness when critical dependents fail.
  • Separate liveness from readiness.
  • Test the 503 path.

Acceptance Criteria

  • Degraded gateway reports 503 on readiness.
  • Liveness stays 200.
  • pnpm --filter api-gateway build passes.

Note for Contributors: Write a clear PR description. Show the readiness 503.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Stellar WaveIssues in the Stellar wave program

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions