-
-
Notifications
You must be signed in to change notification settings - Fork 102
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can you support token bucket in next version? #48
Comments
I found it works as token bucket but NOT leaky bucket, I wonder if I miss understand the leaky bucket algorithm |
According to the code, it has burst which proves it's a token bucket where you can have burst because you didn't use all the tokens. For a leaky packet, it will slows down the coming traffic until the gate opens, it surely not the same thing. |
@whongki Thanks for the clarification! I spent the whole day wondering why it was a leaky bucket rate limiter, this tool looks more like a token bucket. |
hmm... After more research on my part, it seems that GRCA is not a traditional leaky bucket, but an algorithm based on time windows but belonging to the leaky bucket type |
It seems like there are 2 version of leaky bucket
In case of took it as a meter, leaky bucket actually the same as token bucket.
|
Sometimes, token bucket is more suitable.
The text was updated successfully, but these errors were encountered: