Closed outjoker closed 3 years ago
Hi @outjoker,
Thank you for taking to explain the problem. In this case I think the issues is a slight misunderstanding of RabbitMQ terminology. The consumer is your node application, so when it was stopped the RabbitMQ dashboard didn't display it. To continue consuming messages you will need to leave your application running
that's right @cressie176 my node app was the consumer here and once i stopped it, the dashboard stopped showiing it
That's the expected behaviour @outjoker. I'm no longer sure what you are asking.
However, if you just want to monitor whether a queue has consumers, there are various ways but all are outside the scope of Rascal. For example, you could use the RabbitMQ Management Plugin's HTTP API to poll the number of consumers and report it it fell to zero. Popular monitoring tools such as DataDog will have out of the box integrations too.
thanks @cressie176 for the inputs, will definitely check them out. I will close this issue now as the usecase i am pointing is not within the scope of rascal package
I have written a nodejs sample app server, which on application init , tries to create a broker with the following sample rascal configuration file
after crearing the broker, i have also called the broker.subscribe function to establish the subscriber for the respective queues
i have tested the message flow from publisher to the subscriber and everything is working fine. |
but i have stopped my node app and i see that the consumer that got created for the queue got deleted , i had to re-run the broker.subscribe to get the consumer back when consumer is present
when the app is stopped
is there someway using rascal we can check whether the consumers are present or not or if there is someway to get these consumer back?