Token bucket


#1

Originally published at: https://purelyfunctional.tv/core-async-patterns/token-bucket/
Rate limiting is kind of hard to implement, especially across multiple threads. But in core.async, it’s not hard at all. In this lesson, we implement a simple rate limiting algorithm called a token bucket.