Book Image

Learning RabbitMQ

By : Martin Toshev
Book Image

Learning RabbitMQ

By: Martin Toshev

Overview of this book

RabbitMQ is Open Source Message Queuing software based on the Advanced Message Queue Protocol Standard written in the Erlang Language. RabbitMQ is an ideal candidate for large-scale projects ranging from e-commerce and finance to Big Data and social networking because of its ease of use and high performance. Managing RabbitMQ in such a dynamic environment can be a challenging task that requires a good understanding not only of how to work properly with the message broker but also of its best practices and pitfalls. Learning RabbitMQ starts with a concise description of messaging solutions and patterns, then moves on to concrete practical scenarios for publishing and subscribing to the broker along with basic administration. This knowledge is further expanded by exploring how to establish clustering and high availability at the level of the message broker and how to integrate RabbitMQ with a number of technologies such as Spring, and enterprise service bus solutions such as MuleESB and WSO2. We will look at advanced topics such as performance tuning, secure messaging, and the internals of RabbitMQ. Finally we will work through case-studies so that we can see RabbitMQ in action and, if something goes wrong, we'll learn to resolve it in the Troubleshooting section.
Table of Contents (18 chapters)
Learning RabbitMQ
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Installing RabbitMQ plugins


So far, we have used the rabbitmq-plugins utility in order to enable the management plugin (already part of the RabbitMQ installation). You may want to install additional (for example, community) plugins that allow you to extend the features of the broker, thus giving you the opportunity to implement a wider range of messaging scenarios. Installing a plugin is a two-step process:

  • Download the ez archive (Erlang ZIP archive) of the plugin and copy it to the plugins folder from the RabbitMQ installation

  • Enable the plugin with the rabbitmq-plugins utility

Let's say we want to be able to send e-mails from our messages directly from the RabbitMQ instance that receives the messages. For that reason, you can install the rabbitmq_email plugin that provides the AMQP-SMTP and SMTP-AMQP protocol conversion plugins. Download the AMQP-SMTP plugin from https://www.rabbitmq.com/community-plugins/v3.4.x/gen_smtp-0.9.0-rmq3.4.x-61e19ec5-gita62c02e.ez and copy it to the plugins folder...