Arcjet rate limiting algorithms #203
Replies: 1 comment 1 reply
-
Please, I am sorry if I got it wrong, but the math seems to be wrong at line 5 of the second code block inside the Sliding Window section. 50 * ((60 - 30) / 60) + 50 So, in that case, the client would not be blocked from making further requests, for it still has remaining amount of 25 requests. remaining = limit - rate = 0 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Arcjet rate limiting algorithms
Arcjet rate limiting supports fixed window, sliding window, and token bucket algorithms.
https://docs.arcjet.com/rate-limiting/algorithms/
Beta Was this translation helpful? Give feedback.
All reactions