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:
List every flow with source, destination, data and frequency, for example webshop → accounting: paid orders, within minutes.
Count, for each system, how many other systems it exchanges data with.
Every flow runs through one central system, such as the webshop? Direct integrations are usually the least work.
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.
Standard cloud apps with ready-made connectors? Try an integration platform before anyone writes code.
A message must arrive even when the receiver is down, or reach several systems at once? Add a queue (a message broker).
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
| Job | What happens | Example (hypothetical) |
|---|---|---|
| Receive | Accepts a message or API call from a system | The webshop reports a paid order |
| Check | Verifies who is calling and whether the data is complete | An order without a VAT rate is refused |
| Translate | Converts fields and formats into what the receiver expects | The webshop's order total becomes an amount and VAT lines in accounting |
| Route | Decides which system or systems receive the message | The order goes to accounting and to shipping |
| Record | Logs each result so failures are visible | A 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.
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
| Type | What it does | Where you meet it |
|---|---|---|
| Message broker, such as RabbitMQ | Accepts messages and holds them in a queue until the receiver collects them | Orders that must not get lost; one event that several systems need |
| Event streaming, such as Apache Kafka | Stores a stream of events so several applications can read it | Large event volumes, real-time data |
| API gateway, such as Azure API Management | One front door for APIs: routes calls, checks keys and tokens, enforces rate limits, can transform, cache and log | A company offering APIs to partners or to its own apps |
| Integration platform (iPaaS) | Cloud tools with ready-made connectors, data mapping and workflows | Linking 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 protocols | Large organisations with a service-oriented architecture |
| Other: database, remote procedure call and platform middleware | Database access, calling functions on another system, application and web servers | Inside 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
| Criterion | Direct (point-to-point) | Integration platform | Own middleware layer |
|---|---|---|---|
| How it works | Each pair of systems gets its own connection | You configure flows with the platform's connectors | A broker, gateway or custom service that you or a supplier run |
| Fits | Few flows, one central system, stable software | Standard apps with good connectors, moderate volumes | Many flows, your own data rules, guaranteed delivery, systems without a connector |
| Adding a system | A new connection to every system it talks to | A connector plus flows, if a connector exists | One new adapter plus routes |
| Replacing a system | Rebuild every connection that touches it | Swap the connector, then check every flow | Rewrite one adapter |
| Seeing failures | Per connection, only if someone built it | The platform's run history | Only what you build, so plan monitoring |
| Main risk | A web of tightly coupled links | Price per run or task, connector limits, lock-in | A 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
| Systems | Direct connections | Translations, direct | Translations via middleware |
|---|---|---|---|
| 2 | 1 | 2 | 4 |
| 3 | 3 | 6 | 6 |
| 4 | 6 | 12 | 8 |
| 5 | 10 | 20 | 10 |
| 6 | 15 | 30 | 12 |
| 10 | 45 | 90 | 20 |
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:
Webshop → accounting: paid orders.
Webshop → shipping: shipments.
Shipping → webshop: tracking codes.
Webshop → CRM: customer details.
Stock → webshop: stock levels.
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)
| Situation | Direct integrations | Via middleware |
|---|---|---|
| Webshop only: 5 systems, 6 flows | 4 connections | 5 adapters, 6 routes |
| Plus a marketplace: 6 systems, 11 flows | 7 connections | 6 adapters, 11 routes |
| Then the accounting package is replaced | Rebuild 2 connections | Rewrite 1 adapter |
| Then a third sales channel is added | 3 new connections | 1 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
The flow list: source, destination, data, frequency and direction for each flow.
An owner per flow: who sees a failed run, and within what time.
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.
Hosting: where the middleware runs, who pays for it and who updates it.
Exit: whether you can export mappings and flows if you leave the platform or the supplier.
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.

