Desktop-as-a-Service Designed for Any Cloud ? Nutanix Frame
Hello and welcome to my article. Today, I'd like to speak about MessageQueue in .NET. But, to do that, I need to explain how MSMQ works in the background. So, this will be Part 1, and in Part 2 we will do it practically in .NET
What Is MSMQ?
Microsoft Message Queuing (MSMQ) is a messaging protocol that allows applications running on separate processes or servers to communicate. A queue, in this sense, is a temporary storage location from which messages can be sent and received, thus enabling communication across networks and between Windows PCs, which may not always be connected.
To install MSMQ, you do not need any third-party software (just in case you were wondering). Follow these steps:
- Open your Control Panel.
- Open Programs and Features, as shown in Figure 1.
Figure 1: Programs and Features
- Select Turn Windows Features on or off. This produces another dialog box.
- Select the checkboxes next to MSMQ, as shown in Figure 2.
Figure 2: Install MSMQ
- Click OK. It will install and it will take some time, so be patient.
After it has installed, let's make sure by using the next few steps:
- Open the Control Panel.
- Open Administrative Tools, as shown in Figure 3.
Figure 3: Administrative Tools
- Open Computer Management, as you can see in Figure 4.
Figure 4: Computer Management
You should see the Message Queueing service. This means it is ready.
We will come back to this after we have written the programs to communicate with one another.
Now that we have done the background work, we are ready to create two different apps to communicate with one another. This will be the substance of Part 2. Until then, happy coding.