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

Restore TokenBucket/RateLimiter state from localStorage #83

Open
wzijden opened this issue Jul 26, 2021 · 0 comments
Open

Restore TokenBucket/RateLimiter state from localStorage #83

wzijden opened this issue Jul 26, 2021 · 0 comments

Comments

@wzijden
Copy link

wzijden commented Jul 26, 2021

When using this on a client site web page, you will also want to rate limit customers that continously refresh your web page.

But in this case, the rate limiter will be reinitialized on each page load, and its previous state thrown away.

Can we someone serialize the current state of the Rate Limit to local storage, so that we can recover it on page load?

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

No branches or pull requests

1 participant