Interview Prep/Ansible/Performance and Scale

How do you deal with cloud API rate limits when running cloud modules at scale?

IntermediateProductionPerformance and Scale
Answer

Reduce calls, then slow down the rest. Use filters and caching in inventory, prefer modules that handle several resources, and avoid per-host cloud calls when one run_once call returns all data. Add throttle, until/retries/delay with backoff for throttling errors (RequestLimitExceeded, HTTP 429), and spread work with serial.

For AWS, set AWS_MAX_ATTEMPTS and AWS_RETRY_MODE=adaptive so botocore retries with backoff. If many jobs use the same account concurrently, stagger the schedules.

All Ansible questions Roadmap: Ansible

More on Performance and Scale