I’d put a lost reply near the top of an integration test list. Imagine an invoice is created in accounts, but the sending system never receives confirmation. It sees a timeout. Sending the request again could create a second invoice.
There needs to be a way to find out what happened to that particular operation. That is one of the things I’d want settled before letting a connection handle the full workload.
When the first attempt might have worked
An order reference, a request key supported by the destination or a stored processing record may give you a way to recognise the operation again. The details depend on the applications you’re connecting.
Give that reference a proper test. If two workers submit it together, the receiver still has to handle the situation correctly. I’d include that race, a repeated request and a lost reply in the tests, then look for the resulting invoice in accounts.
This is the idea behind idempotency. Repeating the same operation has the same intended effect as doing it once. The HTTP standard explains the term. You still need to test how the receiving application handles the request.
That test should include the business result. Find the invoice for the order and inspect its lines, amounts and status. An accepted request tells you part of the story.
An order gets corrected
The first transfer is only one part of an order’s life. Somebody may correct an address or cancel an item later. Decide which application maintains each value and how changes made by staff, customers and imports will reach the other end. Otherwise an old address can travel back and replace the correction.
Those decisions can differ by field. Accounts may maintain the billing address, while delivery instructions belong elsewhere. An apparently identical field can have a different meaning too: “order date” might refer to when it was entered in one application and when it was approved in another.
I’d take a few awkward records into the testing: missing required fields, a cancellation, a changed value and a blank that has a particular meaning. Both systems need to agree whether that blank removes a value or leaves the existing one alone. Include stable identifiers, status values, time zones and currencies in the mapping.
A late update adds another problem. An old price change might arrive after a newer one. The time you receive a message may not tell you when the original change happened. Agree how the receiver will recognise the older change and how a record will wait if something it depends on hasn’t arrived yet.
Part of the feed is missing
An import that stops halfway through needs to be recognisable as incomplete. A complete feed with no records is a different input. If missing entries can remove existing assignments, confusing the two can have consequences for records already in the system.
The safeguards in my property data integration work stop an unexpected empty feed before it replaces property assignments. Its publication queues also keep newer changes waiting when an earlier delivery finishes.
For the integration you’re releasing, work out which changes are committed together and which deliveries can be retried on their own. Interrupt the processing and inspect what remains. That gives the recovery procedure something specific to deal with.
Production access and workload
Use the permissions intended for production when trying reads, new records, updates and cancellations. A development account may have broader access. Credential expiry and replacement, network restrictions and approval to enable the connection also belong in the plan.
Try a realistic volume and find out what happens at the processing limit. Queued work needs a way to catch up after an outage. Temporary failures can use bounded retries with delays; invalid records generally need somebody to correct them first.
The error display should give that person the reference and details needed to act. Keep credentials out of code and error displays, and limit personal information to what the task requires.
The handover checks
Somebody needs responsibility for delayed or rejected work, an alert when it needs attention and a way to correct and retry one item. A running process can still have a queue full of orders that haven’t reached their destination.
Compare the source and destination independently, allowing for the agreed processing delay. Match references and values as well as totals. The same record count can hide a missing order and a duplicate.
Before the first full batch, ask the people supporting the connection to demonstrate that they can:
- Trace a failed record to the last completed step.
- Correct and retry it without repeating a business action already completed.
- Pause processing while retaining the outstanding work.
- Compare both systems after recovery.
Include restoring a backup on just one side in that discussion. The other application may have kept processing and will need to be compared before work is replayed. A message already sent or a payment collected may require a separate correction.
A controlled first batch lets the support team try those instructions against the actual connection. Leave time to resolve what they find before handing over the full workload.