The happy path is the easy part

Moving a customer name from one system to another is straightforward when both services are available and every field is correct. The practical work begins when a request times out, a product code changes or the same event arrives twice.

A reliable integration needs a policy for each of those situations. Ask for an explanation in terms of the business record, not just the API.

Name the source of truth

Decide which system owns each field. Your CRM may own the customer contact while your accounting system owns the billing status. If both can edit the same value, define which update wins and how a conflict is surfaced.

Assign stable identifiers. Matching records by a person’s name or a product description can merge unrelated records or create duplicates.

Make failures recoverable

Retries help with temporary failures, but only when repeating an action is safe. A retry must not create a second order or send the same customer notification again. That usually requires an idempotency key or a reliable record of completed work.

  • What is retried, and for how long?
  • How does the system detect an action that already completed?
  • Who gets an alert when the retries stop?
  • Can a person replay or correct one failed record?

Keep access proportional to the job

Use a dedicated service account with only the permissions the integration needs. A workflow that reads stock availability should not be able to delete products or change supplier bank details. Store credentials outside source code and make rotation part of the handover.

Avoid placing entire customer records into diagnostic logs. Often an event ID, a record ID and an error category are enough to investigate a failed handoff. Agree who can inspect those logs and how long they should be retained.

Budget for change

APIs, permissions and vendor plans change. Credentials expire. Agree who maintains the integration and where the documentation lives. Monitoring should distinguish “nothing to sync” from “the connection stopped working.”

Before launch, test a sample of correct records alongside duplicates, missing values and a simulated outage. Keep a reconciliation report so the business can compare what left one system with what arrived in the other.

← All field notesDiscuss your project