Every integration is a promise to keep two systems in agreement, forever, while both of them change. Done carelessly, integrations accumulate into a tangle where a change in one system breaks three others and nobody is quite sure why. Done deliberately, they quietly remove manual work and keep data consistent. The difference is in a few architectural choices made early.
Decide the direction of truth
The first question in any integration is which system owns each piece of data. When two systems can both edit the same field, you have signed up for conflict resolution, and conflict resolution is where integrations go to become nightmares. Naming one system as the source of truth for each field, and letting the others treat it as read-only, removes an entire class of bugs.
Where data genuinely flows both ways, make the boundaries explicit: this system owns the customer record, that one owns the billing status, and each syncs only its own fields outward. Drawing that line clearly at design time is far cheaper than untangling a two-way sync that has drifted out of agreement in production.
Isolate each integration behind its own boundary
A common failure is letting a third-party system’s data model leak into the core of your application. When the shape of an external API spreads through your codebase, every change on their side ripples through yours. Wrapping each integration behind a small adapter that translates their model into yours contains that blast radius.
- One adapter per external system, translating their model to your own.
- Your core code speaks your own data model, never the vendor’s.
- Retries, timeouts, and error handling live in the adapter, not scattered around.
- A vendor change or replacement touches one adapter, not the whole codebase.
Expect failure and make it recoverable
External systems go down, rate-limit you, and return unexpected data. An integration that assumes the happy path will fail loudly and often. We design for failure from the start: queue outbound work so a downstream outage delays rather than drops it, make operations idempotent so a retry cannot double-charge or duplicate a record, and log enough context to see what happened.
Recoverability matters as much as correctness. When a sync fails, there should be a clear way to see what did not go through and to replay it once the other side recovers. An integration that cannot be inspected and replayed becomes a source of silent data drift, which is the most expensive kind of bug because it is discovered late.
How we applied this on an EV charging platform
Data ownership and safe retries were the two decisions that mattered most in the OCPP Management Platform we are building. Chargers talk to it over OCPP 1.6J or 2.0.1, and every charging session is priced once and written to a ledger row keyed uniquely by company and transaction. That one unique key is what stops a retried StopTransaction message from billing a driver twice, and it means editing a tariff today cannot restate last quarter.
The same two questions, which system owns this data and what happens when a message arrives twice, are where every systems integration project we take on begins.
Integrations stay simple when each has a clear owner for its data, a boundary that contains external models, and a design that treats failure as normal. Those three choices keep a growing set of integrations from turning into a fragile web, and they are far easier to put in place at the start than to retrofit later.


