Aller au contenu

When Middleware Earns Its Place, at Enterprise Scale

Ce contenu n’est pas encore disponible dans votre langue.

Module 1 of 8 in the chapter Enterprise Integration Architecture, chapter 18 of the Integration Architect course. Each module stands on its own. Previous chapter: The Story of Integration · Next: From the ESB to the Integration Platform

The question this module answers: Chapter 5 asked whether middleware earns its place on one landscape. When a company runs dozens of systems, built by many teams, what is the middle really for, and when does it earn its place?

In chapter 5 we did the arithmetic. Point to point, every system you add has to talk to every system already there, and the arrows grow as n × (n − 1). Through a hub, it’s about two arrows per system. And I gave you the rule of thumb I use in class: if you only have one or two interconnections, middleware may not be worth it. But when you start to get to three, four, five systems, the middleware can be a lifesaver.

That’s the right question for one landscape. Now step back and look at a whole company.

A company isn’t five systems. It’s dozens, sometimes hundreds: the CRM, the ERP, finance, HR, the warehouse, the online store, the data platform, the partners’ systems, and every one of them owned by a different team. And now there’s a new kind of caller on the landscape. MuleSoft, Salesforce’s own integration company, surveys IT leaders every year, and its 2026 report, from over 1,000 of them, says “50% of AI agents currently operating in isolated silos” (2026 MuleSoft Connectivity Benchmark Report (opens in a new tab), MuleSoft, read 2026-11-20). That’s a vendor’s survey, so read it as one. But it says the same thing the arithmetic says: every new system, and every new agent, is another spoke or another tangle.

At this scale, nobody is asking whether the arrows add up anymore. They do. The questions change. What happens when one of these systems is replaced? How do forty teams agree on anything? And who runs the thing in the middle? That’s this module.

In class, when I list what middleware gives you, there’s one I say almost in passing: if there is a problem with a system and I need to take it offline, I can just notify the middleware, and the middleware may be able to account for it.

At enterprise scale, that line becomes the main reason.

Systems get replaced. The ERP is upgraded to a new version with a new API. The company moves its accounting to the cloud. It buys another company, and now there are two warehouse systems. Every one of those is a system leaving the landscape and another one taking its place. So ask the question with chapter 5’s picture: when one system is replaced, how many arrows have to change?

Replace one system Two frames on the same canvas as chapter 5's web and hub, with the systems on a hexagon: Salesforce top left, the ERP top right, accounting on the left, inventory on the right, the warehouse bottom left and an online store bottom right. Frame 1: replace the ERP: 10 of 30 arrows change. Every system talks both ways with every other one; all the arrows are faded except the ten to and from the ERP, in amber, and the ERP's card is amber and reads New ERP. Point to point, every system that talks to the ERP has to change. Frame 2: replace the ERP: 2 of 12 arrows change. Middleware sits in the middle in navy, with two arrows to and from each system; only the two between the hub and the New ERP are amber. Through the hub, the other five systems don't notice. The legend: amber is an arrow that has to change, with its address, credentials and format, when the ERP is replaced. Replace the ERP: 10 of 30 arrows change Point to point: every system that talks to the ERP has to change, and so does the ERP's side of each. Salesforce New ERP Accounting Inventory Warehouse Online store Amber: an arrow that has to change, with its address, credentials and format, when the ERP is replaced. © 2026 Twinshark LLC · stevetecharc.com
Click to enlarge

Frame 1 of 2: point to point, replacing the ERP touches ten arrows.

Point to point, it’s ten of the thirty. Every system that talked to the old ERP has its own connection to it: its own address, its own credentials, its own idea of what a customer looks like. Each one has to change, be tested and go live on the same weekend as the new ERP. Five teams, five projects, one date.

Replace one system Two frames on the same canvas as chapter 5's web and hub, with the systems on a hexagon: Salesforce top left, the ERP top right, accounting on the left, inventory on the right, the warehouse bottom left and an online store bottom right. Frame 1: replace the ERP: 10 of 30 arrows change. Every system talks both ways with every other one; all the arrows are faded except the ten to and from the ERP, in amber, and the ERP's card is amber and reads New ERP. Point to point, every system that talks to the ERP has to change. Frame 2: replace the ERP: 2 of 12 arrows change. Middleware sits in the middle in navy, with two arrows to and from each system; only the two between the hub and the New ERP are amber. Through the hub, the other five systems don't notice. The legend: amber is an arrow that has to change, with its address, credentials and format, when the ERP is replaced. Replace the ERP: 2 of 12 arrows change Through the hub: only the hub's two arrows to the ERP change. The other five systems don't notice. Salesforce New ERP Accounting Inventory Warehouse Online store Middleware the hub Amber: an arrow that has to change, with its address, credentials and format, when the ERP is replaced. © 2026 Twinshark LLC · stevetecharc.com
Click to enlarge

Frame 2 of 2: through the hub, it touches two.

Through the hub, it’s two. The other five systems keep talking to the middleware exactly as they did. The middleware’s team builds the new connection to the new ERP, maps it onto what everyone else already sends and expects, and cuts over. Salesforce doesn’t notice. Neither does the warehouse.

