What is middleware? The layer between your systems, and when you need one

By Sina Esfahani, OmniTechs · Published 30 November 2026

Middleware is software that sits between your applications so they can exchange data. IBM defines it as software that enables communication or connectivity between applications. Microsoft calls it a bridge between applications, databases and operating systems. In practice it takes a message from one system, checks it, converts it into the format the other system expects and passes it on. Some types also hold messages until the receiver is ready.

For a business with a webshop, an accounting package, a CRM and a stock system, the real question is simple: connect each pair of systems directly, or route everything through one layer in the middle? The answer depends less on how many systems you have than on how the data flows between them, and how often those systems change.

Developers also use the word for something smaller. In web frameworks such as Express or ASP.NET Core, middleware is a function that handles each web request inside one application. This article is about middleware between systems.

Your first action needs only a sheet of paper: write every data flow down as "from → to: what, how often". Then note which system appears in most of them.

Decide in this order:

  1. List every flow with source, destination, data and frequency, for example webshop → accounting: paid orders, within minutes.

  2. Count, for each system, how many other systems it exchanges data with.

  3. Every flow runs through one central system, such as the webshop? Direct integrations are usually the least work.

  4. Another system is also linked to two or more systems, or you expect to replace one? A central layer starts to pay off at the next change.

  5. Standard cloud apps with ready-made connectors? Try an integration platform before anyone writes code.

  6. A message must arrive even when the receiver is down, or reach several systems at once? Add a queue (a message broker).

  7. Before anything is built, agree who sees a failed run and who fixes it.

What middleware does

Whatever the product, the work comes down to a handful of jobs. Microsoft describes the same sequence for one request: receive it, check security and validity, transform it, route it, return the response.

The jobs of middleware

Our summary of the functions Microsoft and IBM describe in their middleware explainers, read 30 November 2026.
JobWhat happensExample (hypothetical)
ReceiveAccepts a message or API call from a systemThe webshop reports a paid order
CheckVerifies who is calling and whether the data is completeAn order without a VAT rate is refused
TranslateConverts fields and formats into what the receiver expectsThe webshop's order total becomes an amount and VAT lines in accounting
RouteDecides which system or systems receive the messageThe order goes to accounting and to shipping
RecordLogs each result so failures are visibleA run that failed at 02:00 is on the list in the morning

Middleware or API? An API is the agreed entry point of one system. Middleware is the software that calls those entry points, translates between them and routes the result. An API gateway is middleware placed in front of APIs, and Microsoft gives it as a common example. What an API integration is, and how you get an API key, is explained in what an API integration is. How endpoints, methods and status codes work is in what a REST API is.

What is Middleware? (IBM Technology)

The types of middleware you will meet

IBM lists more than ten types. Five matter for business integrations; the rest live inside software and are rarely a buying decision.

Types of middleware

Types and functions from IBM (middleware, ESB, iPaaS), Microsoft Learn (API gateway overview, updated 2026) and the RabbitMQ documentation, read 30 November 2026. Grouping workflow tools with iPaaS is our reading of IBM's definition.
TypeWhat it doesWhere you meet it
Message broker, such as RabbitMQAccepts messages and holds them in a queue until the receiver collects themOrders that must not get lost; one event that several systems need
Event streaming, such as Apache KafkaStores a stream of events so several applications can read itLarge event volumes, real-time data
API gateway, such as Azure API ManagementOne front door for APIs: routes calls, checks keys and tokens, enforces rate limits, can transform, cache and logA company offering APIs to partners or to its own apps
Integration platform (iPaaS)Cloud tools with ready-made connectors, data mapping and workflowsLinking standard cloud apps with little code; workflow tools such as n8n, Zapier and Make work this way
Enterprise service bus (ESB)A central component that routes messages, transforms data and converts protocolsLarge organisations with a service-oriented architecture
Other: database, remote procedure call and platform middlewareDatabase access, calling functions on another system, application and web serversInside software, rarely chosen separately

The ESB deserves a word, because suppliers still propose it. IBM calls it the most common integration middleware until about a decade ago. Its weakness was central control: every integration ran through one component and one team. IBM notes the ESB came to be seen as a bottleneck, with application teams waiting in line for their integrations. Lewis and Fowler (2014) describe the opposite preference in microservices: smart endpoints and dumb pipes, with the logic in the services and simple transport between them.

For a small company, an ESB is rarely the right size. If one is proposed, ask why an integration platform or a few direct integrations would not do. How such architecture choices affect cost and change is explained in software architecture explained for clients.

Direct integrations, a platform or your own middleware layer?

Three ways to connect your systems

Our comparison, based on IBM (iPaaS, ESB), Microsoft (middleware) and Hohpe and Woolf (Message Broker and Canonical Data Model patterns), read 30 November 2026.
CriterionDirect (point-to-point)Integration platformOwn middleware layer
How it worksEach pair of systems gets its own connectionYou configure flows with the platform's connectorsA broker, gateway or custom service that you or a supplier run
FitsFew flows, one central system, stable softwareStandard apps with good connectors, moderate volumesMany flows, your own data rules, guaranteed delivery, systems without a connector
Adding a systemA new connection to every system it talks toA connector plus flows, if a connector existsOne new adapter plus routes
Replacing a systemRebuild every connection that touches itSwap the connector, then check every flowRewrite one adapter
Seeing failuresPer connection, only if someone built itThe platform's run historyOnly what you build, so plan monitoring
Main riskA web of tightly coupled linksPrice per run or task, connector limits, lock-inA central component you must host, maintain and keep fast

