Skip to content

Add timeout and circuit breaker for external API calls #398

@Smartdevs17

Description

@Smartdevs17

Description

External API calls (Stellar, Stripe, KYC providers) have no timeouts causing cascading failures. Implement configurable timeouts and circuit breakers.

Acceptance Criteria

  • Configurable timeout per external service
  • Circuit breaker with failure threshold and recovery timeout
  • Fallback responses for degraded functionality
  • Timeout and circuit breaker metrics
  • Graceful degradation when circuit is open
  • Manual circuit reset for emergency recovery

Technical Scope

  • backend/src/middleware/circuit-breaker.ts
  • backend/src/services/stellar.ts
  • backend/src/services/stripe.ts
  • Edge: partial response handling, timeout vs cancellation semantics

Metadata

Metadata

Labels

200-points200 point issueStellar WaveIssues in the Stellar wave programdrips-waveIssues in the Drips Wave programhighHigh complexity issue

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions