hedera-mirror-node icon indicating copy to clipboard operation
hedera-mirror-node copied to clipboard

Implement a gas throttling mechanism in the web3

Open kselveliev opened this issue 10 months ago • 0 comments

Problem

Currently we are only using a rate limiter per request in the web3 module. But if there are a lot of requests that requires a small amount of the gas the system may be a able to handle a larger number of request than in the current rate limit capacity.

Solution

Using bucket4j add a new bucket config that will consume the gas limit in the contract call and after the call will refund it from the bucket taking in to account the actual gas used by the request.

Alternatives

No response

kselveliev avatar Apr 19 '24 08:04 kselveliev