Skip to content

feat: add circuit breakers and retry policies for Stellar RPC, Etherf… - #345

Merged
josealfredo79 merged 1 commit into
Micopay:mainfrom
Timothy2025-20:feature/circuit-breakers-retry
Jul 27, 2026
Merged

feat: add circuit breakers and retry policies for Stellar RPC, Etherf…#345
josealfredo79 merged 1 commit into
Micopay:mainfrom
Timothy2025-20:feature/circuit-breakers-retry

Conversation

@Timothy2025-20

Copy link
Copy Markdown
Contributor

gh pr create
--title "feat: add circuit breakers and retry policies for Stellar RPC, Etherfuse, Didit"
--body "## Description
This PR adds circuit breakers and retry policies for external dependencies to improve resilience.

Changes

  • Added circuit breaker pattern for Stellar RPC, Etherfuse, Didit
  • Implemented retry with exponential backoff
  • Added fallback mechanisms for each dependency
  • Exported metrics for monitoring
  • Made all configurations via environment variables
  • Added integration tests for failure scenarios
  • Created documentation for circuit breakers

Acceptance Criteria Met

  • Circuit breaker wraps all outbound calls to Stellar RPC, Etherfuse, Didit
  • Configurable via env (no hardcoded values)
  • Metrics exported: circuit_open_total, fallback_triggered_total, retry_attempts_total
  • Integration test: simulate RPC failure → verify fallback + alert
  • Docs: runbook for manual circuit reset, on-call escalation

Closes #342

…use, Didit

- Add circuit breaker pattern for Stellar RPC, Etherfuse, Didit
- Implement retry with exponential backoff
- Add fallback mechanisms for each dependency
- Export metrics for monitoring
- Make all configurations via environment variables
- Add integration tests for failure scenarios
- Create documentation for circuit breakers

Closes Micopay#342
@josealfredo79
josealfredo79 merged commit 83eff61 into Micopay:main Jul 27, 2026
2 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.

[RES-01] Circuit Breakers + Retry Policies for Stellar RPC, Etherfuse, Didit

2 participants