Retries

This page describes some best practices to implement retries of failed API calls against our platform.

Use exponential backoffs

To issue retries in case of the described HTTP 429: Too many Requests we suggest implementing a retry mechanism based on an exponential backoff algorithm.

Drawing

For developers, there are some libraries available that have already implemented the exponential backoff. Here are some examples:

Best practice: Retries for other HTTP status

Once you have an exponential retry mechanism in place, it makes sense to also leverage this mechanism for the following HTTP status codes:

  • 500 Internal Server Error

  • 502 Bad Gateway

  • 503 Service Unavailable

  • 504 Gateway Timeout

  • 408 Request Timeout

Last updated