Skip to content

Create delayed queues as quorum when it's enabled #564

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

Closed

Conversation

TomKeur
Copy link

@TomKeur TomKeur commented Jul 27, 2023

Fixes #563

@khepin
Copy link
Collaborator

khepin commented Jul 28, 2023

I've enabled the test runs. Can you take a look at the failures there.

@TomKeur
Copy link
Author

TomKeur commented Jul 29, 2023

Thanks for the quick reply! I've fixed the styling issue, somehow the last version of Laravel Pint did not come up this error, but I've fixed it by using the same composer command used in the GitHub Action workflow :).

@khepin
Copy link
Collaborator

khepin commented Jul 31, 2023

@adm-bome any thoughts? If not I'll merge tomorrow.

@TomKeur
Copy link
Author

TomKeur commented Aug 2, 2023

For your info: today I've upgraded to RabbitMQ 3.12.2, now I'm able to set the Default Queue type per vhost, when it's set to quorum, every queue generated will be a quorum queue.

But I guess it's still a nice addition for people working with an older version of RabbitMQ.

@adm-bome
Copy link
Collaborator

adm-bome commented Aug 3, 2023

@khepin I will look in to it. (Will comment in 2 à 3 days)

@TomKeur
Copy link
Author

TomKeur commented Aug 10, 2023

Any news?
I was thinking, maybe we should make it a own configuration parameter, since this could be a "breaking" change, because it changes the default behavior.

@adm-bome
Copy link
Collaborator

My concern.

When enabling delay queues, an inline option could be set to also make delay queues quorum. When you want to and quorum was set for the processing queue.

Also testing for this config and the functional part would be nice addition.

@TomKeur
Copy link
Author

TomKeur commented Aug 15, 2023

After doing some research, it seems like for the default we do not want to use Quorum queues for Delay queues, see:

https://www.rabbitmq.com/quorum-queues.html#use-cases

"When Not to Use Quorum Queues",

Temporary nature of queues: transient or exclusive queues, high queue churn (declaration and deletion rates)

But since RabbitMQ 3.12 you can set the default on vhost level in the GUI, when creating a new vhost.
So maybe it should be an option, to set the "Default" for delay queues, for example

'x-queue-type' => 'classic',

@adm-bome
Copy link
Collaborator

adm-bome commented Oct 3, 2023

So, it makes no sense and will not add any performance to the processing of messages.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Delayed queues as type quorum queue
3 participants