摘要 |
An enterprise service bus (ESB) and message processing method thereof are disclosed. The ESB includes: a message receiving unit, a message queuing unit, a processing-thread-group, and a request processing unit. The message receiving unit includes multiple message receiving channels which are used to receive messages each having at least one service request. The message queuing unit is used to receive messages from the multiple message receiving channels and to sort the messages according to predefined rules. The processing-thread-group is used to receive a predefined number of sorted messages from the message queuing unit. The request processing unit is used to acquire service requests of the messages from the processing-thread-group and to process the service requests. The present disclosure integrates various application programs into an electronic trading platform, and achieves program invocation by ESB. Therefore, service users are no longer required to perform complicated asynchronous invocations, while ESB is used to convert a synchronous mode to an asynchronous mode. |