Have you ever had a requirement to restrict how often a particular method is allowed to execute?

Cheddar now includes rate limiter support

Robin Smith -  08 Oct, 2014

Have you ever had a requirement to restrict how often a particular method is allowed to execute?

Despite every developer wanting to make their code faster and more efficient, sometimes there are factors outside of your control. For example, maybe you need to communicate with some external service that you pay for, but they ask that you do not submit more than 10 requests a second.

Well now systems built with Cheddar have access to a rate limiter based on the well-known 'token bucket' algorithm. Simply inject a Rate Limiter into your resource with your specific throttling requirements and you have instant support for controlling how much work is carried out.

Want to find out more? Take a look on GitHub.

Happy limiting!

Subscribe to this blog

Use of this website and/or subscribing to this blog constitutes acceptance of the travel.cloud Privacy Policy.

Comments