Skip to content

Integration spaghetti

Aspect Aspect
Typical organization Any company with a CRM, an ERP, an e-commerce platform, a data warehouse and a decade of projects that each added their own connections
Symptoms Hundreds of undocumented connections; changes break distant systems; the same data copied many ways
Root cause Each project integrated directly with whatever it needed, with no shared approach
Usual fix APIs for requests, events for changes, one platform to run them, and owners for every interface
Patterns API-led connectivity, messaging, event-driven
  • Changing a field in the CRM breaks an invoice job nobody remembered existed.
  • There are nightly file transfers, direct database links, web services and spreadsheets, all doing similar things.
  • Nobody can draw the full integration map.
  • Replacing any system is a huge project because of everything wired into it.
  • When data is wrong, it takes days to find which connection changed it.

Connecting two systems directly is the fastest way to finish one project. Repeated over years, the number of connections grows much faster than the number of systems: with n systems, there can be up to n × (n − 1) / 2 pairs. Each connection has its own format, schedule and error handling, and usually no owner once the project ends.

Option When it fits Cost and risk
Document and own what exists Always a first step Low. Makes the problem visible
APIs for requests (API-led connectivity) Systems ask each other for data or actions Medium. Needs API design and versioning discipline
Events for changes (publish and subscribe) Several systems need to know when something changes Medium. Needs a broker and event ownership
Central integration platform or service bus Many legacy protocols to translate Medium to high. Risk of a central team becoming a bottleneck
Leave it Rarely; only for systems about to be retired Grows worse with every new system
  1. Inventory the connections, with owner, data, direction, schedule and failure handling for each. This alone usually turns up dead or duplicated ones.
  2. Agree two default patterns: an API when one system needs an answer now, an event when others need to know something happened.
  3. Wrap each core system once, with a system API or an event publisher, so consumers stop connecting to its database or files.
  4. Move the busiest and most fragile connections first, one at a time, running old and new in parallel until the new one is proven.
  5. Make every interface owned and versioned, with a catalog people can search before building something new.
Two patterns instead of hundreds of connections1. Requests that need an answer now go through APIs behind a gateway. 2. Systems publish events when something changes, such as an order or a customer update. 3. Any system that cares subscribes; the publisher doesn't need to know who.Integration layer Online store CRM ERP API gatewayrequests and answers Event brokerthings that happened Data warehouse Email platform Shipping partner123
Two patterns instead of hundreds of connections Each system connects once, through its API or by publishing and subscribing to events. Every interface is listed with its owner and version in a shared catalog.
  1. Requests that need an answer now go through APIs behind a gateway.
  2. Systems publish events when something changes, such as an order or a customer update.
  3. Any system that cares subscribes; the publisher doesn't need to know who.
  • Events make flows harder to follow. Invest in tracing and an event catalog, or debugging gets harder.
  • A central integration team can become a bottleneck. Provide the platform centrally, but let product teams own their APIs and events.
  • Migration takes years. Prioritize by pain, not by completeness.

The number of direct connections falls each quarter, new integrations reuse existing APIs and events, and incidents caused by an upstream change become rare.

  • LinkedIn replaced point-to-point pipelines with one shared log, Kafka.
  • Uber put a single gateway in front of each group of services.

Written and edited by Abhinav Taduka, enterprise software architect.