llamanodes / web3-proxy

Fast loadbalancing and caching proxy for Ethereum or chains with similar JSON-RPC methods
https://llamanodes.com
GNU General Public License v3.0
148 stars 33 forks source link

`hard_limit` needs to support multiple rate limiting schemes #166

Open BlinkyStitt opened 1 year ago

BlinkyStitt commented 1 year ago

Right now we only per-second rate limits to our backend rpcs (its the most common). But some providers do a rolling window over 1 minute. Others have more complex schemes that allow for bursting.

Given that we run most of our own backend servers and so don't have rate limits, this is low priority.

BlinkyStitt commented 1 year ago

0bc523ab9f2c07254c3009e92ba7009f0e7726ba makes it so we can have different window sizes. we don't support rolling windows though.