Get the Message - MSMQ

Speed vs Reliability

There are two techniques that MSMQ uses to transmit messages across the network. The first (and the default) results is a fast transfer that has the possibility that a message may be lost. This is due to the fact that messages are kept in memory as they are being routed. If the routing computer were to crash before the message could be sent to the destination, it would be lost. The second technique causes the message to be placed on the disk of the routing computer before it continues on its journey. The resulting I/O causes a degradation in performance, but it does ensure delivery. The Delivery property in the MSMQMessage object is used to control the technique that is used. By setting Delivery to MQMSG_DELIVERY_RECOVERABLE, you ensure that the transaction arrives at its destination. The default value is MQMSG_DELIVERY_EXPRESS.

You might also like...

Comments

About the author

Bruce Johnson Canada

I am the owner of a small application development consulting company that specialized in the design and implementation of Internet-based applications. While there are others who can make a web ...

Interested in writing for us? Find out more.

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“Java is to JavaScript what Car is to Carpet.” - Chris Heilmann