Skip to main content
Published in Engineering Insights

Legacy System Integration: Connecting Old and New Software

Legacy System Integration: Connecting Old and New Software
Table of contents
  1. What is legacy system integration?
  2. Why connect legacy systems with modern apps?
  3. Four ways to integrate legacy systems
  4. How do you pick an approach per connection?
  5. Integration platform or custom connectors?
  6. How to keep old data models out of new apps
  7. Data mapping: the step that decides success
  8. What breaks after go-live?
  9. Can integration lead to replacing the system?
  10. How The Gnar Company approaches integration
  11. A checklist before you start

Legacy system integration is the work of connecting an old core system to new software so they can exchange data, requests or both while the old system keeps running. This post is for an operations or IT leader whose old core system has to keep running while new software connects to it: a customer portal, a CRM, a warehouse app or an AI tool. It covers the four ways to make the connection, how to choose one for each link, data mapping and what breaks after go-live. It matters because the connection is where the risk sits. A bad link can produce wrong numbers and duplicate records that nobody notices until a customer does.

The Gnar Company connects your product to your CRM, ERP and payment tools. Senior US-based engineers build each link. The page for that work is Gnar Integrate, and the guidance below works with any team or tool.

What is legacy system integration?#

Legacy system integration connects a system you are keeping to new software so they can exchange data, requests or both, while the old system stays in use. Some links only read from the old system. Others ask it to act. Legacy system modernization is a different job, because it changes or replaces the old system itself. Integration can be one part of a modernization, but on its own it keeps the old system running. Before you start, identify what depends on the old system, because that list shapes the integration process.

A distributor runs orders in an ERP that is fifteen years old. Sales wants a customer portal where buyers see order status. The portal holds no orders. It asks the ERP for them, shows them, and sends new orders back. That two way path is the integration.

A project like that has four parts:

  • The old system, which holds the records and the business logic.
  • The new software, which needs those records and sometimes needs to change them.
  • The connection, which moves data and requests between them.
  • The data mapping, which says what each field means on each side.

Integrating legacy systems is rarely one connection. A company with an ERP, a CRM and a payment tool may need several connections, each with its own owner and its own ways to fail.

Why connect legacy systems with modern apps?#

Old systems stay because they hold the records the business runs on, and new tools need those records to be useful. Many also have limitations, and some struggle to keep up as data volumes and user demands grow. The order system knows what was sold. The ERP knows what it cost. The policy system knows who is covered. A new application that cannot see that data has little to show.

Enterprise Integration Patterns, the book by Gregor Hohpe and Bobby Woolf, says it plainly: some applications may need to be integrated even though they were not designed for integration and cannot be changed. That fits the old system this post is about. The company keeps it because it runs the business, and it can be hard to change.

Three examples:

  • A customer portal needs order status, invoices and ship dates from the ERP.
  • A CRM needs account and pricing data from the system that bills the customer.
  • An AI tool needs clean history from the old system to answer questions about it.

Gnar's page on ERP and order management modernization states the rule for a new app that changes records the ERP still owns: every change your team makes in the new apps writes back to the ERP, so accounting and every other team work from the same records. If you are still weighing whether to keep the old system at all, read modernize in place or rebuild a legacy system first.

Four ways to integrate legacy systems#

Enterprise Integration Patterns sums up the options as four main integration styles: File Transfer, Shared Database, Remote Procedure Invocation and Messaging. Each moves data in a different way.

Style How it works Fits when Watch out for
File Transfer One system writes a file, another reads it on a schedule The old system only exports files, and a daily or hourly update is enough Data is as old as the last file. A changed layout breaks the reader
Shared Database Both systems read and write the same tables Both use the same data store and you control both Tight coupling. A schema change can break the other system if it depends on the changed tables or fields
Remote Procedure Invocation One system calls the other and waits for the answer The new app needs an answer now, such as a price If the old system is down, the new app gets no answer on that call. If the new app is down, the old system keeps running
Messaging One system sends a message to a queue and the other picks it up Events matter, such as order placed, and neither side should wait You need a queue, retry rules and a plan for duplicates

