Skip to content
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

Allow larger rate limits for extended time intervals #3595

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

TheFreaky
Copy link

This PR updates RedisRateLimiter to support larger values for burstCapacity by changing its type from int to long, enabling greater flexibility for extended time intervals.
The changes include validation to ensure that the burstCapacity does not exceed the maximum allowed value that can be safely handled by Redis scripts, which is 2^53 - 1.

Closes #3594

@pivotal-cla
Copy link

@TheFreaky Please sign the Contributor License Agreement!

Click here to manually synchronize the status of this Pull Request.

See the FAQ for frequently asked questions.

@pivotal-cla
Copy link

@TheFreaky Thank you for signing the Contributor License Agreement!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow larger rate limits for extended time intervals
3 participants