Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
RabbitMQ Essentials

You're reading from   RabbitMQ Essentials Build distributed and scalable applications with message queuing using RabbitMQ

Arrow left icon
Product type Paperback
Published in Aug 2020
Publisher Packt
ISBN-13 9781789131666
Length 154 pages
Edition 2nd Edition
Languages
Arrow right icon
Authors (2):
Arrow left icon
Lovisa Johansson Lovisa Johansson
Author Profile Icon Lovisa Johansson
Lovisa Johansson
David Dossot David Dossot
Author Profile Icon David Dossot
David Dossot
Arrow right icon
View More author details
Toc

Working with channels and queues

CC's drivers and customers are enjoying the request taxi feature that was rolled out in Chapter 2, Creating a Taxi Application. First, publishing messages to the direct exchange for customers ordering a single taxi was explained, and then instructions were given on implementing the topic exchange, which customers use when ordering a taxi with specific requirements. In both cases, the consumer is bound to the channel that was used to consume a particular queue. If this channel was closed, the consumer would stop receiving messages. Because a channel cannot be reopened and has to be recreated from scratch, both the channel and its consumption must be re-established if there are any problems.

Let's walk through some important points about consumers and queues in RabbitMQ:

  • A queue can have multiple consumers (unless the exclusive tag is used).
  • Each channel can have multiple consumers.
  • Each consumer uses server resources, so it is best to make sure...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €18.99/month. Cancel anytime