-
-
Notifications
You must be signed in to change notification settings - Fork 9.7k
-
Hi, My usecase is to limit my API calls to a rate of 1 per 10 seconds. Using fixed_windowrate_limiter.yaml:
I'm using a Redis cache pool:
The implementation, in a Symfony command:
In my case, I have 2 pages to retrieve for my API call.
In a timelapse of 20 seconds I make 8 API calls. Average rate : 1 per 2.5 seconds. Using sliding_windowrate_limiter.yaml:
Same cache pool. The implementation:
In a timelapse of 70 seconds I make 8 API calls. It works as intended. What am I missing ? |
Beta Was this translation helpful? Give feedback.
All reactions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment