ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » General IBM MQ Support » Published messages and Sequence

Post new topic  Reply to topic
 Published messages and Sequence « View previous topic :: View next topic » 
Author Message
siljcjose
PostPosted: Mon Jul 15, 2013 5:27 am    Post subject: Published messages and Sequence Reply with quote

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
View user's profile Send private message
bruce2359
PostPosted: Mon Jul 15, 2013 5:35 am    Post subject: Reply with quote

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
View user's profile Send private message
siljcjose
PostPosted: Mon Jul 15, 2013 5:39 am    Post subject: Reply with quote

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
View user's profile Send private message
gbaddeley
PostPosted: Mon Jul 15, 2013 4:12 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » Published messages and Sequence
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.