I am using slim v3 and I am trying to find out if Slim has a rate limit class / method.
I havn’t been able to find it.
So I was wondering how do some of you handle rate limits.
Thanks
I am using slim v3 and I am trying to find out if Slim has a rate limit class / method.
I havn’t been able to find it.
So I was wondering how do some of you handle rate limits.
Thanks
On https://github.com/slimphp/Slim/wiki/Middleware-for-Slim-Framework-v3.x I can see this one: https://github.com/pabloroca/slim3-apiratelimit-middleware
This one: https://github.com/Prezto/Rate-limit also has a compatible middleware signature.
Thank you alot for your assistance, It helped me alot.
I Used Redis to store the request, so I am making progress.
You are welcome
Are you using the Redis solution as a “waiting list” so requests can wait until rate limit is fred?
Hey @pedropereira
Sorry for the late response
Yea basicly, I want to make sure that the users can’t float our database with requests. So I basicly just have a redis cach that keep track of the amount in a middleware.