Implementation guides

Build a safe retry path.

A practical implementation sequence for commands that can reach an external system more than once.

Explore the playbookDownload PDF
On this page

Idempotent command implementation

  1. 1

    Identify

    Assign a stable key to the business action

  2. 2

    Persist

    Record the command and its current outcome

  3. 3

    Execute

    Use the key with the receiving system where supported

  4. 4

    Reconcile

    Check an uncertain result before repeating the action

Distinguish failure from uncertainty

A timeout means the caller did not receive a response. It does not prove that the external system rejected or failed to apply the command.

Test the interruption points

Stop the process before sending, after the external action and before recording completion. Verify that recovery does not duplicate the transaction.

Make the starting conditions explicit

A useful implementation guide starts before the first command. Describe the supported version, required permissions, external dependencies and environment assumptions. Distinguish steps that affect a local environment from those that change a shared service. Use placeholders for secrets and explain how the approved secret-management process supplies them.

List the state that must already exist, such as a database schema, identity application, message queue or test tenant. Where another team owns a prerequisite, identify the handoff and the evidence that it is ready. Readers should know whether they can safely follow the guide before modifying anything. Include the intended audience and link to background concepts that a less experienced reader may need.

Show the expected result of each stage

Organise the procedure into stages that can be checked independently. After configuring an integration, show how to confirm authentication without immediately creating a production record. After a schema change, explain how to confirm that existing and new data remain readable. Include useful diagnostics and the point at which the reader should stop rather than improvise.

For a background worker, provide a valid message, an invalid message and a repeated delivery. Explain the expected business state and where each outcome can be observed. A successful start-up message only proves that the process started. It does not demonstrate that permissions, business rules and recovery behaviour work together under realistic conditions.

Include reversal and maintenance

Document rollback or recovery alongside the forward steps. State which changes are reversible and which require a separate data correction. If old and new versions can run together during deployment, explain the compatibility period and when obsolete fields or interfaces can be removed.

Have someone who did not write the guide follow it in a clean, appropriate environment. Record the version and date used for that check. Assign responsibility for reviewing instructions when dependencies change. Keep examples small, reproducible and free of confidential information. Link to architectural reasoning instead of repeating it throughout the procedure. The finished guide should take a reader from a known starting point to a verified working state.

At least across the business retry and reconciliation window. Agree retention with the workload owner and account for delayed deliveries.