A timeout means the caller did not receive a conclusive response. It does not prove the broker or service failed to act. Retrying an instruction without reconciliation can duplicate orders, reports or notifications. Safe automation needs durable intent, stable identifiers and explicit handling of uncertain outcomes.
The control and its failure modes
Idempotency means repeated handling of the same logical request does not create additional effects. Some systems provide a native request identifier; others require reconciliation against authoritative state. The design should distinguish the investment instruction from the transport attempt used to deliver it.
A durable queue helps preserve work through browser closure or process restart, but queueing alone does not guarantee exactly-once execution. A worker can fail after an external service acts and before it records success. That boundary needs an idempotency mechanism, a reconciliation step or a deliberate manual-review state.
A worked example
An instruction requests 50 units. The broker accepts it, but the response is lost. A client retries with a new order identifier and another 50 units are accepted. Local logs can show one failed request followed by one successful request while the account holds 100 units. The safe question is what the broker confirms, not how many success responses the client received.
Practical review and implementation
Persist authorised requests before dispatch, use stable logical identifiers and record attempts separately. Claim work with bounded leases and protect publication from stale workers. For uncertain trading effects, reconcile before replaying; for confidential e-mail, avoid automatic duplicate delivery after an ambiguous acceptance. Expose progress and per-account outcomes so an operator can resolve exceptions without guessing.
Assumptions and limitations
Exactly-once behaviour across independent services is not created by a flag in a job table. Broker capabilities and transaction semantics constrain the solution. Reliable recovery also needs permissions, retention and monitoring; idempotency protects against duplication but does not decide whether the original investment instruction was appropriate.
Primary references
Further detail on the underlying concepts and data definitions:
