Replies: 2 comments 1 reply
-
Just noticed my secondary request will be supported in ethers v6 |
Beta Was this translation helpful? Give feedback.
-
Explicit batch management will likely not be added in v5 without significant justification. It can lead to deadlock if developers are not very careful with it, which is very difficult to diagnose and debug, since effectively the application just stops. I'm apprehensive about it in v6 too, for the same reason, but am experimenting with some different API designs. Adjusting the aggregation period is definitely something v6 will incorporate. Also keep in mind that that is a lower bound; in v5 all calls made within the same event loop will be batched, even if it takes over 10ms to batch them (the batch won't be released until the current event loop ends). In v6, it will honour a maximum payload size to allow multiple batches to be released during the same event loop. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Describe the Feature
As I understand it, currently the JsonRpcBatchProvider sends batches every 10ms. I would like a provider with batches that can grow indefinitely and are then sent manually. Would this break the API in any way? If so, being able to customize these 10ms to a bigger timeout would also help.
Beta Was this translation helpful? Give feedback.
All reactions