Rate Limited APIs
I’ve been working with a Rate Limited API recently where the rate is ridiculously small for the application. Being a poor dev without bacon all I can afford is the free API key…. and of course the library that I’m using to access the API has no knowledge of how to handle rate limited APIs. I came up with an idea to inject rate limitations via the configuration of the API key. It only took a minor modification to the API wrapper library to recognize that the api key could be a Proc. Pull Request to the library author; rate limiter built; all is right with the world.
https://medium.com/@dvanhoozer/rate-limited-apis-dd9cbe6bfa50
Post a comment