The short answer

An integration must distinguish an undelivered request, an unknown outcome and confirmed success. It needs safe repetition, visible unfinished cases and a way to investigate and resolve them. Blindly retrying every failure is insufficient.

Sometimes the dangerous response is no response

Fictional example

An order system asks an invoicing service to create a document. The service creates it, but the connection drops before the response arrives. The caller sees a timeout. Sending a new request without checking can create another document.

A timeout establishes that the caller did not receive a response. It does not prove that the remote operation failed. Amazon Builders’ Library discusses this distinction. Recovery must follow the API’s rules and the available way to establish the original outcome.

Where the API supports idempotency keys, repeating the same operation can avoid another business effect under the provider’s rules. Otherwise, you need an alternative, such as a lookup using a business identifier or manual resolution of an uncertain outcome.

Repeated requests and duplicate events are different problems

Outgoing request: you ask a service to do something. Stripe’s idempotent-request documentation describes a key used to repeat the corresponding operation safely.

Incoming event: a service tells you something has happened. It may deliver the event more than once. Keep track of events and business changes already processed so another invoice or shipment is not created.

Stripe’s webhook documentation also warns that delivery order can differ. These are documented properties of that service, rather than assumptions you can apply to every API.

What the person handling the job needs to see

An operator needs the business case, what completed, what is waiting, who owns it and what can happen next. A raw technical log is not enough.

StatusOperational meaning
Waiting for retryA temporary issue, known attempt count and next attempt time.
Data correction neededMissing or rejected data; unchanged repetition will not help.
Outcome unconfirmedCheck the remote result before repeating the action.
CompleteMatching record and confirmation time are available.
Intervention neededAutomatic attempts ended and an assigned person has a case.

Logs need identifiers and useful error context, with secrets and unnecessary sensitive data excluded. An alert needs a recipient and a recovery procedure.

When to retry and when to stop

A temporary outage may justify a bounded retry with increasing delays and timing variation, so all waiting work does not return together. Invalid data or missing permission generally needs its cause corrected.

Use the meaning of the failure and the provider’s documentation. Once attempts end, keep the case visible and actionable. A manual retry should retain its connection to the original operation.

Also reconcile records: which orders should have an invoice, and which actually do? That can uncover a problem even when the original alert was lost.

Ask to see these acceptance scenarios

  • The same event arrives twice; one business result remains.
  • The remote service is unavailable; the case stays queued with a visible next step.
  • The remote operation succeeds but its response is lost; no blind second write occurs.
  • Input is invalid; the operator sees what needs correction and retries do not loop forever.
  • Events arrive in a different order; the state does not regress incorrectly.
  • Automatic attempts end; a responsible person receives a traceable case.

Try the outage and duplicate-delivery model on our homepage. It runs locally in the browser to illustrate attempts versus outcomes. A real integration must enforce the corresponding rules on the server and against the actual API.

How we can help

Need to connect systems or repair an unreliable integration?

Discuss your integrationIntegration and automation

Examples in this article are illustrative. Technical references are linked beside the corresponding claims. How we prepare articles.