Skip to content

Engineering scenario 04

Connecting Disconnected Enterprise Systems

Replacing point-to-point scripts with owned interfaces, reliable delivery and one place to see what actually happened.

Illustrative engineering scenario. It describes how we would approach this class of problem; it is not a completed client engagement, and no client identity, data or result is disclosed.

Business context

The situation behind the request.

Over several years, each department bought the tool that suited its work: finance, sales, warehouse and support. Integration grew around them as a series of scripts written by whoever needed the data first. One feed runs nightly over CSV, another posts webhooks into a middleware configuration nobody reviews, and a third copies records directly between databases.

The business notices the result rather than the cause. A customer address is updated in three places and agrees in one. Month-end closes with a reconciliation spreadsheet. When a sync fails, the first signal is a complaint from a customer or a support agent, not an alert.

The challenge

What has to change, and what cannot.

The organisation needs its systems to agree about customers, orders, inventory and invoices without replacing all of them. That is not a transport problem. It requires deciding which system is the authority for each entity, what the contract between systems means, and what happens when delivery is delayed, duplicated or rejected.

Conventional fixes — another point-to-point connector, a nightly extract, a shared database view — reduce the immediate symptom and increase the number of places that must change together. The estate becomes harder to reason about with every addition, and each new integration inherits the ambiguity of the last.

Why it is difficult

The engineering decisions that matter.

01

Semantics, not transport

Two systems can exchange JSON perfectly and still disagree about whether a cancelled order is closed, whether an address is billing or delivery, and which identifier is stable across mergers. A contract that does not state meaning leaves every consumer to guess.

02

Exactly-once delivery is a fiction

Networks retry, consumers restart and brokers redeliver. The realistic design is at-least-once delivery with idempotent consumers, stable deduplication keys and ordering guarantees scoped to a single entity.

03

Nobody owns the integration

When an interface belongs to no team, failures are discovered by users and fixed by whoever is available. Ownership, lineage and alerting are prerequisites for reliability, not documentation to add later.

Our engineering approach

How we would investigate, design and deliver.

Six stages, each producing something the next stage depends on. The decisions listed are the ones that change the shape of the outcome; they are agreed explicitly rather than absorbed into implementation detail.

  1. 01

    Map systems and ownership

    We record every system, the entities it holds, who produces and consumes each one, and the latency the business actually needs. Duplicate masters are identified before any interface is designed.

    • Declare one system of record per entity and treat everything else as a projection.
    • Separate data that must be real-time from data that can be minutes or hours old.
    • Document the manual reconciliation that currently compensates for missing integration.
  2. 02

    Define contracts and identifiers

    Each interface has a versioned schema, a stated meaning, stable identifiers and a named owner. A schema registry and a published deprecation window prevent silent drift.

    • Model lifecycle events explicitly rather than inferring state from field changes.
    • Use opaque, stable identifiers; never expose an internal primary key as an external contract.
    • Add fields compatibly and remove them only on a scheduled version change.
  3. 03

    Choose the interaction style

    Queries use request/response, state changes publish events, and bulk movement uses batch with explicit checkpoints. Chatty synchronous chains are avoided where a failure would cascade across systems.

    • Publish from a transactional outbox so a database commit and its event cannot diverge.
    • Keep event payloads small and reference large objects rather than embedding them.
    • Avoid direct database-to-database links as an integration mechanism.
  4. 04

    Build the integration layer

    A gateway fronts synchronous interfaces, a broker carries events, and connectors translate between contracts and system APIs. Consumers are idempotent, failures land in a dead-letter queue, and replay is a supported operation.

    • Deduplicate on a business key derived from the producer, not on arrival time.
    • Make retries bounded and observable; endless retry loops hide defects.
    • Treat replay as a routine procedure with a scoped blast radius.
  5. 05

    Reconcile and monitor

    Correlation identifiers follow a business event across systems. Technical health is monitored alongside business-level checks such as record counts, balances and unmatched items, with alerts on lag and queue depth.

    • Alert on stalled consumption and DLQ growth before users notice missing data.
    • Publish a daily reconciliation report as a product, not a spreadsheet.
    • Retain an audit trail of who changed what, through which interface.
  6. 06

    Migrate and decommission

    New interfaces run in parallel with the old ones, results are compared, and consumers move in dependency order. Legacy scripts, credentials and scheduled jobs are removed as each path is retired.

    • Cut over one consumer at a time with a measurable comparison period.
    • Revoke credentials for retired integrations rather than leaving them dormant.
    • Keep the old path available until reconciliation has passed for a full business cycle.

