Exchange
An AMQP exchange is a message-routing entity that receives published messages and routes them to queues according to its type, bindings, and routing keys.
Spring in Action, Sixth Edition
An exchange is an AMQP message-routing component that accepts messages and routes them to queues according to exchange type, bindings, and routing keys.
- How it is used
- Routes RabbitMQ messages between producers and queues according to exchange types, bindings, and routing keys.
- How deep it goes
- Explains routing relationships and exchange types, then demonstrates Spring sending without detailing broker configuration internals.
- Examples
- Uses default, direct, topic, fanout, headers, and dead-letter exchanges plus RabbitTemplate-based taco-order messages.
- What you can do after
- Apply it via RabbitTemplate to send converted objects or raw messages through exchanges and routing keys.
Read how Spring in Action, Sixth Edition explains exchange →
Bootstrapping Microservices, Second Edition: With Docker, Kubernetes, GitHub Actions, and Terraform
A RabbitMQ exchange is a message-routing component that receives published messages and directs them to queues according to bindings and routing rules.
- How it is used
- Routes indirect microservice notifications from one publisher to multiple independent recipients.
- How deep it goes
- Explains fanout publishing, anonymous queues, bindings, consumption, and acknowledgement with runnable configuration examples.
- Examples
- Uses a `Viewed` fanout exchange, anonymous queues, history and recommendations services, and amqplib publisher and consumer listings.
- What you can do after
- Operate/configure a fanout exchange with amqplib, bind recipient queues, publish JSON events, consume them, and acknowledge processing.
Quarkus in Action
A RabbitMQ exchange is a message-routing entity that directs published messages to one or more queues.
- How it is used
- Routes invoices from Quarkus Reactive Messaging channels through RabbitMQ exchanges to queues.
- How deep it goes
- Explains channel mapping and exchange-queue configuration, but does not detail exchange types or routing-key behavior.
- Examples
- Uses an invoices exchange, invoices queue, ReservationService producer, and BillingService consumer.
- What you can do after
- Apply it via Quarkus Reactive Messaging configuration to connect invoice producers and consumers through RabbitMQ.
Related concepts
- multiple-recipient messageused by · A multiple-recipient message is a message distributed independently to multiple recipients across an application.
- queueproduces · A queue is an ordered collection that holds items for retrieval or processing, typically removing them in the order they were added.
- RabbitMQimplemented by · RabbitMQ is an open-source message broker that routes and delivers messages between producers and consumers using queues and messaging protocols.
- anonymous queueuses · A RabbitMQ queue created without a specified name so the broker generates a unique queue name for one consumer.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.


