How to create exchanges and queues

Last updated on
30 April 2025

You have to declare all exchanges, queues and its bindings within a json file. The two implementation modules need these for different purposes: The dummy module simulates the routing from exchanges to queues using the given information.

The AMQP module sends the infos as is to the message broker - this is done before producing or consuming any message.

The expected json file must contain the following data:

  1. An "exchanges" array containing nested objects with properties like "name", "type", ..
  2. A "queues" array containing nested objects with properties like "name", "durable", ..
  3. Every queue needs an array property "bindings" that specyfies the routing from exchanges to queues
  4. Each binding is an object with the properties "exchange" and optionally "routing_key")

See the introduction to AMQP concepts to lean more about the different exchange types (topic, direct, fanout, ...) plus their bindings and this json file for an example.

Note that the dummy module is not supporting all AMQP concepts, see the page about the dummy module the for more details.

Help improve this page

Page status: Not set

You can: