Skip to content

Retry strategy

A retry strategy defines which failures to retry, the waiting intervals and the limit on further attempts.

APIs and data contracts

A retry strategy determines when to attempt a failed or unanswered operation again. It separates temporary disruption from errors requiring correction first and limits attempts or total duration.

In a fictional example, an integration waits 2, 4 and 8 seconds before three further attempts. These are example values, not universal settings. Added randomness can reduce simultaneous retries from many receivers. The destination's requirements must also be respected.

A missing product code does not become valid through waiting. A lost response may conceal an operation already completed. Before retrying, establish safe effects through idempotency or outcome reconciliation. Retrying alone does not correct the underlying error.

Sources