That only works if the systems talk to the hub in a shape that isn’t the old ERP’s shape. If Salesforce sends “ERP customer record, version 9” through the middleware, you’ve moved the web into the hub, not removed it. Module 4 is about that shape: the layers and the common model that make a system replaceable.

So here’s the first thing that changes at scale. The count of arrows tells you whether the middle is worth it. The cost of replacing one system tells you how much it’s worth.

Every arrow crosses a boundary, and on each side of it is a different owner (chapter 1 module 5). With five systems, that’s a handful of conversations. With fifty systems and forty teams, it’s a negotiation that never ends.

Point to point, every pair of teams agrees its own terms. How do we sign in? Who keeps the log? What do we send when it fails? What happens on your release weekend? Every pair answers those questions a little differently, and nobody can see all the answers at once.

A middle gives the company one place to agree. One way to sign in, with the credentials in one vault (chapter 5’s central security, and module 7). One integration log, so when something fails there’s one place to look (chapter 14). One set of rules for limits, retries and formats. And one team whose job is to know all the arrows.

That’s why, when I’m deciding whether a company needs a real integration layer, I count the teams as well as the systems. Three systems run by one team that sits together can live with point to point. Six systems run by six teams, two of them at other companies, usually can’t.

Here’s the other side, and you have to say it out loud. In chapter 5 I called it putting all your eggs in one basket, and you’d better have a really strong basket. At enterprise scale, the basket is a system in its own right, and it needs everything a system needs.

It has to carry the load. In class I say: you need to make sure the middleware can handle your traffic volumes. Every arrow in the company now goes through it, so its volume is the sum of all of them, at the busiest hour of the busiest day.

It has to stay up. You need to be thinking about what happens if your middleware goes down. When the hub stops, every spoke stops. So the middle needs to run in more than one place, with its own monitoring, its own failure plan and someone on call for it.

It has its own owner, budget and releases. It isn’t free, it isn’t finished, and it changes. The middle has a team, a licence, an upgrade schedule and a backlog of its own.

And there’s a quieter risk. When every arrow goes through one team, every change waits for that team. A new system can’t connect until the middle has time to build its connection. The hub that made change cheap can become the queue that makes it slow. That’s one of the reasons the industry moved toward reusable APIs that other teams can build on themselves, which is module 4.

None of this is a reason not to have a middle. It’s the reason to plan for one properly: sized, run, owned and paid for.

When you draw a real enterprise, you rarely find one middle. You find several, each for a different kind of arrow.

  • An integration platform for APIs, orchestration and transformation: the calls and the multi-step processes (module 2, module 3, chapter 15).
  • An event backbone for streams that many systems publish and read, like Kafka or a cloud event service (chapter 11 module 7).
  • File transfer and trading-partner tools for the partners who still send files and EDI (module 8).
  • Salesforce’s own tools for what stays inside or close to Salesforce: Flow, Apex, External Services and named credentials (chapter 4, chapter 9).

That’s normal. What isn’t fine is not knowing which arrow goes through which. On the landscape, every arrow should say what carries it. That’s chapter 5’s inventory, with one more column.

So when does the middle earn its place at enterprise scale? Here are the signs I look for.

Signs the middle earns its placeSigns it may not, yet
Systems get replaced or upgraded on their own schedulesOne or two connections, and they rarely change
Many teams, or other companies, own the systems on each sideOne team owns both sides and sits together
The same data is needed by several systems, in several shapesEach connection carries its own data to one place
The company wants one way to sign in, log and handle failureEach connection’s needs are simple and different
Partners send APIs, files and EDI, all to be made into one thingEveryone already speaks the same API
Agents are joining the landscape, each wanting to reach many systemsNobody would run the middle, or pay for it

The right-hand column isn’t a failure. Plenty of good integrations are two systems, a named credential and an integration user. But if most of your answers are on the left, the question isn’t whether to have a middle. It’s which one, run by whom, and that’s the rest of this chapter.

Test knowledge. Expect scenarios with many systems, frequent change or several teams, where the answer puts middleware in the middle: hub and spoke instead of point to point. Know what the middle gives you (routing, orchestration, central security, data and protocol transformation) and what it costs (one more system to size, run and secure, and a single point of failure if it isn’t built to stay up). And know the other direction: with one or two stable connections, point to point is often the right answer (chapter 5 module 5).

Beyond the exam: what AI changes. An agent that can call tools is a new kind of system on the landscape, and it wants to reach many systems at once. Connect each agent to each system directly, and you’ve drawn chapter 5’s web again, with agents as the newest boxes. The same answer applies: something in the middle that holds the credentials, applies the rules and keeps the log. That’s the gateway in module 6, and the agent chapters, 22 and 23.

  • Whether the company needs a middle, from the cost of replacing one system and the number of teams, not only the number of arrows.
  • What talks to the hub in a shape of its own, so that a system can be replaced behind it.
  • Who runs the middle: its capacity, its uptime, its failure plan, its owner and its budget.
  • Which middle carries which arrow, when there’s more than one, written on the landscape.
  • How other teams get a new connection without waiting in a queue for the middle’s team.