Integration / RabbitMQ Interview Questions
What are the types of exchanges in RabbitMQ?
RabbitMQ ships with four built-in exchange types, each using a different rule to decide which queues receive a message.
| Exchange Type | Routing Behavior |
| Direct | delivers to queues whose binding key matches the message's routing key exactly. |
| Fanout | ignores the routing key and broadcasts to every bound queue. |
| Topic | matches the routing key against a binding pattern using * (one word) and # (zero or more words). |
| Headers | routes based on message header values instead of the routing key. |
Choosing the right type is largely about how selective the routing needs to be - fanout for pure broadcast, direct for exact matching, topic for hierarchical matching, and headers for multi-attribute matching.
order.*?
More Related questions...