Automathing Logo
Back to glossary

Systems & Integration / Glossary

Middleware

Software that sits between systems and handles the translation, routing, and reliability between them.

Definition

Middleware is the layer between applications that do not speak the same language. It translates formats, routes messages, queues work when a system is unavailable, and retries what failed, so each application can stay unaware of the others.

Why a layer in the middle exists at all

Connect two systems directly and you have one integration. Connect five systems directly and you have up to twenty connections, each with its own credentials, format assumptions, and failure behaviour, and each needing revision whenever any system changes.

Middleware replaces that web with a hub. Each system talks to the middle layer; the middle layer handles translation and delivery. Five connections instead of twenty, and a single place where routing, logging, and retry logic live.

The tipping point is usually the third or fourth system. Below that, direct connections are simpler and cheaper. Above it, the maintenance burden of point-to-point integration grows faster than the number of systems.

What middleware actually does

Translation. System A emits a date as 2026-08-26, system B expects 26/08/2026, and one calls it customer_id while the other says AccountRef. Someone has to reconcile that, and doing it once centrally beats doing it in every connection.

Queuing. When the receiving system is down or slow, the message waits instead of being lost. This is the capability businesses most often discover they needed after losing data.

Retry and error handling. Transient failures are normal. Middleware retries sensibly, escalates what keeps failing, and gives you one place to look when something did not arrive.

Routing. One event sometimes needs to reach three systems. Middleware fans it out without the originating system knowing anything about the recipients.

Auditability. A single log of what moved where and when, which matters more than it sounds the first time a customer disputes a record.

Middleware, iPaaS, and just writing the integration

Direct integrationMiddlewareiPaaS
Best atTwo systems, simple flowMany systems, custom logicMany systems, standard flows
You operateThe codeThe platform and the codeNeither, it is hosted
FlexibilityTotalHighBounded by the platform
Cost shapeBuild timeBuild plus infrastructureSubscription, often per task

iPaaS is middleware delivered as a hosted service with pre-built connectors, and for most mid-sized businesses it is the sensible default. Self-operated middleware earns its place when the logic is genuinely unusual, when data residency requirements rule out a hosted service, or when volume makes per-task pricing unattractive.

How Automathing approaches it

We do not introduce a middle layer for two systems, because that is complexity without a return. The moment it earns its place is the third or fourth integration, when the point-to-point web starts costing more to maintain than to replace. When we do introduce one, queuing and retry behaviour are specified up front, because those are the capabilities businesses discover they needed only after data has gone missing.

Frequently asked questions

What is the difference between middleware and an API?

An API is the interface a single system exposes. Middleware sits between systems and coordinates the traffic, translating formats, queuing, retrying, and routing. Middleware uses APIs; it does not replace them.

Do we need middleware?

Below three or four connected systems, usually not, since direct integrations are simpler to build and understand. The signals that you have crossed the line: the same field mapping written in several places, no single view of what failed overnight, and every new system requiring connections to all the existing ones.

Is middleware the same as an ESB?

An Enterprise Service Bus is a particular style of middleware, common in large organizations, built around a central bus that all systems publish to and subscribe from. Modern integration tends toward lighter-weight approaches such as hosted platforms, event streams, or straightforward API gateways, but the underlying purpose is the same.

Does middleware slow things down?

It adds a hop, which is typically milliseconds and rarely noticeable. What it removes is more valuable: messages lost when a system was briefly unavailable, and failures nobody detected. For the small number of flows where latency genuinely matters, those can bypass the middle layer while everything else goes through it.