Configure quorum queues for websocket in Spring app

83 views
Skip to first unread message

Dan Tsig

unread,
Oct 19, 2023, 9:05:09 AM10/19/23
to rabbitmq-users
Hi, we are using websockets with classic queues,  
now trying to migrate to quorum queues, and regardless this is default queue type in virtual host, it still created as classic for websocket queues. 

Please point to documentation or way to configure them as quorum.

Gary Russell

unread,
Oct 19, 2023, 9:11:11 AM10/19/23
to rabbitm...@googlegroups.com
If you are using Spring's QueueBuilder​ to define your Queue​ beans (for auto declaration by Spring when the connection is opened), call the quorum()​ method on the builder.

If you are defining the Queue​ bean yourself, just set the x-queue-type​ argument.

/**

* Set the queue argument to declare a queue of type 'quorum' instead of 'classic'.

* @return the builder.

* @since 2.2.2

*/

public QueueBuilder quorum() {

    return withArgument("x-queue-type", "quorum");

}



From: rabbitm...@googlegroups.com <rabbitm...@googlegroups.com> on behalf of Dan Tsig <denys.ts...@gmail.com>
Sent: Thursday, October 19, 2023 9:05 AM
To: rabbitmq-users <rabbitm...@googlegroups.com>
Subject: [rabbitmq-users] Configure quorum queues for websocket in Spring app
 
!! External Email
Hi, we are using websockets with classic queues,  
now trying to migrate to quorum queues, and regardless this is default queue type in virtual host, it still created as classic for websocket queues. 

Please point to documentation or way to configure them as quorum.

--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-user...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/rabbitmq-users/e556bf03-97b1-4be1-8024-a60d060d36e1n%40googlegroups.com.

!! External Email: This email originated from outside of the organization. Do not click links or open attachments unless you recognize the sender.

Dan Tsig

unread,
Oct 19, 2023, 9:41:30 AM10/19/23
to rabbitmq-users
thanks for answer, we are creating queues using MessageSecurityMetadataSourceRegistry
with simpSubscribeDestMatchers()
and seems that this registry doesn't have quorum configuration.

Gary Russell

unread,
Oct 19, 2023, 9:45:50 AM10/19/23
to rabbitm...@googlegroups.com
That class is from Spring Security and has nothing to do with AMQP or RabbitMQ, so I don't see how you can be "creating queues" with it.

I suggest you move this to Stack Overflow, tagged with spring-amqp and show your code and configuration.

Sent: Thursday, October 19, 2023 9:41 AM
To: rabbitmq-users <rabbitm...@googlegroups.com>
Subject: Re: [rabbitmq-users] Configure quorum queues for websocket in Spring app
 
!! External Email
Reply all
Reply to author
Forward
0 new messages