Let's do the message queue!
-- An Introduction In MSMQ
By sebastianweber
Theserverside.net The previous article introduces Message Queue ( MSMQ ).Article( English version ). It is recommended.
This article introduces MSMQ Basic Programming (such as storing and receiving messages) and basic management functions (such as creating and deleting queues ). Although . Net API It is very convenient and simple, but in practice MSMQ In the project, you need to understand the concept of message queue as the architecture. Use MSMQ The system is more loosely coupled and therefore more autonomous ( Autonomous ). Note that a message is only a message, not an internal business object. Therefore, in the design of new distributed applicationsProgramWe recommend that you follow the Service-Oriented Architecture ( Service-Oriented Architecture ): By explicitly defining boundaries and creating autonomous services MSMQ To take charge of the Interaction part.
This article includes the following content:
1. MSMQDevelopment and features
2.Simple ExampleMSMQEncodingC #
3. MSMQManagement, such as creating or detecting message queues, deleting messages from queues, deleting message queues, and setting access permissions for message queues.
4.Send message and message object attributes
5. Dead Message Queue ( Dead letter queue ), Management Queue ( Administration queue ) And response type ( Acknowledge types )
6.Receive messages
7.Use transaction message queue
8. MSMQ 3.0
Although WINXP/Windows 2003 Supported MSMQ 3.0 , And MSMQ 3.0 Includes some new features, such HTTP Send messages and support message distribution lists, but currently . NET Framework 1.1 These new features are not yet supported, . NET Framework 2.0 These new features are supported.
Source URL:
Http://theserverside.net/articles/showarticle.tss? Id = letsdomessagequeue
Posted by sebastianweber