# 企业服务总线

企业服务总线（ESB）是一种架构模式，由一个集中式软件组件在应用之间执行集成，完成数据模型转换、连接性、消息路由、协议转换，以及将多个请求组合为可复用的服务接口<sup>[1](https://www.ibm.com/think/topics/esb)</sup>。在学术定义中，它是一个集成平台，使用Web服务标准在多种传输协议上支持多种通信模式，为面向服务架构（SOA）提供通信骨干<sup>[2](https://dl.acm.org/doi/10.1007/s00778-007-0044-3)</sup>。该模式在消息总线之上融合了SOA、企业应用集成（EAI）和工作流管理的概念<sup>[3](https://eprints.cs.univie.ac.at/2359/1/soaSurvey.pdf)</sup>。

| 关键事实 | 详情 |
|---|---|
| 核心功能 | 数据转换、协议转换、消息路由、编排，以及应用之间的同步和异步交换<sup>[1](https://www.ibm.com/think/topics/esb)</sup><sup> • </sup><sup>[4](https://aws.amazon.com/what-is/enterprise-service-bus/)</sup> |
| 主要组件 | 面向消息的中间件（“骨干”）、服务容器和管理设施<sup>[5](https://www.cin.ufpe.br/~in1062/intranet/bibliografia/fose-the_enterprise_service_bus.pdf)</sup> |
| 标准 | SOAP、WSDL、UDDI、JMS、WS-Reliable Messaging和WS-Security；Oracle Service Bus支持XML作为原生数据类型<sup>[6](https://docs.oracle.com/middleware/11119/osb/concepts/E15020-09.pdf)</sup> |
| 起源 | 该术语归功于高德纳；被描述为2002年面市的一类集成软件<sup>[7](https://www.infoworld.com/article/2233053/driving-the-enterprise-service-bus.html)</sup> |
| 性能代价 | 抽象层和处理层带来的额外延迟；随着端点和服务的映射增多，总线成为瓶颈<sup>[4](https://aws.amazon.com/what-is/enterprise-service-bus/)</sup> |
| 故障模式 | 若无高可用配置，总线上的故障会中断所有连接的应用<sup>[4](https://aws.amazon.com/what-is/enterprise-service-bus/)</sup> |
| 后继市场 | iPaaS在2023年增长30.7%，收入达77.7亿美元；前五大厂商占据57.7%的份额<sup>[8](https://www.gartner.com/en/documents/5654323)</sup> |
| 今日现状 | 使用主要限于具有复杂集成的遗留系统<sup>[4](https://aws.amazon.com/what-is/enterprise-service-bus/)</sup> |

## ESB在运行时的作用

在运行时，总线以消息的形式接收请求，并在消息流经总线时对其进行中介。中介包括SOAP/HTTP与SOAP/JMS之间的传输映射，或在响应时间低于可接受值时将消息重新路由到备用提供者；中介可由第三方提供，并在不更改请求方或提供方应用的情况下部署<sup>[9](https://bitsavers.trailing-edge.com/pdf/ibm/IBM_Systems_Journal/444/schmidt.pdf)</sup>。ESB是互连服务的基础设施，但该术语不包括服务提供者的业务逻辑、请求方应用，也不包括托管服务的容器<sup>[9](https://bitsavers.trailing-edge.com/pdf/ibm/IBM_Systems_Journal/444/schmidt.pdf)</sup>。

文献将服务编排、智能路由、资源调配、消息的完整性与安全性以及服务管理确定为ESB的基本需求<sup>[2](https://dl.acm.org/doi/10.1007/s00778-007-0044-3)</sup>。用模式术语来说，ESB可以充当基于内容的路由器、消息过滤器、动态路由器、聚合器或消息代理<sup>[3](https://eprints.cs.univie.ac.at/2359/1/soaSurvey.pdf)</sup>。AWS将运行时工作概括为通过数据转换、协议转换、消息路由和编排，支持独立应用之间的同步和异步数据交换<sup>[4](https://aws.amazon.com/what-is/enterprise-service-bus/)</sup>。

## 架构与组件

ESB架构的关键组件是面向消息的中间件（MOM）、服务容器和管理设施。MOM是一个高度分布式的消息服务器网络，被称为ESB的骨干；应用通过服务容器实现服务化，并连接到这个基于MOM的总线，由总线进行消息的路由和转换<sup>[5](https://www.cin.ufpe.br/~in1062/intranet/bibliografia/fose-the_enterprise_service_bus.pdf)</sup>。

在实践中，ESB基础设施产品往往由现有部件组成：MOM、J2EE应用服务器和EAI集成适配器。2000年代中期的厂商包括IBM、Sonic Software、SeeBeyond和Cape Clear，开源项目则有Sun的Open ESB和Mule等<sup>[5](https://www.cin.ufpe.br/~in1062/intranet/bibliografia/fose-the_enterprise_service_bus.pdf)</sup>。

## 标准与接口

ESB技术使用SOAP和JMS（Java消息服务）等行业标准规范，构建基于接口的松耦合架构<sup>[7](https://www.infoworld.com/article/2233053/driving-the-enterprise-service-bus.html)</sup>。甲骨文的产品文档列出了其典型功能集：支持SOAP、WSDL和UDDI Web服务，包括WS-Reliable Messaging和[WS-Security](https://www.edgepedia.org/zh/ws-security)；具有多种服务质量的异步存储转发消息传递；XML到XML的数据转换；基于内容的发布/订阅路由；以及到Java、.NET、大型机和数据库的平台中立连接性<sup>[6](https://docs.oracle.com/middleware/11119/osb/concepts/E15020-09.pdf)</sup>。Oracle Service Bus专为高吞吐量、有保证的消息投递而设计，并支持XML作为原生数据类型<sup>[6](https://docs.oracle.com/middleware/11119/osb/concepts/E15020-09.pdf)</sup>。

通过SOAP暴露请求/响应服务是ESB模式与早期事件驱动的中心-辐射模式的关键区别；那些SOAP风格的RPC接口后来被更简单的RESTful JSON/HTTP服务所取代<sup>[10](https://developer.ibm.com/articles/cl-lightweight-integration-1/)</sup>。

## 历史与SOA时代

ESB一词归功于分析公司高德纳的一份报告，其分析师杰斯·汤普森将ESB描述为“2002年面市的一类集成软件”<sup>[7](https://www.infoworld.com/article/2233053/driving-the-enterprise-service-bus.html)</sup>。该模式本意是轻量级且无处不在的，与当时常见的中心-辐射式EAI代理形成直接对比<sup>[11](https://www.infoworld.com/article/2258525/learning-from-soa-5-lessons-for-the-microservices-era.html)</sup>。

这一意图未能经受住市场周期的考验。2002年高德纳预测大多数企业将在2005年前采用ESB模式之后，中心-辐射式EAI中间件的厂商说服了业内相当一部分人，使他们相信ESB是一种中间件产品而非一种模式，并将他们的代理产品重新命名为ESB。<sup>[11](https://www.infoworld.com/article/2258525/learning-from-soa-5-lessons-for-the-microservices-era.html)</sup>在实践中，ESB几乎总是作为单一集中式基础设施部署，尽管该模式并不要求集中化：现有的中心-辐射式集成运行时被改造为通过SOAP/HTTP同步暴露其集成<sup>[10](https://developer.ibm.com/articles/cl-lightweight-integration-1/)</sup>。

到2009年，观察者们不仅在质疑SOA方法，更是在宣告它的死亡，因为RESTful Web API作为SOAP服务的更轻量替代方案兴起，云基础设施也对集中式ESB拓扑构成了挑战<sup>[11](https://www.infoworld.com/article/2258525/learning-from-soa-5-lessons-for-the-microservices-era.html)</sup>。采用SOA的企业发现该方法增加了复杂性并引入了瓶颈，而以ESB、注册表和服务平台模板构建的SOA基础设施的成本被认为过高<sup>[11](https://www.infoworld.com/article/2258525/learning-from-soa-5-lessons-for-the-microservices-era.html)</sup>。

## 主要产品与市场

ESB市场包括两类产品。一类如WebSphere Message Broker和TIBCO BusinessWorks，是经过重构以提供类ESB功能的传统EAI产品，但仍以代理式方式运作；另一类如Mule，是基于开放消息和集成标准从零构建的实现<sup>[12](https://www.mulesoft.com/integration/enterprise-application-integration-and-esb)</sup>。Mule本身是一个轻量级、基于Java的ESB，提供服务创建与托管、服务中介、基于内容的消息路由，以及跨格式和传输（包括JMS、Web服务、JDBC和HTTP）的数据转换<sup>[13](https://www.mulesoft.com/integration/what-is-mule-esb)</sup>。

商业重心此后已转向[集成平台即服务](https://www.edgepedia.org/zh/integration-platform-as-a-service)（iPaaS）。2023年iPaaS市场增长30.7%，收入达77.7亿美元，高于2022年的59亿美元，成为仅次于流程挖掘的第二快增长的应用与基础设施中间件市场。前五大厂商——[Salesforce](https://www.edgepedia.org/zh/salesforce)（MuleSoft）、甲骨文、Informatica、SAP和Boomi——在2023年占据57.7%的份额，比2022年上升2.5个百分点<sup>[8](https://www.gartner.com/en/documents/5654323)</sup>。

## 性能代价与局限

ESB软件由于增加了抽象层和处理层，在通信中引入了额外延迟。随着端点和通信服务映射数量的增长，ESB成为瓶颈并影响性能<sup>[4](https://aws.amazon.com/what-is/enterprise-service-bus/)</sup>。

可扩展性批评有一个对立观点。IBM关于SOA模式的研究认为，“分布式ESB与中心-辐射式”的对比是一种虚假的区分：两种方法都集中控制配置，且都可以集中部署或分布式部署<sup>[14](https://public.dhe.ibm.com/software/websphere/pdf/esbscenariosandsolutionpatterns.pdf)</sup>。AWS将ESB软件描述为增加延迟并可能随着端点和映射的增长而成为瓶颈，且在没有高可用配置时可能成为单点故障<sup>[4](https://aws.amazon.com/what-is/enterprise-service-bus/)</sup>。

## 与代理、网关和事件流的比较

**消息队列中间件。** RabbitMQ或Azure Service Bus等消息队列服务提供异步通信，消息在接收应用准备好处理之前一直排队，使系统能够独立运行<sup>[15](https://zapier.com/blog/enterprise-service-bus/)</sup>。队列移动消息；ESB则额外对其进行转换、路由和组合。

**API网关。** ESB的服务暴露能力演变为如今所称的API管理，增加了流量管理、加密解密、安全模式、门户、自助订阅和分析。有了API管理层之后，集成运行时仅在复杂集成场景下才需要，例如特殊协议、特殊数据格式、多个请求的组合或事务性场景<sup>[10](https://developer.ibm.com/articles/cl-lightweight-integration-1/)</sup>。

**事件流。** [Apache Kafka](https://www.edgepedia.org/zh/apache-kafka)等事件流平台专注于持久、可扩展的事件流，用于实时分析和数据管道，而ESB将事件推送给预定义的订阅者；如果持久事件日志和复杂流处理是必须的，Kafka比ESB更合适<sup>[15](https://zapier.com/blog/enterprise-service-bus/)</sup>。Confluent的分析将架构原则概括为“笨管道、智能端点”：将集成或业务逻辑构建到中央集成层中，会消除不同系统的可扩展性、敏捷性和独立性<sup>[16](https://www.confluent.io/blog/apache-kafka-vs-enterprise-service-bus-esb-friends-enemies-or-frenemies/)</sup>。它还警告说，一些组织通过集中Kafka生态组件（如连接器和流处理器）而非让产品团队或服务团队各自管理这些组件，用Kafka重新制造了ESB反模式<sup>[16](https://www.confluent.io/blog/apache-kafka-vs-enterprise-service-bus-esb-friends-enemies-or-frenemies/)</sup>。流平台本身已经成熟：2025年3月18日发布的Apache Kafka 4.0.0移除了ZooKeeper，后者作为Kafka的骨干已超过10年<sup>[17](https://kafka.apache.org/blog/2025/03/18/apache-kafka-4.0.0-release-announcement/)</sup>。

**iPaaS。** 具有预构建连接器的云iPaaS平台是AWS列出的ESB功能替代方案之一，此外还有带轻量级API的微服务、API网关，以及提供服务发现、负载均衡和流量管理的服务网格<sup>[4](https://aws.amazon.com/what-is/enterprise-service-bus/)</sup>。iPaaS市场2023年增长30.7%至77.7亿美元，标志着集成支出的转移方向<sup>[8](https://www.gartner.com/en/documents/5654323)</sup>。

## 批评、衰落与总线的替代者

微服务的批评集中在中央枢纽上。IBM的记录指出，随着集成不断累积，对某一集成的更改或增强可能会使使用同一集成的其他集成变得不稳定，而对ESB中间件的更新往往会影响现有集成，因此任何更新都需要大量测试<sup>[1](https://www.ibm.com/think/topics/esb)</sup>。随着集成数量的增加，为ESB服务器提供高可用性和灾难恢复的费用上升，而且由于ESB横跨整个企业，为其争取资金变得困难。<sup>[1](https://www.ibm.com/think/topics/esb)</sup>IBM将衰落归因于维护、更新和扩展成本延迟了SOA本应带来的生产力提升，而微服务则与虚拟化、云计算、敏捷和DevOps一同兴起<sup>[1](https://www.ibm.com/think/topics/esb)</sup>。集中式ESB的核心价值主张——跨项目复用接口以降低集成成本——被证明难以获得资金和协调，而专门的SOA团队成为项目的瓶颈<sup>[10](https://developer.ibm.com/articles/cl-lightweight-integration-1/)</sup>。

运行过大型总线的从业者报告了具体的故障模式。运行着数千个中介的ESB因过度共享基础设施而存在相互干扰导致的可靠性和可扩展性问题，而且中介流没有标准，因此解决这些挑战的尝试从未获得足够的市场影响力，使买家被锁定在厂商的模型中<sup>[18](https://medium.com/cloud-journey-optimization/can-i-get-rid-of-my-enterprise-service-bus-f40b90008b4a)</sup>。

许多ESB功能已由后继技术承担。服务和API暴露分离到专用网关，后者演变为API管理<sup>[10](https://developer.ibm.com/articles/cl-lightweight-integration-1/)</sup>。集成逻辑移入带轻量级API的微服务，由服务网格处理发现和流量管理，由iPaaS平台处理连接器密集的云集成<sup>[4](https://aws.amazon.com/what-is/enterprise-service-bus/)</sup>。在现代化中值得保留的功能范围很窄：单点登录中介（如[OpenID Connect](https://www.edgepedia.org/zh/openid-connect)/OAuth2到LTPA）、协议和传输映射，以及接口和数据转换（如XSLT）<sup>[18](https://medium.com/cloud-journey-optimization/can-i-get-rid-of-my-enterprise-service-bus-f40b90008b4a)</sup>。

产品退役标志着同样的趋势。TIBCO宣布将于太平洋时间2025年10月31日晚上11:59起退役并关停TIBCO Cloud Integration、TIBCO Cloud Messaging和TIBCO Cloud Passport服务<sup>[19](https://support.tibco.com/external/article/106742/support-policy-retirement-notice-for-tib.html)</sup>。

## ESB仍有意义之处

AWS指出，如今企业服务总线的使用主要限于具有复杂集成的遗留系统，API网关在现代架构中更为常见<sup>[4](https://aws.amazon.com/what-is/enterprise-service-bus/)</sup>。WebSphere ESB、IBM Integration Bus（后演变为IBM App Connect Enterprise）和WebSphere DataPower等ESB仍然是许多支持大型组织业务流程的架构中不可或缺的部分<sup>[18](https://medium.com/cloud-journey-optimization/can-i-get-rid-of-my-enterprise-service-bus-f40b90008b4a)</sup>。MuleSoft自己的指南将有用门槛定得很低：在至少有几个集成点或至少有三个应用需要集成，且需要松耦合、可扩展性和健壮性的场景中，ESB提供真正的价值<sup>[13](https://www.mulesoft.com/integration/what-is-mule-esb)</sup>。

发展方向正从集中式同步编排转向编排协作和事件驱动架构，但ESB并未消失；它们仍然是专为受控且紧密的集成而构建的<sup>[20](https://blog.axway.com/learning-center/apis/basics/api-gateways-esbs-enterprise-comparison)</sup>。

## References

1. [What Is an Enterprise Service Bus (ESB)?, IBM](https://www.ibm.com/think/topics/esb)
2. [Service oriented architectures: approaches, technologies and research issues, The VLDB Journal](https://dl.acm.org/doi/10.1007/s00778-007-0044-3)
3. [A Survey of Patterns for Service-Oriented Architectures, University of Vienna](https://eprints.cs.univie.ac.at/2359/1/soaSurvey.pdf)
4. [What is ESB? Enterprise Service Bus Explained, AWS](https://aws.amazon.com/what-is/enterprise-service-bus/)
5. [An Introduction to the Enterprise Service Bus, Future of Software Engineering](https://www.cin.ufpe.br/~in1062/intranet/bibliografia/fose-the_enterprise_service_bus.pdf)
6. [Concepts and Architecture for Oracle Service Bus, Oracle Fusion Middleware documentation](https://docs.oracle.com/middleware/11119/osb/concepts/E15020-09.pdf)
7. [Driving the Enterprise Service Bus, InfoWorld](https://www.infoworld.com/article/2233053/driving-the-enterprise-service-bus.html)
8. [Market Share Analysis: Integration Platform as a Service, Worldwide, 2023, Gartner](https://www.gartner.com/en/documents/5654323)
9. [The Enterprise Service Bus: Making service-oriented architecture real, IBM Systems Journal](https://bitsavers.trailing-edge.com/pdf/ibm/IBM_Systems_Journal/444/schmidt.pdf)
10. [The fate of the ESB, IBM Developer](https://developer.ibm.com/articles/cl-lightweight-integration-1/)
11. [Learn from SOA: 5 lessons for the microservices era, InfoWorld](https://www.infoworld.com/article/2258525/learning-from-soa-5-lessons-for-the-microservices-era.html)
12. [Understanding Enterprise Application Integration, MuleSoft](https://www.mulesoft.com/integration/enterprise-application-integration-and-esb)
13. [What is Mule ESB?, MuleSoft](https://www.mulesoft.com/integration/what-is-mule-esb)
14. [ESB Scenarios and Solution Patterns, IBM SOA patterns white paper](https://public.dhe.ibm.com/software/websphere/pdf/esbscenariosandsolutionpatterns.pdf)
15. [What is ESB? Enterprise service bus, explained, Zapier](https://zapier.com/blog/enterprise-service-bus/)
16. [Apache Kafka vs. Enterprise Service Bus (ESB), Confluent](https://www.confluent.io/blog/apache-kafka-vs-enterprise-service-bus-esb-friends-enemies-or-frenemies/)
17. [Apache Kafka 4.0.0 Release Announcement](https://kafka.apache.org/blog/2025/03/18/apache-kafka-4.0.0-release-announcement/)
18. [Can I Get Rid of my Enterprise Service Bus?, Eric Herness, Cloud Journey Optimization (Medium)](https://medium.com/cloud-journey-optimization/can-i-get-rid-of-my-enterprise-service-bus-f40b90008b4a)
19. [Retirement Notice for TIBCO Cloud Integration, TIBCO support policy](https://support.tibco.com/external/article/106742/support-policy-retirement-notice-for-tib.html)
20. [API Gateways and ESBs: an Enterprise Comparison, Axway](https://blog.axway.com/learning-center/apis/basics/api-gateways-esbs-enterprise-comparison)

---
*Initially written Sep 17, 2026 · Reviewed: Sep 30, 2026; Oct 15, 2026 · Edited: Sep 30, 2026; Oct 15, 2026 · Last review: Oct 15, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 软件与编程 › Software engineering and development process › Software design and architecture › Titles 4 to Mo

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/enterprise-service-bus

English original: https://www.edgepedia.org/enterprise-service-bus
