Node.js RabbitMQ Queue Cleanup Script
In my original rmq-based architecture at printio I never did queue auto-delete; all the queues stay alive even after they’re needed.
The problem with this is that some of the queues are still getting fed by exchanges. Now we have dead queues with waiting messages.
Super simple to script a delete for queues with more than x messages:
Dead simple.