Your company has a CRM, a billing system, an order system and a reporting tool. Each was bought or built at a different time, and each speaks a different language: one sends XML over SOAP, another exposes JSON over REST, an old one drops files on a share. Now someone asks for all four to exchange data, and you are counting how many custom connections that takes.
An Enterprise Service Bus (ESB) is the classic answer: a central integration layer that sits between applications, receives messages, converts them to the format the receiver expects, and routes them to the right place. This guide explains what it is, what it is made of, where it hurts, and how it compares with API gateways, message brokers and microservices today.

What is an ESB in plain words?
Think of an ESB as the switchboard and translator of an enterprise. Applications do not call each other directly. They hand a message to the bus, and the bus decides who should get it and in what format. The term comes from enterprise application integration and service-oriented architecture (SOA), and the patterns behind it are catalogued in the book and site Enterprise Integration Patterns.
An ESB is usually a product or platform, not a single feature. It normally bundles several capabilities: routing, message transformation, protocol conversion, orchestration of multi-step flows, plus security, monitoring and error handling.
The problem an ESB solves
Without a shared layer, every pair of applications that must talk needs its own connection and its own conversion logic. With n applications that can reach n(n-1)/2 connections: 5 applications mean up to 10, 10 applications mean up to 45. Each connection must be built, secured, monitored and updated whenever either side changes.
An ESB changes the shape of the problem. Each application connects once, to the bus, so the number of connections grows with the number of applications instead of with the number of pairs. A format or protocol change in one system is handled in one place.
Core components of an ESB
Product names differ, but most ESBs are built around the same four jobs.
1. Routing

Routing decides where a message goes. It can be static (always to the same endpoint), content-based (an order over a given amount goes to an approval service) or policy-based (based on the caller, role or other configured rules).
2. Message transformation

A sender may produce XML while the receiver expects JSON, or the same field may have different names in two systems. The bus maps one message format to the other so neither application has to know about the other’s format.

3. Protocol mediation

Protocol mediation (also called transport or protocol conversion) lets a consumer using one protocol, for example HTTP/SOAP, reach a provider that only supports another, such as a message queue or a file drop. The same mediation idea also lets one component expose several interfaces without rewriting it.

4. Orchestration
Orchestration means a central flow controls a business process made of several service calls. For example, a “place order” flow might call inventory, then payment, then shipping, and handle failures along the way. The individual services do not need to know they are part of a larger flow; the orchestrator knows the sequence.


Its counterpart is choreography, where there is no central controller and each service reacts to events published by others. The Choreography pattern in Azure Architecture Center describes the idea. Event-driven designs lean this way, as covered in Getting Started with Kafka in ASP.NET Core.

Governance, scalability and monitoring
Because all traffic passes through one layer, an ESB is also a natural place for cross-cutting concerns.

Governance: apply business and security rules uniformly, keep track of message exchange across systems, and report on it.

Scalability: a good ESB can be scaled up or down as load changes. In practice this is also where many older, monolithic ESBs struggle, as the next section shows.

