Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add retries to RPC clients #453

Open
cam-schultz opened this issue Aug 21, 2024 · 0 comments
Open

Add retries to RPC clients #453

cam-schultz opened this issue Aug 21, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@cam-schultz
Copy link
Collaborator

Context and scope
It's currently up to the caller to implement retry loops when making RPC calls via packages such as ethclient. We should provide utilities or extensions that wrap RPC calls with retries handled automatically.

Discussion and alternatives

  • We should investigate adding a generic utility that takes a function to be called in a retry loop, and a set of parameters dictating how retries are handled.
  • We should consider integrating exponential backoff (rather than constant or linearly increasing retry intervals). Packages such as https://pkg.go.dev/github.com/cenkalti/backoff/v4 provide this out of the box.

Open questions
Questions that are still being discussed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Backlog 🗄️
Development

No branches or pull requests

1 participant