Messaging is the event-driven option, and it can reduce dependencies between legacy and modern systems, because neither side calls the other directly. Whatever the style, one custom link per pair of systems gets complex to maintain as the number of systems grows.

Change data capture can feed one of these styles, such as messaging, straight from the old database. Debezium, an open source tool, works this way. Its MySQL connector reads the binlog, and its PostgreSQL connector reads a logical replication stream. Debezium's documentation says it is most commonly deployed through Apache Kafka Connect. The old application does not have to change. It suits a new tool that only needs to see what the old database records. It does not suit one that must send instructions back.

How do you pick an approach per connection?#

Pick an approach for each connection separately, fitted to the business's specific needs. Enterprise Integration Patterns says to choose the best style for a particular integration opportunity. Two applications can even use more than one style at once.

The same source lists criteria that drive the choice, including data timeliness, data or functionality, application coupling and data format. In questions an operator can answer in a meeting:

Question If the answer is Lean toward
How fresh must the data be? Overnight is fine File Transfer or a scheduled batch
How fresh must the data be? Within seconds of a change Messaging or change data capture
Data or an action? Only read data Change data capture or a read API
Data or an action? Make the old system do something An API call when the caller needs an answer now; messaging when the action can wait
Can the old system change? No, or only after a long wait A layer outside it: files, capture or an adapter
Can the old system change? Yes, and you own the code A direct API or messaging
Who owns it after launch? Nobody yet Name an owner before you build anything

Work through the table once per connection and write the answers down. A portal's order lookup may get a direct call, because the buyer is waiting. The nightly sales report may get a file. The warehouse feed may get messages. Choosing per connection helps organizations achieve reliable data exchange without building more than they need. The simpler style that meets the need usually wins, because someone has to run it for years.

Integration platform or custom connectors?#

Choose an integration platform when it already supports your systems and the operations you need, and custom connectors when it does not or when your business logic is unusual. An integration platform is a hosted or installed product with ready-made connectors, mapping screens and monitoring tools. Custom connectors are code written for your exact systems. A platform starts with less code. Custom code gives control over odd protocols and unusual data.

A platform, which some vendors call iPaaS, fits many connections to well known systems when staff can maintain the mapping, and these services can convert data between legacy systems and modern platforms. Middleware is software that sits between systems and passes data along, and a platform or custom code can both play that role when many systems share the same traffic. An enterprise service bus, or ESB, is one kind of middleware: a common communication bus that each system plugs into, in place of a direct link to every other system. Custom connectors fit an unusual protocol, specific business logic, or one critical link.

Count the costs on both sides. Enterprise Integration Patterns warns that these special tools can be expensive, can lead to vendor lock-in, and increase the burden on developers. Custom code costs too: someone must write it, document it and keep it running. Platform choices should also account for long-term maintenance and vendor constraints.

Gnar's integration work is tool-agnostic. Integration work is quoted per engagement, so the answer for your company comes out of an assessment.

How to keep old data models out of new apps#

Put a translation layer between the old system and the new applications when the old model is messy or several new apps would each have to copy it, so the new apps work with clean data structures. When one new app meets a tidy old interface, connect directly. Microsoft's Azure Architecture Center calls this the Anti-Corruption Layer pattern: a facade or adapter layer between subsystems that do not share the same semantics, translating requests from one to the other. With it in place, each new app works with the layer's clean model instead of learning the old one.

Microsoft notes that legacy systems often have quality problems like convoluted data schemas or obsolete APIs. Those problems make them harder to connect to other systems. Say the old system stores customer status as a two letter code only three people understand. Without a layer, every new app must learn that code. With one, the layer turns it into a plain word once.

Microsoft also names the costs. The layer adds latency to calls between the two systems, and it adds an extra service that you must manage and maintain. Pay for that latency and extra service when the old model is messy and several new apps would otherwise each have to copy it. Skip them for one small link.

  • One new app and a tidy old interface: connect directly.
  • Several new apps or a messy old model: build the layer.
  • A later replacement planned: consider the layer, so the new apps depend less on the old system's data model. Replacing the old system may still need changes elsewhere.

