Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying RabbitMQ Essentials
  • Table Of Contents Toc
  • Feedback & Rating feedback
RabbitMQ Essentials

RabbitMQ Essentials

By : Johansson, David Dossot
3.7 (3)
close
close
RabbitMQ Essentials

RabbitMQ Essentials

3.7 (3)
By: 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)
close
close

Keeping queues and brokers clean

A clean broker is an efficient broker. To keep power and space at an optimum level, making sure queues and brokers are clean is easy. RabbitMQ provides mechanisms for auto-deleting messages and queues to keep space free. These include setting the time to live (TTL) and auto-deletion of unused queues, which are detailed in the following sections.

Setting the TTL for messages or the max-length on queues

Queues providing messaging support for long-running processes may grow extremely large. A too large queue might affect the performance of the broker. Setting the TTL allows messages to be removed from the queue after a certain time. If specified, these messages enter the dead letter exchange. This saves more messages and even handles potential issues without losing data.

Set a reasonable TTL with the x-message-ttl property when declaring a queue. Make sure to provide x-dead-letter-exchange and x-dead-letter-routing-key to avoid losing messages entirely.

It...

Unlock full access

Continue reading for free

A Packt free trial gives you instant online access to our library of over 7000 practical eBooks and videos, constantly updated with the latest in tech
bookmark search playlist download font-size

Change the font size

margin-width

Change margin width

day-mode

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Delete Bookmark

Modal Close icon
Are you sure you want to delete it?
Cancel
Yes, Delete

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY