.netrabbitmqrabbitmq-management

How to get notified when new/old RabbitMQ queue declared/destroyed


In our solution thousands of queues might be declared by clients (we actually have one queue per IoT device in our system).

I want to get notified each time when a new queue declared (IoT device connected) or some existing queue destroyed (IoT device disconnected, eg. because of network issues).

Now I load the list of all currently existing queues and intercept it with the previously loaded list. Such approach does not look too much optimal and creates unnecessary server load, which I want to avoid. Is there a better way?


Solution

  • You want to use the Event Exchange Plugin.