Data mapping: the step that decides success#

Data mapping is the written list of every field that crosses between two systems, with its owner, format and rules. Do it before any code. It settles what each field means on each side, and it turns hidden disagreements into decisions someone can make before launch.

Take ship date. In the old system it may mean the day the order was released to the warehouse. In the portal it may mean the day the carrier picked it up. A buyer sees a date two days off, and nobody wrote a bug. The two systems meant different things.

For each field that crosses, write down:

  • Its name and meaning in the old system, and in the new one.
  • The data formats on each side, such as date style and text length.
  • Which system owns the value and which may change it.
  • The rules for blanks, defaults and invalid values.
  • Who can answer questions about the field.

Walk real records through the map. Pick ten orders from last month, including a strange one, and check that the map handles all ten. If accounting and operations disagree about a field, the map found a real problem before launch. Settling it also keeps reports and insights consistent across integrated systems later.

What breaks after go-live?#

Plan for upstream changes, outages, lost access and duplicate delivery after go-live. Upstream changes are the ones that come from inside the systems you connect: a field is renamed, a new status appears, a file layout shifts or a vendor updates an API. Enterprise Integration Patterns explains why: tightly coupled applications make numerous assumptions about how the other applications work, and when those assumptions break, the integration breaks. If the old system has few automated tests, put the effort into catching breakage early.

Every upstream field change becomes a support ticket and somebody's afternoon. Plan for it before launch:

  • Name one owner for each connection, and a backup.
  • Set up monitoring tools that alert when a link stops or a record fails, so a person hears before a customer does.
  • Log every failed record with enough detail to replay it.
  • Agree how the team that owns the old system announces changes to fields, files and interfaces.
  • Retest each connection after any change on either side.
  • Keep the data map current.

Security and compliance belong on the list too. Each connection moves data or requests across a system boundary, so decide which users and services may use it, what they may do and how their access is logged, because weak controls can expose security vulnerabilities in the old system. Make sure the audit trail covers the new path, including who can access data through it.

Can integration lead to replacing the system?#

Yes, integration can be the first step toward replacing a legacy system later. Martin Fowler describes the strangler fig approach: a gradual modernization that begins with small additions built on top of, yet separate to, the legacy code base. Fowler also notes that replacing a serious IT system takes a long time, and that the approach builds transitional architecture to allow the new and legacy system to coexist.

Some of the connections you build can become that transitional architecture, if you design them around boundaries that will still matter after the old system goes. A connector whose only job is to reach the old system ends when the old system does. Plan which is which before you build.

  1. Connect the new tool to the old system and prove the data is right.
  2. Move one capability, such as order status, into the new system.
  3. Let the old system keep the processes it still does well.
  4. Repeat, and retire old pieces only when nothing depends on them.

Plan each step so the business keeps operating while the two systems coexist. For a longer look, read ERP modernization without a big bang cutover. If your old system is NetSuite, see custom software on top of NetSuite.

How The Gnar Company approaches integration#

The Gnar Company works in three steps on its Integrate page: an integration assessment, custom connection development, and deployment and support. Gnar analyzes your current systems to understand where the data resides and how it flows. Then it builds each link, tailored to your needs, and it provides documentation and support. Integration work is quoted per engagement. We build alongside the ERP you are keeping, not on top of its grave.

If your software is not the product, the system you are keeping may be an ERP, an order system, a policy system or a homegrown database, and a portal, CRM or warehouse app has to exchange data with it. Three of Gnar's integration projects show the kind of work involved:

  • WHOOP had a backlog of third-party integrations. Gnar built a sample test app and documentation so partners could test their own integrations, and ran onboarding calls with their developers. WHOOP's core engineers stayed on the product during hypergrowth. Read the WHOOP case study.
  • LevelUp, now part of Grubhub, ran manual scripts to get menu data from online ordering partners. Gnar built an app that pulled menus and restaurant details automatically. Menus became easier to update and partner onboarding improved. Read the Grubhub case study.
  • Salsify needed Shopify and BigCommerce integrations. Gnar built them working inside Salsify's team.