Trade-offs

Alternatives we would consider, and what they cost.

Broker versus direct calls

A broker decouples producers from consumers and absorbs failure, at the cost of another system to operate and a more complex debugging story. Direct calls are simpler to trace and fragile under load. The choice belongs to the interaction, not to a platform standard.

Canonical model versus pairwise mapping

A shared canonical model reduces the number of translations and creates a committee-owned artefact that changes slowly. Pairwise mapping keeps each integration local and multiplies maintenance. Most estates need a small canonical core and deliberate exceptions.

Synchronous consistency versus availability

Distributed transactions across systems are expensive and brittle. Accepting eventual consistency requires the business to tolerate a short delay and the interface to make that delay visible, which is often the harder part of the change.

Architecture considerations

Components, boundaries and the connections that matter.

Reference architecture

Fig. 04 · illustrative

  1. Business systems

    • ERP
    • CRM
    • Warehouse
    • Finance
    REST · versioned schemas
  2. Integration

    • API gateway
    • Schema registry
    • Event broker
    • Outbox publisher
    events · dedupe keys
  3. Consumers

    • Idempotent consumers
    • Projections
    • Reconciliation jobs
    • DLQ & replay
    checks · alerts · replay
  4. Governance

    • Contract versions
    • Correlation tracing
    • Ownership metadata
    • Audit trail
Illustrative reference architecture for this scenario. Boxes show responsibility boundaries rather than a specific product selection.

One integration layer between business systems and their consumers, with ownership metadata and observability as part of the design rather than an afterthought. No system reads another system's database directly.

Transactional outbox

Writing the event in the same transaction as the state change removes the window where a record is committed but its event is lost, which is the most common cause of silent divergence.

Schema registry

Contracts are registered and validated at publication, so an incompatible change fails in the pipeline rather than in a consumer at month-end.

Business-level reconciliation

Technical metrics show that messages moved; reconciliation shows that the numbers agree. Both are required, and the second is what the business trusts.

Technical considerations

  • REST API and webhook design
  • Event-driven architecture
  • Message brokers and NATS / Kafka operations
  • Schema design and contract versioning
  • Idempotent consumers and dead-letter handling
  • Data synchronisation and reconciliation
  • Sagas and distributed workflow patterns
  • End-to-end tracing and integration monitoring

Expected outcomes

What the work is designed to achieve.

These describe the capabilities the solution is designed to leave behind. They are not measured results from a client engagement.

  • A declared authority for each entity, so records stop disagreeing silently.
  • Fewer manual reconciliations and less duplicate data entry.
  • Delivery failures that are visible, retryable and owned.
  • Interfaces that can evolve without coordinated releases across every system.
  • Release cycles that no longer depend on the slowest application in the chain.
  • A record of what changed, when and through which interface.

No performance improvement, cost saving or delivery result is claimed. Metrics are only published when measured on a specific engagement with authorisation.

Related capabilities

Where this work sits in the company.

The scenario draws on one engineering division and is commercialised through a defined offering. Both describe the same capability from different starting points.

Next step

Facing a similar engineering challenge?

Describe the system, the constraint and the outcome you need. We will respond with a technical view of the options, including where we would start and what we would advise against.