Retries, backoff and dead letters, explained

What happens when a step fails, and how to choose a retry policy that recovers without making things worse.

Isometric illustration for Retries, backoff and dead letters, explained

Every integration fails sometimes. An API times out, a service is busy or a token expires. A good retry policy turns most of these into non-events.

Retry, but not immediately

Retrying right away usually hits the same problem. Backoff waits a little longer after each attempt: two seconds, then eight, then thirty. This gives the other system time to recover.

Know when to stop

Some errors will never succeed on retry, like a missing required field. Dovetail separates temporary errors from permanent ones and only retries the first kind.

  • Timeouts and rate limits: retry with backoff.

  • Authentication errors: alert and pause.

  • Validation errors: send to the dead letter queue.

The dead letter queue

Records that cannot be processed are kept, not dropped. They wait in the dead letter queue with the error and the original data, ready to be fixed and replayed with one click.

A workflow with a clear retry policy and a watched dead letter queue rarely loses a record.

Create a free website with Framer, the website builder loved by startups, designers and agencies.