Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

Period for specific time and range #313

Closed
tesths opened this issue Mar 23, 2018 · 0 comments
Closed

Period for specific time and range #313

tesths opened this issue Mar 23, 2018 · 0 comments

Comments

@tesths
Copy link

tesths commented Mar 23, 2018

#81 has already claim this but I want to show my user case.

I use web crawler save some data and I make a website with this data.(This data is about weather.)
And this data is refresh every hour at 28 minute. (like 00:28, 01:28, 02:28). And I want provide api for this data.

I use token to verify the user. Due to the data refresh time, I want to limit the request time every hour in this hour 28 minute to next hour 28 minute.( Like 00:29-01:29 request only 10 times. 01:29-02:29 request only 10 times)

I read the document about rack-attack and the issue about #113 . And I think the best plan now is make a task scheduler and clear the cache every hour. I think it's not a very good choice.

Though it's a real not generally useful and rack-attack design for evil request. But I think may a lot of people use rack-attack to limit api request times. And period ranges is really useful.

@grzuy grzuy closed this as completed Mar 21, 2021
@rack rack locked and limited conversation to collaborators Mar 21, 2021

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Projects
None yet
Development

No branches or pull requests

2 participants