Rate-limit requests

Also automatically retries requests that were rate-limited
Couldn't that result in an endless loop or at least in a pretty long lasting iteration?