Message queueing in middleware by a message broker
First Claim
1. A method for using a message broker comprising a plurality of message queues, each message queue associated with a different task of a plurality of tasks, the message broker handling messages received from a plurality of client applications, the method comprising:
- receiving, at a first message queue of the plurality of message queues, a first synchronous message from a first client application of the plurality of client applications, wherein the first synchronous message includes a request to execute a task associated with the first message queue;
determining that at a time the first synchronous message is received there is an earlier-received message waiting in the first message queue, wherein the earlier-received message is from a different client application, and wherein the earlier-received message includes a different request to execute the task associated with the first message queue; and
coalescing, in response to the determination, the first synchronous message with the earlier-received message such that the task associated with the first message queue is executed only once for both messages and a notice of the execution is returned to the first client application;
wherein the earlier-received message is also synchronous such that the notice of the execution is also returned to the different client application.
1 Assignment
0 Petitions
Accused Products
Abstract
A message broker configured to handle messages received from a plurality of client applications comprises a plurality of message queues that are each associated with a different task. A first synchronous message is received at a first message queue from a first client application. A determination is made that at a time the first synchronous message is received there is an earlier-received message from a different client application waiting in the first message queue. In response to the determination, the first synchronous message is coalesced with the earlier-received message such that a task associated with the first message queue is executed only once for both messages and a notice of the execution is returned to the first client application.
15 Citations
17 Claims
-
1. A method for using a message broker comprising a plurality of message queues, each message queue associated with a different task of a plurality of tasks, the message broker handling messages received from a plurality of client applications, the method comprising:
-
receiving, at a first message queue of the plurality of message queues, a first synchronous message from a first client application of the plurality of client applications, wherein the first synchronous message includes a request to execute a task associated with the first message queue; determining that at a time the first synchronous message is received there is an earlier-received message waiting in the first message queue, wherein the earlier-received message is from a different client application, and wherein the earlier-received message includes a different request to execute the task associated with the first message queue; and coalescing, in response to the determination, the first synchronous message with the earlier-received message such that the task associated with the first message queue is executed only once for both messages and a notice of the execution is returned to the first client application; wherein the earlier-received message is also synchronous such that the notice of the execution is also returned to the different client application. - View Dependent Claims (2, 3, 4, 5, 6)
-
-
7. A computer program product comprising a computer readable storage medium, wherein the computer readable storage medium is not a transitory signal per se, the computer readable storage medium having program instructions embodied therewith, the program instructions configured, when executed by at least one computer, to cause the at least one computer to:
-
receive, at a first message queue of a plurality of message queues, a first synchronous message from a first client application of a plurality of client applications; determine that at a time the first synchronous message is received there is an earlier-received message waiting in the first message queue, wherein the earlier-received message is from a different client application; and coalesce, in response to the determination, the first synchronous message with the earlier-received message such that a task associated with the first message queue is executed only once for both messages and a notice of the execution is returned to the first client application; wherein the earlier-received message is also synchronous such that the notice of the execution is also returned to the different client application. - View Dependent Claims (8, 9, 10, 11, 12)
-
-
13. A system comprising:
-
a memory; and a processor in communication with the memory, the processor configured to obtain instructions from the memory that cause the processor to perform a method comprising; receiving, at a first message queue of a plurality of message queues, a first synchronous message from a first client application of a plurality of client applications; determining that at a time the first synchronous message is received there is an earlier-received message waiting in the first message queue, wherein the earlier-received message is from a different client application; coalescing, in response to the determination, the first synchronous message with the earlier-received message such that a task associated with the first message queue is executed only once for both messages and a notice of the execution is returned to the first client application; receiving, at the first message queue and while the earlier-received message is waiting in the first message queue, a second message; determining, based on an indicator in the second message, that the second message is not to be coalesced with the earlier-received message; and placing, in response to the determination based on the indicator, the second message behind with the earlier-received message in the first message queue. - View Dependent Claims (14, 15, 16, 17)
-
Specification