You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As per the your article, the request is added to the queue even if the request isn't allowed. But in the implementation you check if the queue size is less than capacity before adding.
Your LeakyBucket and Sliding Window Log implementations are almost the same, or am I missing something? The class accepts two parameters and queue polling is the same.
Also, in leakyBucket, queue polling should be done by the server attached to rate limit?
The text was updated successfully, but these errors were encountered:
As per the your article, the request is added to the queue even if the request isn't allowed. But in the implementation you check if the queue size is less than capacity before adding.
Your LeakyBucket and Sliding Window Log implementations are almost the same, or am I missing something? The class accepts two parameters and queue polling is the same.
Also, in leakyBucket, queue polling should be done by the server attached to rate limit?
The text was updated successfully, but these errors were encountered: