f6ccc99d8f
switched algo to leaky bucket, fixed a couple of bugs to get it moving. added a default arg for 'data' in order to test
trunk
Zev Averbach2023-08-12 08:41:46 +03:00
e24d166cb2
renamed token bucket module so it's only home to the in-memory, lazy refill version
Zev Averbach2023-08-11 19:02:56 +03:00
ea808b1895
renamed token_bucket to reflect its laziness and in-memoryness, added a task to implement other versions
Zev Averbach2023-08-11 18:51:51 +03:00
877c749f37
implemented leaky bucket, made a script to run its dequeuing. formatted with black
Zev Averbach2023-08-11 18:43:36 +03:00
32eddd3de6
implemented leaky bucket, changed ip to identifier, added a bunch of documentation so the repo can serve as much of a journal entry as a collection of code. added a README in that effort too.
Zev Averbach2023-08-11 17:22:52 +03:00
2c9f2a30f7
fixed first algo so it adds as many tokens as needed after more than one time period has passed
Zev Averbach2023-08-11 08:01:18 +03:00
224cc4f5ec
token bucket implemented in memory, in app
Zev Averbach2023-08-10 12:28:09 +03:00