A client submits an order and the connection drops. The order might have been recorded, or the server might never have received it. Retrying is reasonable. Creating a second order is a bad outcome. The integration needs a way to tell a fresh request from a repeat.
Give the operation an identity
The caller can send a unique identifier with the first attempt and reuse it after a timeout. The receiving service keeps that identifier with the result so it can return the same outcome if the request arrives again. Scope the identifier to the account and operation so separate callers cannot interfere with each other.
Decide how to handle a repeated identifier with different details. If an order number is reused with a different amount, the service should report the conflict. It needs enough stored information to distinguish a retry from a different instruction.
Check what happens across boundaries
A single request may change a local record and then call a third-party service. If the application restarts between those steps, it needs a durable record of what still has to happen. The external service may have its own way to recognise a repeated request. Use it where available and decide how staff will reconcile an uncertain result.
For updates that arrive as callbacks, assume delivery can be delayed or repeated. Store the provider’s event identifier and give operators a way to trace events that could not be applied.
Test the failure that causes the retry
Disconnect a client after the service records the result but before it returns a response. Repeat the original request and check both the visible result and the underlying records. Then try two attempts at once. That is the point at which an integration proves it can handle the case the retry was designed for.