Skip to content

Creation of the exchanges, queues, and their bindings #2470

Discussion options

You must be logged in to vote

It is very convenient on the development phase, that the project manages those RabbitMQ object.
In production I'd recommend to manage them on broker side, when some permissions and other restrictions may apply.
If they exist on a broker, Spring AMQP does not override them.
This way the code might remain in your project and it won't hurt in production.
Unless some mismatched basic properties are different.

In the end both variants are OK: might fully depend on the development team preferences.
For example Spring Cloud Stream Binder abstraction even has a dedicated feature to populate (or modify) those broker objects for bindings.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by kstojanovski-novatec
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants