Problem
RPC providers (Alchemy, Infura, dRPC) can experience outages or rate limiting. Currently the relayer uses a single RPC endpoint and fails completely when the provider has issues.
Solution
Implement sequential failover across multiple RPC providers for source chains.
When the primary provider fails, automatically switch to the next configured provider. If all providers fail, cycle back to the first with exponential backoff.
Failure conditions triggering failover
- Connection errors (timeout, refused, DNS failure)
- HTTP 5xx server errors
- Rate limiting (429) after one retry
Problem
RPC providers (Alchemy, Infura, dRPC) can experience outages or rate limiting. Currently the relayer uses a single RPC endpoint and fails completely when the provider has issues.
Solution
Implement sequential failover across multiple RPC providers for source chains.
When the primary provider fails, automatically switch to the next configured provider. If all providers fail, cycle back to the first with exponential backoff.
Failure conditions triggering failover