Integration anti-patterns
These are the decisions that look reasonable during design and become incidents in production. None of them are exotic β they recur across projects, usually because the shortcut is cheaper on day one and the cost arrives later, in a different team's budget.
Each one is written the same way: what it is, why it happens, what it costs, and what to do instead.
1. Putting the integration logic inside the POSβ
Every terminal holds its own copy of the mapping, the credentials and the retry policy.
Why it happens: it is the shortest path to a working demo, and there is no middleware in the project yet.
What it costs: every contract change becomes a deployment across every store, and credentials cannot be rotated without one.
Instead: keep the POS calling a stable internal contract and put the translation in a mediation layer. See Integration model.
2. Generating a new idempotency key on each retryβ
The key is created at the moment the HTTP request is built, so every attempt carries a different one.
Why it happens: key generation ends up in the HTTP client rather than in the business logic.
What it costs: idempotency protects nothing. A timeout followed by a retry applies the operation twice.
Instead: generate the key when the business operation starts, persist it, and reuse it for every attempt.
3. Retrying business rejectionsβ
A voucher_redeemed response is treated as a failure and retried with back-off.
Why it happens: error handling branches on the HTTP status alone and never reads the code field.
What it costs: wasted quota, delayed checkouts, and an error that never resolves because the answer will not change.
Instead: branch on the code field. Business rejections are answers β show them and continue. See Reliability.
4. Blocking the sale on a writeβ
The cart confirmation is a synchronous call on the critical path, and the checkout waits for it.
Why it happens: simulation and confirmation are implemented as one flow because they look like one flow.
What it costs: the availability of the sale becomes the availability of the network.
Instead: simulate synchronously β the cashier needs that answer. Confirm through a durable path that does not hold the sale open.
5. No degraded modeβ
There is no defined behaviour for "Loyal Guru does not answer", so the checkout waits for the default HTTP timeout.
Why it happens: the outage scenario is treated as an operations problem rather than a design requirement.
What it costs: an incident on the loyalty platform becomes an incident at the checkouts.
Instead: decide the timeout budget and the fallback behaviour before launch, and test them deliberately.
6. One set of credentials for everythingβ
The same key is used by batch loads, the POS and the e-commerce site, across environments.
Why it happens: it is what the first project phase needed, and nobody revisited it.
What it costs: a nightly batch can exhaust the quota that checkout depends on, and any rotation affects every channel at once.
Instead: separate credentials per environment and per traffic profile, so batch load cannot starve real-time traffic.
7. Using batch to solve a real-time needβ
Data that has to be current at the moment of the sale is loaded on a nightly schedule.
Why it happens: the batch channel already exists and is cheaper to extend than a new real-time flow.
What it costs: decisions taken at the checkout are based on data that can be a day old β and the discrepancy surfaces as a customer complaint, not as an alert.
Instead: map each flow to a channel based on how current the data has to be. Volume belongs in batch; freshness does not.
8. Testing against productionβ
The integration is validated with real customers and real campaigns because the test environment does not have representative data.
Why it happens: setting up test data is deprioritised, and production is the only place where the scenario exists.
What it costs: real balances, real vouchers and real communications are affected by test traffic.
Instead: provision the test environment as part of the setup phase, with the data the test cases actually need. See the Integration checklist.
Related pagesβ
- Integration model β direct and mediated models, and how to split flows
- Reliability β idempotency, degraded mode and error handling
- Flow mapping template β the checklist that catches most of these before build