Exploring the Rate package and the Token Bucket algorithm

At my Circuit Breaker post, I mentioned that nowadays it is common that the application has to communicate with other ones, and with that, traffic control strategies become essential. Recently I&rsquo;ve discovered the Token Bucket, a strategy based on tokens used to control the traffic. Imagine that you have 5 tickets to a ride, and every new hour you get a new ticket, but you can never exceed…