Service bus là gì

The Enterprise Service Bus (ESB) is a central component of a distributed system that connects components & applications together. So what exactly is it? In this tutorial, I will introduce with all you.

Bạn đang xem: Service bus là gì

Why vì chưng we need ESB?

Imagine, you are working in a system with many applications và applications that need to lớn be linked và exchanged: application A needs to lớn skết thúc a message to lớn application B via JMS VPS, application C needs Điện thoại tư vấn khổng lồ application D to lớn obtain the necessary information via the HTTPhường. protocol, etc… All these needs are done in different forms, not in the same data format or in the same standard communication.

Programmers for these applications also face with many difficulties in terms of:

Protocol: These applications must work with đầu vào data from system files to RESTful web service APIs.Data format: Applications can use any data format to lớn communicate with each other.Exchange data: Applications can Call other applications synchronously, asynchronously, messaging, … many different ways of exchanging data.The life cycle of an application: Different applications will need to lớn be developed, maintained, and managed in different ways.Error handling: This is the core problem of the application, each application has different ways of handling errors.Monitoring: Monitoring the integration between applications also has many difficulties for programmers.

Another problem is that applications must connect directly khổng lồ one another, making it difficult to expand later as the number of connections increases.

Xem thêm: ' Ai Cũng Xứng Đáng Được Hạnh Phúc, Ai Cũng Xứng Đáng Được Hạnh Phúc


To solve sầu this problem, an Enterprise Service Bus system was introduced. We will learn more about it in the next section.

What is Enterprise Service Bus?

The ESB is a one-to-one solution for connecting multiple applications. It defines a place where applications can through this place interact with other applications, called bus. All applications of the system will now only talk to lớn each other through the bus.

Take a look at the following picture to better understand the meaning of ESB:


To vì this, our bus system must be able to lớn communicate through various protocols such as HTTPhường, FTPhường, và so on, and it must use a comtháng data format standard for all messages such as the Java object, JSON or XML.

Xem thêm: Unicorn Là Gì

The ESB allows us to consolidate all the security, navigation và data transfer issues in one place. Switching from one service to another also works smoothly without having khổng lồ change anything in the connected applications.

Chuyên mục: Blockchain