INFO: Ordering of Transacted Reads and Writes (173327)
The information in this article applies to:
- Microsoft Message Queue Server (MSMQ) 1.0
This article was previously published under Q173327 SUMMARY
When messages are sent from the same machine, all of the messages
associated with a given transaction are grouped together when read; and
that group of messages arrives in the order that the messages are
committed. The following pseudo code scenario shows the ordering of the
messages:
begin trans1
begin trans2
write trans1.msg1
write trans2.msg1
write trans1.msg2
write trans2.msg2
commit trans2
commit trans1
This results in the following ordering of messages when read from the
queue:
trans2.msg1, trans2.msg2, trans1.msg1, trans1.msg2
However, this ordering may be different in some cases, as described below.
REFERENCES
MSMQ SDK Online help
| Modification Type: | Major | Last Reviewed: | 3/9/2000 |
|---|
| Keywords: | kbinfo KB173327 |
|---|
|