IBM describes point-to-point integration as connectors built and maintained by hand for each link. Every new service needs new connectors, and the applications become tightly coupled. Middleware moves that work to the centre: Microsoft notes that each application connects to the hub only once. The price is an extra component that everything depends on. Hohpe and Woolf warn that routing all messages through one broker can make it a serious bottleneck.

An integration platform is middleware you rent. You avoid hosting it, but you pay per run or per task and work within its connectors. How n8n, Zapier and Make count and charge is compared in what n8n is.

The connection arithmetic

If n systems must all exchange data with each other, direct integration needs n × (n − 1) ÷ 2 connections: one per pair. Each pair usually needs a translation in each direction, so n × (n − 1) translations. With middleware and one shared data format, each system needs one translation in and one out: 2 × n.

Connections and translations when every system talks to every other

Calculated as n × (n − 1) ÷ 2, n × (n − 1) and 2 × n. The rows for 2, 3 and 6 systems match the counts in Hohpe and Woolf's Canonical Data Model pattern.
SystemsDirect connectionsTranslations, directTranslations via middleware
2124
3366
46128
5102010
6153012
10459020

Two conclusions follow. For two systems, middleware is extra work: four translations instead of two. From four systems that all talk to each other, the direct web grows faster than the hub. But this table is the worst case. Few businesses connect everything to everything, so count your real flows, as the example below does.

Worked example: a webshop with five systems (hypothetical)

A shop sells through its own website and uses an accounting package, a CRM, a stock system and a shipping platform. The flows:

  1. Webshop → accounting: paid orders.

  2. Webshop → shipping: shipments.

  3. Shipping → webshop: tracking codes.

  4. Webshop → CRM: customer details.

  5. Stock → webshop: stock levels.

  6. Webshop → stock: units sold.

That is six flows over four pairs, and every pair includes the webshop. The webshop is already the hub. Direct, you need four connections. Through middleware you would need five adapters (one per system), six routes and one more component to host. Here, direct integrations win.

Then the shop starts selling on a marketplace. Marketplace orders must reach accounting and shipping, tracking codes must go back, and stock must stay in step in both directions. That adds five flows over three new pairs.

The same shop, direct or via middleware (hypothetical)

Hypothetical shop. A connection is the code between one pair of systems; an adapter is the code between one system and the middleware; a route is a configured flow inside the middleware.
SituationDirect integrationsVia middleware
Webshop only: 5 systems, 6 flows4 connections5 adapters, 6 routes
Plus a marketplace: 6 systems, 11 flows7 connections6 adapters, 11 routes
Then the accounting package is replacedRebuild 2 connectionsRewrite 1 adapter
Then a third sales channel is added3 new connections1 new adapter, 5 routes

With one sales channel, extra middleware adds a component without saving work. Once two channels send the same orders to the same accounting, shipping and stock systems, the picture changes. Each new channel or replaced package then costs one adapter, not one connection per partner system. Routes still need setting up and testing; the saving is in the code that talks to each system's API.

A rule of thumb from this example: if no system other than your hub appears in more than one connection, stay direct. When two or more do, consider a central layer, and try an integration platform as that layer before you build your own.

When you need a message broker

A direct integration or a platform usually calls the receiving system straight away. If that system is down, the call fails and the message must be sent again. A message broker sits in between. RabbitMQ's documentation compares it to a post box, a post office and a letter carrier in one: the sender drops the message off, and the receiver collects it when it is ready.

IBM distinguishes two patterns:

  • Point-to-point queue: each message goes to one receiver and is processed once. This suits payments, where each transaction must be handled exactly once.

  • Publish/subscribe: every subscriber receives each message. This suits one event that several systems need, such as an order status change.

A broker is worth it when orders must not get lost during a receiver's maintenance, when peaks exceed what a receiver can process, or when several systems react to the same event. Without those needs, it is one more system to run and monitor.

What to settle before anyone builds

  1. The flow list: source, destination, data, frequency and direction for each flow.

  2. An owner per flow: who sees a failed run, and within what time.

  3. Duplicates: how a repeated message is recognised, so a retry does not create a second order. What a REST API is explains why a retried call can do that.

  4. Hosting: where the middleware runs, who pays for it and who updates it.

  5. Exit: whether you can export mappings and flows if you leave the platform or the supplier.

  6. A first test: one read-only flow before anything writes data, as described in build a safe API integration.

What drives the price of each connection is covered in what an API integration costs.

When to stop and get help

Stop and get a second view when:

  • a trading partner requires EDI for orders and invoices; middleware alone does not settle that, see EDI or API;

  • a system has no API, or only a manual export;

  • the flows carry payment or personal data and there is no test environment;

  • the discussion turns into rebuilding your software as separate services rather than connecting what you have.

Bring your flow list, the names and versions of your systems, links to their API documentation and the daily volume per flow. With that, a developer can tell within one conversation whether direct links, a platform or a middleware layer fits.

OmniTechs builds targeted integrations between existing systems when a standard connector is not enough, and connects a system without an API through export and import or a managed middle layer. For an uncertain combination, work starts with a Solution Sprint of €1,250 excl. VAT (rate on 30 November 2026), in which the connection is tested before you commission the build. See API integration at OmniTechs.