rabbitmq-event-manager icon indicating copy to clipboard operation
rabbitmq-event-manager copied to clipboard

Message Re-queue and get the number of messages in queue

Open Tekrajs opened this issue 3 years ago • 0 comments

Hi, I was trying to re-queue message at certain conditions. As you described in doc, I tried by responding false but it did,t work. I wanted to try what you have proposed in https://github.com/mimiz/rabbitmq-event-manager/issues/18 issue, but i couldn't exactly implement it.

could you please try showing us how to achieve Re-queue as you suggested.

Also, the current amqp library allows to get count of the messages in the queue as follows.

var connection = require("amqp").createConnection(); connection.exchange("exampleExchange", {/*...*/}, function(exchange) { connection.queue("exampleQueue", {/*...*/}, function(queue, messageCount, consumerCount){ console.log("Message count", messageCount); console.log("Consumer count", consumerCount); }); });

How can we achieve that in this library ?

Tekrajs avatar May 15 '21 10:05 Tekrajs