Message queuing in RabbitMQ

At this point, we have already covered a few of the exchange types, but we will cover all of them here. The first and simplest exchange type is direct. It works by matching the routing key to the routing key that the queue used when binding. If they match, the queue gets the message. The next type is topic. We used this in our PacktChat application. The routing key can be pattern based. This allows workers to select a broad range of messages easily. If you have designed your routing keys to be hierarchical, then you can easily create queues that are inclusive or exclusive. Our logging exchange is an example of this. The debug queue will get any message put in the queue that matches *.log. The error queue only gets messages ...

Get Building Scalable Apps with Redis and Node.js now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.