ESB vs API-led connectivity
Both are ways to connect an organization’s systems so that each doesn’t have to integrate with every other one directly.
- Enterprise service bus (ESB): a central integration platform through which systems communicate. The bus handles routing, transformation, protocol conversion and orchestration, and is usually run by a central integration team.
- API-led connectivity: integration exposed as reusable APIs in three layers. System APIs unlock core systems, process APIs combine them into business processes, and experience APIs shape data for each channel. The approach was named and popularized by MuleSoft.
At a glance
Section titled “At a glance”| Aspect | ESB | API-led connectivity |
|---|---|---|
| Unit of integration | Flows and routes on the bus | Products: APIs with owners, contracts and consumers |
| Ownership | Central integration team | Distributed: system, process and experience APIs owned by the teams closest to them |
| Where logic lives | In the bus, often including business rules | In process APIs, and in the services themselves |
| Reuse | Possible, but flows are often built per project | Designed for: system APIs are reused by many processes |
| Change | Through the central team’s backlog | Teams change their own APIs, within governance |
| Discovery | Often by asking the integration team | An API catalog or developer portal |
| Typical runtime | One shared platform | Can be one platform or many gateways and runtimes |
| Main risk | A bottleneck team and a fragile bus full of business logic | Too many thin APIs, layers added for their own sake, and weak governance |
Why organizations moved away from the ESB
Section titled “Why organizations moved away from the ESB”The ESB solved a real problem: point-to-point integrations between dozens of systems. Its failure mode was organizational more than technical. Every change went through one team, business logic drifted into the bus where nobody else could see it, and the bus became the hardest system in the company to change or upgrade.
API-led connectivity keeps the idea of a reusable integration layer but makes each part a product with a clear owner and contract, and pushes change to the teams that need it.
Choose an ESB-style central platform when
Section titled “Choose an ESB-style central platform when”- You have many legacy systems with non-HTTP protocols (files, queues, mainframe connectors) that need heavy transformation.
- A small central team really does need to own integration, for skills or regulatory reasons.
- The number of integrations is modest and changes are infrequent.
Choose API-led connectivity when
Section titled “Choose API-led connectivity when”- Many channels and teams need the same core data and capabilities.
- You want teams to deliver new experiences without queuing for a central team.
- You can invest in an API catalog, standards, security policies and lifecycle management.
Moving from one to the other
Section titled “Moving from one to the other”Most organizations don’t replace their ESB in one go. A strangler fig approach works well:
- Put system APIs in front of the core systems the bus already connects.
- Build new integrations as process and experience APIs on top of those system APIs.
- Move existing flows off the bus when they need to change anyway, rather than migrating them all at once.
- Pull business rules out of bus flows and into the services that own them.
Watch for the opposite failure: three layers of APIs that each just pass data through. A layer earns its place only if it’s reused or hides something that changes.
The verdict
Section titled “The verdict”Prefer API-led connectivity for new integration work: reusable APIs with clear owners age better than flows inside a central bus. Keep an integration platform for what it’s good at, such as protocol conversion and legacy connectivity, but keep business logic out of it. Add layers only where they bring reuse.
Read more
Section titled “Read more”Written and edited by Abhinav Taduka, enterprise software architect.
New pages are added regularly. Follow Abhinav on LinkedIn to see them first.