4 ms·
A good client library should abstract away the rate limiting, at least. That is, it should keep track of how many requests you made over time, and if making an
by amyjess 11y ago
A good client library should abstract away the rate limiting, at least.
That is, it should keep track of how many requests you made over time, and if making another will put you over the rate limit, the library should block for however much time is needed before actually sending the request.
For example, I can't imagine interacting with Reddit's API without praw taking care of the rate limiting for me.
- stuartaxelowen 11y agoEnterprise clients (the ones they care about) are likely making requests from multiple machines, meaning you have to track API usage per token in a database somewhere.