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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.