Puneet Varma (Editor)

RabbitMQ

Updated on
Edit
Like
Comment
Share on FacebookTweet on TwitterShare on LinkedInShare on Reddit
Developer(s)
  
Pivotal Software

Operating system
  
Cross-platform

Written in
  
Erlang

License
  
Mozilla Public License

Stable release
  
3.6.6 / November 21, 2016 (2016-11-21)

Type
  
AMQP, message-oriented middleware

RabbitMQ is open source message broker software (sometimes called message-oriented middleware) that implements the Advanced Message Queuing Protocol (AMQP). The RabbitMQ server is written in the Erlang programming language and is built on the Open Telecom Platform framework for clustering and failover. Client libraries to interface with the broker are available for all major programming languages.

Contents

History

Rabbit Technologies Ltd., originally developed RabbitMQ. Rabbit Technologies started as a joint venture between LShift and CohesiveFT in 2007, and was acquired in April 2010 by SpringSource, a division of VMware. The project became part of Pivotal Software in May 2013.

The source code is released under the Mozilla Public License. The project consists of:

  • The RabbitMQ exchange server itself
  • Gateways for AMQP, HTTP, Streaming Text Oriented Messaging Protocol (STOMP), and MQTT protocols
  • AMQP client libraries for Java, .NET Framework, and Erlang. (AMQP clients for other languages are available from other vendors.)
  • A plug-in platform for custom additions, with a pre-defined collection of supported plug-ins, including:
  • A "Shovel" plug-in that takes care of moving or copying (replicating) messages from one broker to another.
  • A "Federation" plug-in that enables efficient sharing of messages between brokers (at the exchange level).
  • A "Management" plug-in that enables monitoring and control of brokers and clusters of brokers.
  • Examples

    This section gives sample programs written in Python for sending and receiving messages using a queue.

    Sending

    The following code fragment establishes a connection, makes sure the recipient queue exists, then sends a message and finally closes the connection.

    Receiving

    Similarly, the following program receives messages from the queue and prints them on the screen:

    References

    RabbitMQ Wikipedia