Re:Scaling your API with rate limiters
by mritun on Thursday March 30, 2017 @06:21PM
(#13999417)
There is no replenishing process, its just a conceptual thing. In code one just computes time difference and then multiplies that with fill rate to determine tokens to fill before deducting any. Token buckets are popular because they work well, require fixed size storage and are extremely simple to implement and test.
[ Parent
| on HN ]
There are no comments on this comment yet.