429 Too Many Requests errors, blocking further requests until the limit resets.
To maintain data freshness and avoid disruptions in your integration functions, it’s crucial to manage your API call volume and handle rate limits effectively. Nango simplifies this process significantly.
Strategy 1: Retry with exponential backoff
The simplest strategy involves retrying failed requests after waiting: When you configure HTTP requests using Nango’s helper (reference), you can specify the number of retries:429 status code, with the retries spaced out using exponential backoff. This method is efficient because:
- It uses exponential backoff to wait out the rate-limit period
- Nango syncs can run for up to 24 hours, allowing retries to occur within this window (note that action and webhook functions have shorter lifespans, see Resource Limits)
- It works for APIs without requiring any API-specific configurations