Show List

RabbitMQ Exchanges

RabbitMQ exchange is used to route the message from producer to one or more message queues. Messages are routed based on binding keys, routing keys and header attributes. There are following types of exchanges:
  • Direct Exchange: Routes the message to the queues with key exactly matching the routing key of the message. Example: JMS Queue exchange.
  • Topic Exchange: Here the binding key of the queue partially matches the routing key of the message. Using the wildcard character message can be sent to multiple queues. Example JMS Topic exchange.
  • Fanout exchange: Here the exchange routes the message to all the queues that are bound to it. The routing keys and binding keys are ignore.
  • Headers Exchange: Header exchange routes the message to queues based on the header attribute instead of the routing keys.

    Leave a Comment


  • captcha text