Planning for failures in software integrations
Keep business processes understandable when connected systems fail or send incomplete data.
Map the exchange
Identify the source and destination, the record being transferred and the event that starts the exchange. Record which system owns each field and whether updates travel in one direction or both. This prevents two systems quietly overwriting each other.
Decide how to detect failure
Specify what operators should see when a transfer is delayed, rejected or only partly completed. Include a clear reference to the affected record and a route to inspect the cause. Avoid putting confidential payloads into notifications or logs unnecessarily. For example, an alert can identify a rejected order reference and the responsible queue without copying the customer’s full order into the message.
Make retry behaviour explicit
Agree when an automatic retry is appropriate and how duplicate creation will be avoided. Some failures need a human to correct the source data first. Define what should happen when the receiving system accepted a request but its response was lost. If a payment-like operation has an uncertain result, check its status with the receiving system before repeating it; the appropriate method depends on that supplier’s documented interface. Set an agreed limit or review point for retries, and route invalid records to a person who can correct them instead of repeatedly sending unchanged bad data.
Reconcile and practise
Compare records or totals at an agreed interval so missing transfers can be found. Practise recovery using a test environment and document who is responsible. Keep the original data and record changes so a correction can be traced.