Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
How can messages appear out of order in non-transacational messages?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
MP  
View profile  
 More options Jun 15 2010, 3:40 pm
Newsgroups: microsoft.public.msmq.programming
From: MP <mycomem...@gmail.com>
Date: Tue, 15 Jun 2010 12:40:43 -0700 (PDT)
Local: Tues, Jun 15 2010 3:40 pm
Subject: How can messages appear out of order in non-transacational messages?
There's a line in MSDN about transactional and non-transactional
messages (http://msdn.microsoft.com/en-us/library/ms706253(v=VS.
85).aspx) :

"Transactional messages guarantee exactly-once and in-order delivery.
Conversely, nontransactional messages cannot guarantee exactly-once or
in-order delivery."

Question 1: MSMQ is FIFO queue, then how would messages appear out or
order in case of non-transactional messages ?

Example: Client computer A sends non-transactional messages M1
followed by M2 to a queue Q deployed on Server B. Does this mean that
a process reading messages from Q may get M2 before M1? How is it
possible in case of FIFO queues like MSMQ?

Questions 2: Taking the same example as above, what would cause
duplicate messages to be added to the Q?

Thanks
MP


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
John Breakwell  
View profile  
 More options Jun 17 2010, 9:31 am
Newsgroups: microsoft.public.msmq.programming
From: "John Breakwell" <greengob...@nospam.com>
Date: Thu, 17 Jun 2010 14:31:35 +0100
Local: Thurs, Jun 17 2010 9:31 am
Subject: Re: How can messages appear out of order in non-transacational messages?
Hi,

MSMQ may well be FIFO for the queue but not necessarily for the queue
manager (QM) that receives messages to put in the queue. As the QM is
multi-threaded, there is a theoretical chance that one thread may complete
storing it's message in the queue before another thread (with a fractionally
earlier messages) does. There is a lot of code between a message arriving
over the wire and bring written into the queue. Maybe easier to see when
sending very large and very small messages to the same queue.
Also, transactional messages are only in order for the single transaction
that contains them. So you may see transactions out of order but not the
messages within the transaction. Example - if you send M1+M2 within T1 and
M3+M4 within T2 it is possible (from the discussion above) to have M1M2M3M4
or M3M4M1M2 but not M1M3M2M4.
Note that this is very unlikely under normal circumstances - not very heavy
load, for example.

Duplicate messages are covered here:
http://blogs.msdn.com/b/johnbreakwell/archive/2007/04/02/how-msmq-pre...

Cheers
John Breakwell

"MP" <mycomem...@gmail.com> wrote in message

news:24d62ce7-f8d7-45a7-b17a-05db649da30a@b5g2000vbl.googlegroups.com...


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »