|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Published messages and Sequence |
« View previous topic :: View next topic » |
Author |
Message
|
siljcjose |
Posted: Mon Jul 15, 2013 5:27 am Post subject: Published messages and Sequence |
|
|
Apprentice
Joined: 18 Aug 2005 Posts: 27
|
Hi,
I have an application which is Publishing messages on 4 different topics.
There are subscriptions that are created for all the diferent topics to a queue.
Will MQ ensure that the messages are delivered to the queue in the same order in which it was published. Ie the first published message is the first message that arrives the queue via the subscription.
I understnad that the queue is in FIFO. Can we assume the same when publishing messages.
Regards,
Silj |
|
Back to top |
|
 |
bruce2359 |
Posted: Mon Jul 15, 2013 5:35 am Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9469 Location: US: west coast, almost. Otherwise, enroute.
|
Messages arrive in a queue in the order they arrive. If there is only one putting/publishing application, and the queue/topic is local to that application, then there is little likelihood that messages might arrive out of order.
If, however, there are multiple putting applications, and/or the messages must traverse a network, then it is possible that messages might arrive out of order.
Messages are delivered out of the queue either FIFO or by priority - based on the message-delivery-sequence queue attribute. _________________ I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live. |
|
Back to top |
|
 |
siljcjose |
Posted: Mon Jul 15, 2013 5:39 am Post subject: |
|
|
Apprentice
Joined: 18 Aug 2005 Posts: 27
|
The Message is published on the same queue manager and by just one application. There is no cluster involved as well. |
|
Back to top |
|
 |
gbaddeley |
Posted: Mon Jul 15, 2013 4:12 pm Post subject: |
|
|
 Jedi Knight
Joined: 25 Mar 2003 Posts: 2538 Location: Melbourne, Australia
|
Quote: |
Will MQ ensure that the messages are delivered to the queue in the same order in which it was published. |
No. Applications cannot make any assumptions about the delivery order of MQ messages. If there is a requirement for message affinity or ordering, applications must be designed to perform the necessary marshalling.
Simple techniques are to combine all the data into one message or use MQ message groups. The most robust technique is to use a database to store messages and then process them as the order is fulfilled. _________________ Glenn |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|