liveBook · Manning

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.

How 3 Manning books explain it

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.

Read how Bootstrapping Microservices, Second Edition: With Docker, Kubernetes, GitHub Actions, and Terraform explains exchange →

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.

Read how Quarkus in Action explains exchange →

Related concepts

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.