Software engineering

Systems integration

Systems that stay in step under load and failure, and report when they do not.

How we do it

Overview

An integration between two systems, such as the CRM and the ERP, is usually built and tested against a sandbox that holds a small set of clean records, and under those conditions it passes its tests. Production is different, because the batch jobs are running, the rate limits apply, and the API tends to time out at quarter-end, which is when finance depends on it most. Orders then get created twice or go missing, and someone spends a week reconciling the two systems by hand.

The successful path through an integration accounts for a small part of the work. Most of the design effort goes into what should happen when a message arrives twice, when one system is down for maintenance, when a record is updated in both places within the same minute, or when a vendor changes a field without notice. These cases are rarely specified, because each system team regards its own side as finished and the behavior between the two systems belongs to neither of them.

We design connections for production volumes and for the failures that production brings. Each flow has a stated owner for every field, a defined behavior for each kind of failure and a way to replay whatever was missed. The monitoring reports which system is failing and why, in terms that an operations person can act on. The runbooks for those failures are written and rehearsed before go-live, so that the first incident is handled from a procedure the team has already practiced.

Challenges we address

The failures we are usually called in to fix
  1. Fine in the sandbox, failing at quarter-end

    The integration was tested with sample data on a quiet system, but in production it shares an API quota with the nightly batch jobs and with every other integration. At peak times its calls are throttled and timeouts accumulate, and the design does not say what should happen next.

  2. Retries that create duplicates

    A request times out after the target system has already processed it, the integration retries, and the customer ends up with two orders or two payments. Without idempotency, every network fault forces a choice between losing a record and creating it twice.

  3. Failures that go unreported

    A message is rejected because a field is missing, and the rejection is written to a log that is not monitored. The first sign of trouble is a customer asking why an order never shipped, by which time the trail is weeks old and spread across three systems.

  4. Two systems own the same field

    The CRM and the ERP each hold the customer address and both allow it to be edited, so the syncs overwrite one another depending on timing. Because it was never decided which system owns which field, the address in use is whichever was written last.

  5. Point-to-point links without a map

    Each project added a direct link between two systems, some as scripts on a server and others inside a vendor tool. A change to the product master now touches a dozen undocumented flows, and there is no complete list of them anywhere.

Our approach

How the work runs, in order
  1. Map flows and owners

    For each piece of data that crosses a system boundary we record where it is created, which system is the authority for each field, who consumes it and how fresh it needs to be. Where two parties disagree about ownership, we settle it with the business at this stage, because the same conflict found in production shows up as overwritten data.

  2. Measure the real limits

    We collect the constraints that apply in production, which are the API quotas and who else draws on them, the batch windows, payload sizes, peak volumes at month-end and quarter-end, and the maintenance schedules. The design is then sized against those figures and against what each vendor's interface officially supports.

  3. Design every failure path

    For each flow we write down what happens on a timeout, a rejection, a duplicate, an out-of-order message and a full outage on either side. Retries back off and carry idempotency keys, and any message that cannot be processed goes to a queue that a person reviews, with the reason for the failure attached.

  4. Test with production-shaped load

    Before go-live we run the integration against realistic volumes with the batch jobs active, and we deliberately cause failures, for instance by cutting a connection in the middle of a write, sending the same event twice and exhausting the quota. We count the test as passed when the systems reconcile afterwards without manual repair.

  5. Hand over monitoring and runbooks

    Your operations team receives a dashboard for each flow, alerts that name the failing system and the likely cause, a replay tool and runbooks for the failures we rehearsed. Before we leave, they carry out one recovery themselves.

Technical capabilities

What we design, build and operate
  • API and webhook integration

    We connect SaaS and enterprise systems through their supported APIs, handling pagination, using bulk endpoints where the volume calls for them, and checking signatures on inbound webhooks.

  • Event-driven integration

    Business events are published once to a broker and consumed by whichever systems need them, with schemas, ordering rules and retention defined for each event type.

  • Idempotency and retry design

    Idempotency keys, deduplication stores and exponential backoff with jitter, which together prevent a repeated delivery from becoming a repeated transaction in the target system.

  • Rate limit and quota management

    Client-side throttling, request batching and scheduling around batch windows, so that the integrations share a vendor's quota in a planned way and do not compete for it.

  • Change data capture

    For legacy systems that offer no usable interface of their own, we read changes from the database's transaction log and publish them as events.

  • Legacy and file-based interfaces

    Scheduled files over SFTP, EDI documents, message queues and database links, each wrapped with validation and acknowledgments, and with an alert for a file that fails to arrive.

  • Reconciliation jobs

    Scheduled comparisons between systems report missing, duplicated and mismatched records, which means drift is detected by a job before a customer has reason to report it.

  • Flow-level monitoring

    A correlation identifier is carried through every hop, each flow has its own traces and metrics, and alerts are worded to say which system failed and what to check.

Where it applies

Business applications
  • Order to cash across CRM and ERP

    Quotes, orders, invoices and payments pass between the sales and finance systems without being rekeyed, and the flow keeps working through the quarter-end peak.

  • Customer and product master data

    Each customer or product has one authoritative record, which is distributed to the systems that need it under ownership rules defined field by field.

  • Connecting SaaS to core systems

    HR, service desk, e-commerce and marketing tools exchange data with the ERP and the finance system, and stay within the limits each vendor publishes.

  • Wrapping a legacy system

    A mainframe or an aging packaged application is given an event stream and an API, which means new systems have no need to query its database directly.

  • Connecting systems after a merger

    The systems of two organizations are made to exchange orders, customers and stock while the longer decision about which of them to keep is still open.

  • Live data for AI features

    Read and write connections that let an assistant or agent work with current records in the systems people already use, with the same permissions enforced.

