Book Image

RabbitMQ Essentials. - Second Edition

By : Lovisa Johansson, David Dossot
Book Image

RabbitMQ Essentials. - Second Edition

By: Lovisa Johansson, David Dossot

Overview of this book

RabbitMQ is an open source message queuing software that acts as a message broker using the Advanced Message Queuing Protocol (AMQP). This book will help you to get to grips with RabbitMQ to build your own applications with a message queue architecture. You’ll learn from the experts from CloudAMQP as they share what they've learned while managing the largest fleet of RabbitMQ clusters in the world. Following the case study of Complete Car, you’ll discover how you can use RabbitMQ to provide exceptional customer service and user experience, and see how a message queue architecture makes it easy to upgrade the app and add features as the company grows. From implementing simple synchronous operations through to advanced message routing and tracking, you’ll explore how RabbitMQ streamlines scalable operations for fast distribution. This book will help you understand the advantages of message queue architecture, including application scalability, resource efficiency, and user reliability. Finally, you’ll learn best practices for working with RabbitMQ and be able to use this book as a reference guide for your future app development projects. By the end of this book, you’ll have learned how to use message queuing software to streamline the development of your distributed and scalable applications.
Table of Contents (8 chapters)

Discovering the types of RabbitMQ queues

Queues in RabbitMQ can be durable or transient. Classic mirrored queues are recommended for transient message handling, while quorum queues are a good alternative for durable queues.

Durable queue metadata is stored on disk while a transient queue stores it in memory, when possible. Another queue type, lazy queues, writes the contents to disk as early as possible for both durable and transient messages.

Due to technical limitations in classic mirrored queues, it is difficult to make guarantees on how failures are handled. The RabbitMQ documentation ( recommends that users get familiar with quorum queues and consider them instead of classic mirrored queues where possible.

Mirroring queues

In the case of CC, the data in the queues needs to be highly available. Mirrored queues provide this type of security. Queue mirroring uses a master-mirror design pattern. All message queuing and dequeuing actions happen with the...