[Feature] HttpMultiClient<T>
Transport
#1760
Labels
c-transport
Pertaining to the transport crates
discuss
needs discussion
enhancement
New feature or request
Milestone
Component
rpc, transports
Describe the feature you would like
I’d like to propose a feature that could enhance the robustness of applications using alloy by implementing a built-in fallback mechanism for the http transport layer. This would help manage scenarios where the primary RPC provider is unavailable, improving reliability without requiring developers to implement custom in-app solutions or gateways.
I see 2 main benefits with such design:
Because of that i thought of implementing a new http transport to support multiple clients and potentially multiple request orchestration modes (although we could keep it simple and only use it as a fallback). Here the proposed impl:
then we could enhance the
ProviderBuilder
so that users would simply do something like:I am eager to implement it myself if you guys think that it is a good idea, but design validation would be appreciated.
Thanks!
The text was updated successfully, but these errors were encountered: