Microsoft Message Queuing Explained

Microsoft Message Queuing (MSMQ) is a message queue implementation developed by Microsoft and deployed in its Windows Server operating systems since Windows NT 4 and Windows 95. Windows Server 2016 and Windows 10 also includes this component. In addition to its mainstream server platform support, MSMQ has been incorporated into Microsoft Embedded platforms since 1999 and the release of Windows CE 3.0.[1]

Overview

MSMQ is a messaging protocol that allows applications running on separate servers/processes to communicate in a failsafe manner. A queue is a temporary storage location from which messages can be sent and received reliably, as and when conditions permit. This enables communication across networks and between computers, running Windows, which may not always be connected. By contrast, sockets and other network protocols assume that direct connections always exist.

MSMQ has been available to developers on Microsoft platforms since 1997,[2] and has commonly been used in enterprise software built with Visual Studio, both in the native pre-.NET incarnation (version 5 and 6), and in Visual Studio .NET. Microsoft also has incorporated MSMQ in its messaging technology framework, Windows Communication Foundation (WCF). Under WCF, MSMQ can be used for providing secure, reliable transport with a unified programming model compatible with other communications standards.

MSMQ is responsible for reliably delivering messages between applications inside and outside the enterprise. MSMQ ensures reliable delivery by placing messages that fail to reach their intended destination in a queue and then resending them once the destination is reachable. It also supports security and priority based messaging. Dead letter queues can be created for looking at messages which timed out or failed for other reasons.

MSMQ supports both durable and non-durable messaging to make a trade off between performance or consistency by writing messages to disk or only in RAM. Non-durable messaging can only be achieved by sending express messages via non-transactional queues.

MSMQ also supports transactions. It permits multiple operations on multiple queues, with all of the operations wrapped in a single transaction, thus ensuring that either all or none of the operations will take effect. Microsoft Distributed Transaction Coordinator (MSDTC) supports transactional access to MSMQ and other resources to achieve transactional exact once processing.

The following ports are used for Microsoft Message Queuing operations:

Version references

Uses

MSMQ is heavily used in various Windows Platform-based contact center applications which uses this service for internal notifications and services.

See also

External links

Notes and References

  1. Web site: Microsoft Windows CE 3.0 Message Queuing Service. 29 June 2006. 2009-11-25. Microsoft Developer Network.
  2. http://www.informationweek.com/673/73iudn2.htm InformationWeek News Connects The Business Technology Community
  3. http://support.microsoft.com/kb/178517 TCP ports, UDP ports, and RPC ports that are used by Message Queuing
  4. Web site: Cloud Administrator . https://web.archive.org/web/20181124105920/https://azureadministrator.blogspot.com/ . dead . 2018-11-24 . 2006-08-05 . Azure Cloud Administrator . Dayasagar Roy.
  5. Web site: Cloud Administrator . https://web.archive.org/web/20181124105920/https://azureadministrator.blogspot.com/ . dead . 2018-11-24 . 2006-08-05 . Azure . Dayasagar Roy .
  6. Web site: Cloud Administrator . https://web.archive.org/web/20181124105920/https://azureadministrator.blogspot.com/ . dead . 2018-11-24 . 2006-08-05 . Azure . Dayasagar Roy.
  7. http://blogs.msdn.com/jolson/archive/2008/01/29/ws08-feature-of-the-week-14-sub-queues-in-msmq-4-0.aspx Sub-queues in MSMQ 4.0
  8. Web site: Cloud Administrator . 2006-08-05. Azure. Dayasagar Roy.
  9. Web site: ISO/IEC 19464:2014 - Information technology -- Advanced Message Queuing Protocol (AMQP) v1.0 specification. www.iso.org. en. 2017-11-07.