Skip to content

Soroban RPC dual-endpoint failover #136

Description

@truthixify

Extra labels: stellar, resilience
Tier: M (2-4 days) | Type: feature

Context. A single Soroban RPC URL is a single point of failure. Users want to configure a primary + fallback and have the client fail over silently if the primary is down.

Scope.

  • Client accepts an array of endpoints.
  • Health-check on first use; sticky to the healthy one until it fails.
  • Circuit breaker: after N consecutive failures, mark endpoint bad for M seconds.
  • Emit a endpointFailover event so apps can log it.

Acceptance.

  • Test with mock RPC that goes down mid-scan
  • Failover verified without dropped events
  • Doc'd config shape

Files. src/chains/stellar/rpc.ts, test/chains/stellar/rpc.test.ts.

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave programdripsFunded via Drips Networkhelp wantedExtra attention is neededresilienceError handling / retriesstellarTouches Stellar / Soroban code

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions