-
Notifications
You must be signed in to change notification settings - Fork 52
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
Maybe we can add throttling to the API #25
Comments
I'm not really sure about what it really means:
Does it really block access to data (responding the request with a As we have only
I use this approach with the news in Cunha já caiu? (in the backend there is requests, requests-cache and Redis). |
Hey @cuducos thanks again! The idea behind the throttling suggestion is not about saving resources, to be honest. I mean, at the moment the only website using the code is really small, we usually get a new pet once per week or even less. So there isn't much point refreshing, let's say, every second. This way I hope that if someone come across the API, decide to create an app for it, using a production website to test it, they will probably hit the rate and hopefully change the rate refresh. But sure, it's just speculation from my side. Hopefully we'll face a time that we''ll need a cache system in place, but I don't think that this is case here. What do you think about it? |
Ok… I get it. I think my mind just plan on needs & requirements, so that's why I misunderstood you. But I do get your point and I'm willing to experiment with this feature from Django REST Framework — so this might be my next commit. Can't promise anything soon, unfortunately. |
@cuducos no problem! |
Now that #18 is done, maybe it'd be a good idea to add throttling to the API, here.
For now I don't think that we really need some great values, probably
1/minute
will be fine.The text was updated successfully, but these errors were encountered: