Integration · Guide
Design for partial success before automating five systems
A visible business state is more useful than pretending a multi-system transaction is atomic.

One request, several irreversible steps
In an illustrative onboarding workflow, the CRM record is created, a welcome message is sent, and the accounting update fails. Declaring the whole request failed invites a restart that duplicates the first two steps. Map each operation’s reversibility before implementation. Some changes can be undone, some require a compensating action, and an external message may need a correction rather than an imaginary rollback.
Use explicit checkpoints
Keep a durable status for each business step and the external record references. AWS Step Functions documents retry and catch mechanisms; the workflow designer still needs to define what each failure means. Our proposal is to advance only after the relevant destination confirms success. A model-generated statement that a task is finished is not that confirmation. Staff should see completed steps and the exact unresolved step together.
Workflow at a glance
Agree compensation with the business owner
Write a short decision table for each partial outcome: resume, compensate, wait, or escalate. For an incorrect appointment, cancellation may have customer consequences; an automated compensation should not receive broader authority than the original action. Define who approves it and whether the customer needs an explanation. Use idempotent operations where available so resuming a step does not create another side effect.
Break the chain deliberately
Inject a failure after every external step in a synthetic test. Ask an operator to recover using only the documented state and runbook. Verify that recovery does not resend messages or recreate accounts unintentionally. This work may reveal that a five-system pilot is too broad. Reducing the initial chain to one valuable integration can be a better outcome than delivering an impressive demonstration with no trustworthy recovery path.
Choose the first integration carefully
Rank integrations by recoverability as well as value. An internal status change may be easier to reconcile than a customer-facing cancellation. Starting with a reversible path develops recovery skills, while any irreversible step should be reflected in scope, acceptance, and support rather than priced as another simple API call.
Sources and further reading
- Handling errors in Step Functions workflowsHandling errors in Step Functions workflowsAWS · Documentation ·
- Idempotent requestsIdempotent requestsStripe · Documentation ·
Editorial approach
AI-assisted original writing, checked against linked public sources. Practical recommendations and illustrative scenarios are editorial analysis, not reported client results. Source dates and product details may differ from this collection’s preparation date.