A Python automation polls an external API and must comply with rate limits. Which implementation detail is most appropriate to avoid throttling while maintaining throughput?

Answer

Implement exponential backoff with jitter based on HTTP status (e.g., 429) and respect Retry-After when present

Explanation

Backoff with jitter prevents synchronized retry storms, and honoring Retry-After aligns the client with the service’s stated limits.

Last reviewed: October 2026

Reviewed by FirstInTest Editorial Team

Report an error
QuestionBack to list