MSMQ Study Notes 1-Overview, msmq Study Notes
I. What is MSMQ?
Message Queuing (MSMQ) is a Message-oriented middleware developed by Microsoft and can be used for asynchronous communication within the program or between programs. The main mechanism is: the Message sender puts the information he wants to send into a container (called Message), and then saves it to a Message Queue (Message Queue) in the public space of the system) local or remote message receiving program then extracts the messages sent to it from the queue for processing. This process is displayed.
Ii. advantages of using MSMQ
MSMQ supports offline communication between two applications. The receiver and the sender do not need to run at the same time or on the same network. The receiver does not need to stay online, the sender can send the message first. After a period of time, the receiver can also receive the message.
3. basic process of using MSMQ
1. Start the MSMQ Service, choose Control Panel> program and function> disable/enable windows function> Add MSMQ function, and select all options.
2. Create a Message Queue.
3. Open the Message Queue.
4. send the Message to the Message Queue or receive the Message from the Message Queue.
5. Disable Message Queue.