Chapter 5. Don’t get messages; consume them

This chapter covers

  • Consuming messages
  • Tuning consumer throughput
  • When consumers and queues are exclusive
  • Specifying a quality of service for your consumers

Having gone deep into the world of message publishers in the last chapter, it’s now time to talk about consuming the messages your publishers are sending. Consumer applications can be dedicated applications with the sole purpose of receiving messages and acting on them, or receiving messages may be a very small part of a much bigger application. For example, if you’re implementing an RPC pattern with RabbitMQ, the application publishing an RPC request is also consuming the RPC reply (figure 5.1).

Figure 5.1. An RPC publisher that publishes ...

Get RabbitMQ in Depth 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.