Hello. In one of our pipelines, we end with a call to a Rabbit MQ Producer node. The node publishes to a fanout exchange. Later in another application, we create a listener queue on that same exchange and listen for messages on the newly created queue. This happens for each docker container running our application which is listening on the fanout exchange. As a side effect, of the Rabbit MQ Producer node creating the exchange, it is also creating a queue along with it. This results in a queue being sent all the messages that are sent to the exchange which has no consumers. We would like to prevent this default queue from being created. Is there a way to do that in the RabbitMQ Producer node?
Below I will outline the steps to try and make the situation more clear
- Rabbit MQ Producer node creates fanout Exchange
- Rabbit MQ Producer node creates queue “A” on the exchange
- Instance 1 of separate application creates queue “B” on the exchange
- Instance 2 of separate application creates queue “C” on the exchange
- Queues “A”, “B” and “C” get message M1
- Instance 1 consumes M1 off B
- Instance 2 consumes M1 off C
- Queue A still has M1 and will always have M1
We want to eliminate the existence of queue A in the above example. It is not desirable for Instance 1 or 2 to connect to queue A.
Thanks for any help.