WHOOP, LevelUp and Salsify were product integration projects. A distributor's ERP that stays in place is a different scope. If you are deciding what to connect first, the integration assessment on the Gnar Integrate page is where that work starts.

A checklist before you start#

An assessment before you build should answer every decision on the first list below, and the second list is the work to finish before launch. Also check whether current infrastructure can handle the extra data traffic.

Decisions the assessment answers:

  • List every system that must connect, and who owns each one.
  • List every new application and what it needs from the old system.
  • For each connection, note whether it moves data or actions, and how fresh the data must be.
  • Check what the old system offers: an API, file export, database access or nothing, and identify dependencies and integration challenges before choosing tools.
  • Choose a style for each connection.
  • Decide on a platform, middleware, custom code or a mix, and estimate the cost over the connection's expected life, including maintenance.
  • Decide whether a translation layer is needed.
  • Decide whether this is permanent or the first step toward replacing the old system.

Work to finish before launch:

  • Write the data map and walk ten real records through it.
  • Name an owner and a backup for every connection.
  • Set up monitoring and alerts.
  • Check security and compliance for each new path.

If key items on the first list have no answer yet, start with an assessment of where your data resides and how it flows. That is what Gnar Integrate starts with.

Frequently asked questions

What is legacy system integration?

Legacy system integration is the work of connecting an older core system, such as an ERP or an order system, to newer software so they can exchange data, requests or both. The old system keeps running, so legacy and modern systems work together without shutting the old one down. Integration differs from modernization, which changes or replaces the old system itself.

What are the main ways to integrate a legacy system?

Enterprise Integration Patterns names four styles: File Transfer, Shared Database, Remote Procedure Invocation and Messaging. Teams also read changes straight from a database with change data capture when they need fresher data without changing the old system. A company may use more than one style, because each connection has different needs for freshness and risk.

Do I need an integration platform to connect old and new systems?

Not always. A platform helps when you have many connections and standard protocols. Custom connectors fit odd protocols or one critical link. Enterprise Integration Patterns warns that integration tools can be expensive and can lead to vendor lock-in, so count license cost before you commit.

Why does data mapping matter in a legacy integration?

Data mapping lists every field that crosses between systems, with its owner, format and rules. Without it, two systems can hold different meanings for the same word, such as a customer or a ship date. Mapping before coding finds those gaps while they are cheap to fix and keeps shared data definitions consistent across integrated systems.

What breaks after a legacy integration goes live?

Upstream changes can break a connection, and so can outages and lost access. A renamed field, a new status value or a changed file layout can stop a link without warning. Tightly coupled systems make many assumptions about each other, so a change can break the connection when it violates an assumption the other side depends on. Monitoring and a named owner catch these early.

Can legacy system integration lead to replacing the old system?

Yes. Martin Fowler describes the strangler fig approach, where new software starts as small additions built on top of, yet separate to, the legacy code base, and the old and new systems coexist through transitional architecture. Some connections can support a later replacement if they are designed around boundaries that still matter after the old system is retired.

What does The Gnar Company do for legacy system integration?

The Gnar Company connects your product to your CRM, ERP and payment tools. Senior US-based engineers build each link, and Gnar provides documentation and support. The work starts with an integration assessment of where your data lives and how it flows, then custom connection development, then deployment and support. Integration work is quoted per engagement.

Where to go from here

  • Your US company does over $10M a year in revenue, and its order system is holding you back.

    Talk to Pete Whiting
  • You want AI to save your company money. With Compass, if we don't find at least $350,000 a year in savings, you don't pay.

    See how Compass works
  • Everyone else: get our newest posts by email.

    Get the newsletter

Stay In The Loop

Never miss an update. Get the latest blogs, webinars, and expert insights straight to your inbox from The Gnar.