meraki-analytics / orianna

A Java framework for the Riot Games League of Legends API (http://developer.riotgames.com/).
MIT License
182 stars 56 forks source link

Add a Smooth Rate Limiter #77

Open robrua opened 6 years ago

robrua commented 6 years ago

Currently Orianna only offers a bursty rate limiter for use with the Riot API. For large keys, it can sometimes be preferable to make requests in a "smooth" way, limiting bursting to reduce the likelihood of bad responses from the Riot API when it is under heavy load.

Such a rate limiter should be thread-safe and meet (or supplement) the existing rate limiter interface.