-
Notifications
You must be signed in to change notification settings - Fork 747
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
feat: rpc batch requests #1125
feat: rpc batch requests #1125
Conversation
I haven't gone into details yet, on first look, it seems good, but we need tests. |
Hi @tabaktoni sorry for late reply, I didn't see the notification. |
Hi @tabaktoni sorry for late reply. I've added tests and also moved the BatchClient class to utils, instead of the |
🎉 This issue has been resolved in version 6.12.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Motivation and Resolution
The BatchClient class allows requests to be batched together, either by the interval amount, or at the end of the callback queue if set to 0. By batching requests, we can reduce the overhead associated with handling individual requests, optimize resource utilization and improve overall performance.
Request:
Response:
closes #758
Usage related changes
batch
option added to RpcProvider options.Development related changes
BatchClient
class created to manage batching of requests.Checklist: