[rabbitmq-discuss] Pre-create queues and exchanges
dmitry.andrianov at alertme.com
Fri Jun 14 14:48:37 BST 2013
What is the best practices on who should create all the queues and
I see the three options:
1. consumer-app creates everything and it MUST be started before the
2. both consumer-app and producer-app create these objects on startup so
it does not matter which one starts first.
3. queues and exchanges are put into the broker configuration so they
are created automatically when broker starts.
It looks to me that #3 would be the best way. The apps do not need to
have any code which initialises stuff, user accounts
applications use can be restricted etc.
But I cannot find the "official" way of doing it.
We tried using shovel plugin because it allows you to declare all these
queues and exchanges to be created.
It kind of works but it feels a bit dodgy.
So what is the right way?
This email is for the use of the intended recipient(s) only.
If you have received this email in error, please notify the sender immediately and then delete it.
If you are not the intended recipient, you must not use, disclose or distribute this email without the
author's prior permission. AlertMe.com Ltd. is not responsible for any personal views expressed
in this message or any attachments that are those of the individual sender.
AlertMe.com Ltd, 30 Station Road, Cambridge, CB1 2RE, UK.
Registered in England, Company number 578 2908, VAT registration number GB 895 9914 42.
More information about the rabbitmq-discuss