You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Are there any plans to implement a ReplenishmentRatelimiter version of the current Redis Ratelimiters?
In my case, im trying to prevent 429s on a downstream api endpoint, but it looks like due to network latency and/or timing issues, this cannot be guaranteed.
An alternative is to manually control the replenishment ourselves to guarantee that the request has started/ended before we replenish the ratelimiter.
The text was updated successfully, but these errors were encountered:
Basically, im just keeping track of two counters. One tracks the ratelimit window, as was before, the other tracks the replenishment tokens, which can only be replenished manually by calling the TryReplenish() method.
Are there any plans to implement a
ReplenishmentRatelimiter
version of the current Redis Ratelimiters?In my case, im trying to prevent 429s on a downstream api endpoint, but it looks like due to network latency and/or timing issues, this cannot be guaranteed.
An alternative is to manually control the replenishment ourselves to guarantee that the request has started/ended before we replenish the ratelimiter.
The text was updated successfully, but these errors were encountered: