Sending Messages to Multiple Taxi Drivers

Chapter 2, Creating a Taxi Application, included information on how to connect to and consume messages from RabbitMQ. This chapter demonstrates setting the prefetch value, which specifies the number of messages being sent to the consumer at the same time. It also covers how consumers can either manually acknowledge messages or receive the messages without acknowledgment, the former allowing a zero-message loss design.

A new feature is requested of the Complete Car (CC) team, as the back office wants to be able to send information messages to all taxis at once. This is a prime opportunity to introduce the fanout exchange, which routes messages to all queues bound to them irrespective of the routing ...

Get RabbitMQ Essentials - Second Edition 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.