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

Rate limit implementation? #18

Open
mochaaP opened this issue Nov 23, 2021 · 0 comments
Open

Rate limit implementation? #18

mochaaP opened this issue Nov 23, 2021 · 0 comments
Labels
enhancement New feature or request help wanted Extra attention is needed question Further information is requested

Comments

@mochaaP
Copy link
Member

mochaaP commented Nov 23, 2021

Seemed not possible with native Workers (even with Durable Objects), as Date.now() is a fixed value.

Maybe use a rate limit API running on external hosting solutions, e.g. Heroku?

An idea: Workers =(per request)=> Throttler =(when reached rate limit)=> Write to KV


or just use Cloudflare Page Rules to rate limit, but a domain is needed for this to work.

@mochaaP mochaaP added enhancement New feature or request help wanted Extra attention is needed question Further information is requested labels Nov 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant