Skip to content
Theory · RabbitMQ: exchanges and queues · lesson 3 of 7

Direct, fanout, topic and headers

An exchange places messages into queues, but exchanges differ in how they choose. Some check the whole routing key, others check it against a pattern, and others ignore the key altogether. The type is set when the exchange is declared, and it decides which queues get a message.

In this lesson

  • A test bench of four exchanges
  • Four types
  • What ended up in the queues
  • Tricky topic cases
  • Arguments with x-
  • Common mistake
  • Key points