Message Routing

Thus far, all message interaction in this book has been unidirectional, flowing from message publishers to consumers. What if a consumer wants to alert a publisher that processing is complete and send a reply, or a taxi driver wants to acknowledge a taxi booking request?

This chapter covers steps 5 to 10 in the taxi application system architecture, where a taxi driver responds to the customer and confirms a booking request. The taxi publishes its current location to a queue. The customer's application connects to the broker through WebSockets and subscribes to location updates, delivered directly from the taxi.

The Remote Procedure Call (RPC) request-response concept will be introduced, along with how to route a response ...

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.