In practice

Two situations this service is built for, and what we would do in each.

Cross-industry

An order integration that fails every quarter-end

The situation
A company's sales team closes a large part of its business in the last days of each quarter. The integration that turns closed deals in the CRM into orders in the ERP was built and tested on a quiet system, so at quarter-end it runs into the API quota and its calls time out. Finance then re-enters orders by hand to make the cut-off.
What we would build
We would first measure the peak, meaning the calls per hour, the quota shared with other jobs and the ERP's response times under batch load. The flow would move from synchronous calls to a queue with throttled workers, with idempotency keys on order creation and backoff as the quota runs low. A reconciliation job would compare closed deals with created orders every hour, and the design would be tested against a replay of the previous quarter-end's volume.
What it is designed to change
At quarter-end the queue would take longer to clear, but orders would no longer fail. We would count the orders that need manual entry or correction during the peak, and track the time between a deal closing and its order existing in the ERP.
Energy and utilities

Meter readings, billing and field service kept in step

The situation
A utility's meter data system, billing platform and field service tool are connected by nightly file transfers that were written over many years. When a file is late or malformed, bills go out on estimated readings and crews are sent to jobs that have already been closed, and the operations team usually learns about the failure from complaints.
What we would build
We would list every transfer with its owner, schedule and consumers, and add validation and acknowledgments to each, so that a missing or malformed file raises an alert within the hour. Flows where a day's delay causes real harm, such as work order status, would move to events. Each flow would get a dashboard, a replay procedure and a runbook, and the operations team would rehearse a failed transfer before go-live.
What it is designed to change
A failed transfer would be known about the same morning, with the affected records listed. The figures to follow are the number of bills issued on stale readings and the number of crew visits to closed jobs that can be traced to an integration fault.

Technologies

We work in your stack and recommend on fit. We resell nothing.
Messaging and streaming
Apache Kafka · RabbitMQ · Azure Service Bus · Amazon SQS and SNS · Google Cloud Pub/Sub · NATS
Integration platforms
Apache Camel · Boomi · Workato · Azure Logic Apps · SAP Integration Suite
Systems commonly connected
SAP · Oracle · Microsoft Dynamics 365 · NetSuite · Workday · ServiceNow
Change data capture and files
Debezium · AWS Database Migration Service · Oracle GoldenGate · SFTP · EDI (X12, EDIFACT)
Monitoring
OpenTelemetry · Prometheus · Grafana · Datadog · Elastic

Business outcomes

What changes for the organization
  • Peak periods handled within the limits

    At month-end and quarter-end the integration queues and throttles its calls to stay within the limits, and the work completes without people having to re-enter records.

  • Faults found by monitoring first

    A rejected or missing record raises an alert on the day it happens, and the alert names both the flow and the system involved.

  • One authoritative system per field

    Each piece of shared data has a single authoritative system, which ends the disputes between sales, finance and operations over whose number is correct.

  • New systems connect to existing events

    A new application subscribes to business events that are already being published, so there is no need to commission one more point-to-point link into the ERP.

What you hold at the end

  • A flow inventory with an owner for every field
  • Integration services with idempotent, retry-safe writes
  • Event schemas and interface contracts
  • Load and failure test results at peak volume
  • Dashboards and alerts per flow that name the failing system
  • Replay and reconciliation tools
  • A runbook for each rehearsed failure

Questions buyers ask

It depends on how many flows there are, how complex they are and who will maintain them. A platform suits a large number of simple, similar flows and a team with few developers, and it comes with connectors and monitoring included. Code is the better choice for high volumes, complex logic and teams that already use tests and version control every day. Many organizations need both, so we work with the platform you have and base our recommendation on your team's skills and the total cost of running it.

In most cases the test left out conditions that production has, such as full volumes, other integrations drawing on the same quota, batch jobs holding locks and records with bad data in them. A sandbox can also have different limits from the production system. We test against production-shaped data and load while the scheduled jobs are running, and we inject failures deliberately. We consider an integration ready when it recovers from those failures without manual repair.

The answer depends on what a delay costs. If a customer or a colleague acts on the data within minutes, as they do with stock levels or order status, events are the right choice. Where the consumer is a monthly report, a nightly batch is simpler, cheaper and easier to reconcile, and making everything real-time by default is an expensive habit. We set a freshness requirement for each flow with the business and then build the simplest mechanism that meets it.

We make every write safe to repeat. Each request carries a unique key derived from the business event, and the receiving side records the keys it has already processed, so that a retry with a known key returns the original result and does not create a second record. Where the target system has no such feature, we keep the deduplication record ourselves and check it before writing, and a reconciliation job verifies the outcome afterwards.

We assume it will happen and design for it. Each external system sits behind an adapter, which confines a vendor change to one place in the code. Contract checks run against the vendor's interface on a schedule and flag a changed or deprecated field before it breaks a flow. The runbook also records the interface version each flow depends on and the date by which the vendor requires an upgrade.

Discuss systems integration with the people who would do the work.

Tell us what you are trying to do and where it is stuck. A principal reads every message and replies within one working day.

How we engage

Start a conversation.

A short paragraph is enough. A principal reads every message and replies within one working day.

Or email hello@farside.works. We use what you send only to reply. Privacy