API-Led Connectivity and the Canonical Model
이 콘텐츠는 아직 번역되지 않았습니다.
Module 4 of 8 in the chapter Enterprise Integration Architecture, chapter 18 of the Integration Architect course. Each module stands on its own. Previous: MuleSoft and Informatica · Next: The Contract Decided in the First Weeks
The question this module answers: How do you build the middle so a system can be replaced behind it, and new callers don’t have to wait for the middle’s team?
Two Problems From Module 1
Section titled “Two Problems From Module 1”Module 1 left two problems on the table.
The first: a hub only makes a system replaceable if the other systems talk to it in a shape of their own. If everyone sends the old ERP’s record through the middleware, you’ve moved the web into the hub, not removed it.
The second: when every connection goes through one team, every new caller waits in that team’s queue.
The industry has two well-known answers. One is about how you organize the APIs in the middle: API-led connectivity. The other is about the shape of the data that passes through it: the canonical data model. Let’s take them one at a time.
Three Layers
Section titled “Three Layers”API-led connectivity is MuleSoft’s name for building the middle in three layers of APIs. Here’s each layer in MuleSoft’s own words (Types of APIs (opens in a new tab), MuleSoft, checked 2026-11-21).
- System APIs “unlock data from core systems of record”, such as “ERP, customer and billing systems, and proprietary databases”. One for each system behind. It knows that system’s details, so nothing above it has to.
- Process APIs provide “a means of combining data and orchestrating multiple System APIs for a specific business purpose”, like “order fulfillment, and shipment status”. This is where the business logic of an integration lives.
- Experience APIs “expose the data to be consumed by its intended audience”, such as a mobile app or a portal. One for each kind of caller, shaped the way that caller needs it.
Here’s what that could look like at Steve Trucking. This is a what-if: the course hasn’t put a customer status page or an agent on Steve Trucking’s landscape. But the systems underneath are the ones you know from Checkpoint 2.
Each layer has one job, and calls go down.
Now look at what the layers buy you, against module 1’s two problems.
Replace a system. Steve Trucking changes its finance system. Only the finance system API changes. The Deliveries process API still asks for “the day’s counts”, the experience APIs above it don’t know anything happened, and neither do the partners, the page or the agent.
Add a caller. Steve Trucking adds an agent that answers “where’s my delivery?”. It doesn’t need new connections to Salesforce and FleetLink. It needs one experience API on top of a process API that already exists, and often it can reuse the one the status page uses. That’s what cuts the queue: the next team builds on what’s there, instead of waiting for a new connection from the bottom up.
That’s the idea’s real value: reuse. Each API is built once and called by many.
A Starting Point, Not a Rule
Section titled “A Starting Point, Not a Rule”Here’s the part people get wrong. They draw the three layers and then build all three for everything, even a simple flow between two systems.
MuleSoft’s own blog says otherwise. One of its architects wrote in 2020 that API-led connectivity “is not strictly restricted to three layers”, but “just a starting point. The key to success is using the layers effectively and flexibly.” The same post lists the myths it set out to correct, starting with “All three layers are mandatory” (5 integration patterns to debunk the myths about API-led connectivity (opens in a new tab), MuleSoft Blog, 2020-10-22, checked 2026-11-21).
So use judgment. Every API you add is one more thing to version, secure, monitor and run. If a flow has one caller, one system behind it and no chance of reuse, three APIs is two too many. If a process will be called by the partners, a page and an agent, the layers pay for themselves.
One rule I’d keep, even though it’s the course’s reading and not MuleSoft’s: calls go down. An experience API calls process APIs; a process API calls system APIs and sometimes other process APIs. A system API never calls up into a process API. Once calls go up or sideways, you’ve built a web again, just with more layers.
The Shape in the Middle: the Canonical Model
Section titled “The Shape in the Middle: the Canonical Model”The layers organize the APIs. The second idea is about the data that passes through them.
You’ve seen the problem. In chapter 5, Salesforce sends an Account, and the ERP calls it a customer, with an address table instead of a billing address and a shipping address. Something has to translate. With two systems, that’s easy. With six, every system’s shape has to be translated into every other system’s shape.
Enterprise Integration Patterns has a name for the answer, the canonical data model: “design a Canonical Data Model that is independent from any specific application. Require each application to produce and consume messages in this common format.” Each system is translated once, to and from the common shape, and never directly into another system’s shape (Canonical Data Model (opens in a new tab), Hohpe and Woolf, checked 2026-11-21).
And here’s the part I love, because you’ve seen these numbers before. The book counts the translations. Six applications translating directly need “30(!) Message Translators”. Through a canonical model, “only 12”. That’s chapter 5’s web and hub exactly: n × (n − 1) against 2n, this time counted in translations instead of arrows.
It’s also what makes module 1 work. When the finance system is replaced, you write one new pair of translations, between the new system and the common shape, and nothing else changes. In the layers above, the system API is where that translation usually lives.
When It’s Worth It
Section titled “When It’s Worth It”The book is honest about the cost: a canonical model “seems complicated if only a small number of applications participate”, but it “quickly pays off as the number of applications increases.” With three applications, it’s six translators either way. With two, the canonical model is actually more work.
And the cost isn’t only the translators. Somebody has to decide what a customer is, for the whole company. Sales thinks of a customer one way, finance another, shipping a third. Agreeing on one shape is a design job and a people job, and it needs an owner who can say no.
Two habits keep it practical.
A model per business area, not one model of everything. A common shape for a Delivery, for a Customer, for an Invoice. A single model of the whole company becomes the slowest thing in it to change. That’s the course’s advice, not the book’s rule.
Only what crosses. The common shape holds what the systems need to exchange, not every field every system has. The Account in Salesforce has hundreds of fields. The common Customer might have twenty.
Who owns that shape is a data design decision. It belongs with the data architect as much as with the integration team, and the Data Architect course takes it up with master data. Chapter 3 module 5 has the mapping itself, and who owns it.
Test knowledge. Know the three API-led layers and what each does: system APIs unlock data from systems of record, process APIs combine and orchestrate for a business purpose, experience APIs shape data for one kind of caller. Know that a canonical data model reduces the number of transformations as systems are added, and that it pays off with many systems, not few. Expect a scenario where a new channel or a replaced system should touch as little as possible: the answer reuses the layers.
Beyond the exam: what AI changes. AI is good at the tedious half of this. Give it two sample records, one in the system’s shape and one in the common shape, and it will draft the mapping between them. Give it a process, and it will draft the API’s description. That’s a real speed-up. But the hard half is still yours: deciding what the common Customer is, and who owns it. An AI will happily invent a canonical model for you, and it’ll look complete. Nobody will have agreed to it.
What an Architect Decides Here
Section titled “What an Architect Decides Here”- Which layers each integration needs, from how many callers and systems it has and how much reuse you expect, not three by default.
- Which way calls go: down, never up into a process from a system.
- Whether a common shape is worth it for each business area, from the number of systems that share it.
- Who owns each common shape, and who can say no to a change.
- Where each translation lives, usually in the system API, once per system.
Explore
Section titled “Explore”- Types of APIs and how to determine which to build (opens in a new tab), MuleSoft (checked 2026-11-26): the three layers in MuleSoft’s own definitions.
- 5 integration patterns to debunk the myths about API-led connectivity (opens in a new tab), MuleSoft Blog, 2020 (checked 2026-11-26): the layers as a starting point.
- Canonical Data Model (opens in a new tab), Enterprise Integration Patterns (checked 2026-11-26): the pattern, and its arithmetic.