Reuse: one component can be exposed through several interfaces, so existing systems are reused as building blocks instead of being rewritten.
Benefits and drawbacks
Benefits
- Fewer connections: each system integrates once, with the bus.
- Legacy friendly: old systems with SOAP, files or proprietary protocols can join without being rewritten.
- Central control: security, logging, error handling and monitoring are in one place.
- Looser coupling: a sender does not need to know where or how the receiver works.
Drawbacks
- Single point of failure: if the bus goes down or slows down, everything that depends on it is affected. You need clustering and failover, which add cost and operational work.
- Vendor lock-in: flows, mappings and proprietary tooling are often tied to one product, which makes migration expensive.
- Business logic creeps in: routing rules, mappings and orchestration pile up in the bus and turn it into a central “smart” component that is hard to test and change.
- Team bottleneck: when one integration team owns the bus, every change request queues behind it, which works against independent deployment.
- Heavy to run: traditional ESBs are large platforms that can be slow to scale per workload.
ESB vs API gateway vs message broker vs microservices
These terms overlap, which is why they are often confused. The table gives the short version.
| Piece | Main job | Typical use |
|---|---|---|
| ESB | Integrate many systems: routing, transformation, protocol mediation, orchestration | Connecting legacy and enterprise applications |
| API gateway | Single entry point for client requests: authentication, rate limiting, request routing | Exposing APIs to web, mobile and partner clients |
| Message broker | Move messages reliably between producers and consumers (queues, topics) | Asynchronous and event-driven communication |
| Microservices with events | Small independent services; logic in the services, simple messaging between them | New cloud-native systems |
ESB vs API gateway: a gateway fronts your own APIs for clients (see the API gateway guidance from Microsoft). It does not usually orchestrate back-end systems or convert between many enterprise protocols the way an ESB does.
ESB vs message broker: a broker such as Apache Kafka or RabbitMQ transports messages. An ESB typically includes a messaging layer but adds transformation, mediation and orchestration on top. For a comparison of two brokers, see Kafka vs RabbitMQ in event-driven architecture. A name warning: Azure Service Bus is a managed message broker, not an ESB in the sense used here.
ESB vs microservices: microservice teams usually prefer “smart endpoints and dumb pipes”: the logic lives in the services, and the messaging layer just carries messages. That is the opposite of a central bus full of rules. Whether you need microservices at all is a separate question, discussed in Monolith First: Why Startups Should Skip Microservices.
When to still use an ESB
- You must connect many legacy or packaged systems (ERP, mainframe, SOAP services, file transfers) that you cannot change.
- You need central governance for regulated integration, such as audit trails and uniform security policies.
- Your organization already runs an ESB and has the skills, and replacing it would cost more than it returns.
- You want a lightweight, cloud-hosted integration layer for a defined set of systems rather than a company-wide platform.
It is a poor fit for greenfield systems made of small services owned by independent teams. There, an API gateway plus a message broker, with logic kept in the services, is usually simpler. A frequent middle path is to keep the ESB for legacy integration and use events and APIs for new work. For API design on the gateway side, see RESTful API URL naming conventions and best practices. If you want to build integrations in code, Apache Camel is an open source integration framework that implements many of the patterns above.
Real-world ESB products
Products commonly described as ESBs or ESB-style integration platforms include:
- MuleSoft Mule runtime (Anypoint Platform)
- IBM App Connect Enterprise (formerly IBM Integration Bus and WebSphere Message Broker)
- Oracle Service Bus
- WSO2 Enterprise Integrator (Micro Integrator)
- TIBCO BusinessWorks
- Apache ServiceMix
- Microsoft BizTalk Server (an integration server with ESB-style capabilities)
Check each vendor’s current documentation for supported versions and licensing, since product lines and names change.
Frequently asked questions
What is an Enterprise Service Bus in simple terms?
It is a central integration layer that receives messages from applications, converts their format or protocol if needed, and routes them to the right destination so applications do not need direct connections to each other.
Is an ESB still relevant today?
Yes, mainly for integrating legacy and enterprise systems with central governance. For new cloud-native systems, teams more often use an API gateway plus a message broker with logic kept in the services.
What is the difference between an ESB and a message broker?
A message broker moves messages between producers and consumers. An ESB usually includes messaging but also adds routing rules, transformation, protocol mediation and orchestration.
Summary
An Enterprise Service Bus is a central layer that routes, transforms and mediates messages so many applications can integrate without direct connections. It reduces point-to-point sprawl and suits legacy-heavy enterprises, but it can become a single point of failure, a source of vendor lock-in and a bottleneck. For new systems, an API gateway and a message broker with logic in the services are often the lighter choice.
Found this useful?
Bookmark this page and share it with your team. Get new .NET, cloud and database tutorials in your inbox.