Pro Msmq: Microsoft Message Queue Programming
NO APPLICATION IS AN ISLANDo o o In today's connected world, each and every professional developer must assume that his or her applications will need to communicate with other applications. Distributed applications, however, present a large set of unique challenges, like, what do I do when the network is disconnected? How do I coordinate the actions of two separate applications? How do I handle peak times? How do I guarantee delivery? How do I upgrade my application without breaking the communication? We at the Microsoft Message Queue (MSMQ) team have worked hardto provide an elegant solution to these questions and many others. This book will help you leverage this work by using MSMQ in your distributed applications so that you will be able to concentrate on the business logic rather than network problems. What is MSMQ? MSMQ is message-oriented middleware (MOM) that comes as a standard component ofWindows and allows applications to exchange messages among them using queues-outgoing queues for Iilessages waiting to be sent, and incoming queues for messages waiting to be received. Queues-like dams-guarantee nice and controlled flow of information, even when the network is congested or suffers frequent disconnects. Moreover, queues are a very natural programming metaphor. Most people would agree that working from a queue of to-do tasks is more effective than responding to requests on the spot. The same is true for computer programs. Programs that process queues of incoming messages tend to be simpler and more efficient than programs acting on interrupts.