0

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?

ie.
  • 5,982
  • 1
  • 29
  • 44
  • Really curious - why do you need this? What would you do with this info about queues being declared or destroyed? – cantSleepNow Jun 02 '18 at 19:58
  • @cantSleepNow, that is how I know that new devices connected or disconnected. – ie. Jun 02 '18 at 20:04
  • In that case maybe just device sends a message to different exchange saying "I've had enough for today" – cantSleepNow Jun 02 '18 at 20:05
  • @cantSleepNow, it would be great, but can't be true... A lot of devices already on the field and update of all of them literally is not possible. And they actually never have a rest, but under some circumstances the connection might be really unstable and we need monitoring it. – ie. Jun 02 '18 at 20:09
  • Oh I see, well in that case, other then querying info via rest api or rabbitmqctl, can't think of anything else... – cantSleepNow Jun 02 '18 at 20:11

1 Answers1

1

The RabbitMQ team monitors the rabbitmq-users mailing list and only sometimes answers questions on StackOverflow.


You want to use the Event Exchange Plugin.

Luke Bakken
  • 8,993
  • 2
  • 20
  • 33