Hi @pgjones ,
First thank you for all your effort to maintain a impressive amount of source projects/initiatives in the same time, I'm basically using your whole suite (Quart, Schema, Redis, Cors, Limiter) hehehe
I was configuring the limiter, it looks to work well when I test with small values, like the following:
but I applied the limiter to some of my views, and I start to get a considerable amount of Denies from the clients using the API, so I started to increase its amount, currently I'm having my defined as @rate_limit(21000, timedelta(seconds=20) and I'm still getting too much denies to be true, I think that for real I shouldn't having being receiving not even 2% of it.
I just moved it to the Redis Store to be able to debug it a bit to understand where the problem might live, but I'm not really understand it how it counts.
I understand that the Redis' keys are formed by the function name + the maximum number of requests + period in seconds + IP:
Hi @pgjones , First thank you for all your effort to maintain a impressive amount of source projects/initiatives in the same time, I'm basically using your whole suite (Quart, Schema, Redis, Cors, Limiter) hehehe
I was configuring the limiter, it looks to work well when I test with small values, like the following:
but I applied the limiter to some of my views, and I start to get a considerable amount of Denies from the clients using the API, so I started to increase its amount, currently I'm having my defined as
@rate_limit(21000, timedelta(seconds=20)
and I'm still getting too much denies to be true, I think that for real I shouldn't having being receiving not even 2% of it.I just moved it to the Redis Store to be able to debug it a bit to understand where the problem might live, but I'm not really understand it how it counts.
I understand that the Redis' keys are formed by the function name + the maximum number of requests + period in seconds + IP:
I have 3 rules:
My question is: how does it counts? because looks like that it simply stores a timestamp as value, I didn't figured out how you managed to count the amount of requests within a period. Thank you!