-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
Using AMQP auto-setup in all cases, not just in debug #30579
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using AMQP auto-setup in all cases, not just in debug #30579
Conversation
src/Symfony/Component/Messenger/Tests/Transport/AmqpExt/ConnectionTest.php
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(with minor typo)
another step forward for Messenger :)
src/Symfony/Component/Messenger/Tests/Transport/AmqpExt/ConnectionTest.php
Outdated
Show resolved
Hide resolved
069ab5f
to
503c209
Compare
Ready now! |
Good point 👍 |
Thank you @weaverryan. |
…(weaverryan) This PR was merged into the 4.3-dev branch. Discussion ---------- Using AMQP auto-setup in all cases, not just in debug | Q | A | ------------- | --- | Branch? | master | Bug fix? | yes and no | New feature? | no | BC breaks? | yes | Deprecations? | no-> | Tests pass? | yes | Fixed tickets | Related to #29476 | License | MIT | Doc PR | TODO Currently AMQP does auto-setup of queues/exchanges in dev-mode only. That's a problem for 2 reasons: 1) Behavior in prod is drastically different... and actually... there's not currently a way I know of (easily) to set things up on prod. 2) One of the properties of AMQP is that you typically DO want things to be set up at runtime, as you need them - you usually *do* want auto-setup. This changes the behavior to auto-setup true always. Commits ------- 503c209 Using AMQP auto-setup in all cases, not just in debug
It does setup on EVERY consumed message, is it?. It, for sure, decreases consumption performance. That might also put some undesired load on RabbitMQ itself for it does four actions instead of one |
Currently AMQP does auto-setup of queues/exchanges in dev-mode only. That's a problem for 2 reasons:
Behavior in prod is drastically different... and actually... there's not currently a way I know of (easily) to set things up on prod.
One of the properties of AMQP is that you typically DO want things to be set up at runtime, as you need them - you usually do want auto-setup.
This changes the behavior to auto-setup true always.