Rate limits

Are there any samples on how to properly handle rate limits? I am doing a bunch of batch processing and am running into the rate limit issues
Tags:
Are there any samples on how to properly handle rate limits? I am doing a bunch of batch processing and am running into the rate limit issues
Answers
You can read the response headers for the drip bucket details and dynamically alter the timing of your API requests based on those details. For me, I take the lazy way out. And hard-code in the worst case scenario. That being one API GET request per second, and one API PUT/POST request every 10 seconds. It's slow but at least consistent.😀