How to create exchanges and queues
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:
- An "exchanges" array containing nested objects with properties like "name", "type", ..
- A "queues" array containing nested objects with properties like "name", "durable", ..
- Every queue needs an array property "bindings" that specyfies the routing from exchanges to queues
- 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
You can:
- Log in, click Edit, and edit this page
- Log in, click Discuss, update the Page status value, and suggest an improvement
- Log in and create a Documentation issue with your suggestion