Can we use quorum queue for RPC System

234 views
Skip to first unread message

Saineshwar Begari

unread,
Aug 24, 2023, 3:19:22 AM8/24/23
to rabbitmq-users
1. if we have 3 nodes then how it will behave. 

Michal Kuratczyk

unread,
Aug 24, 2023, 3:27:38 AM8/24/23
to rabbitm...@googlegroups.com
In the RPC scenario, you usually want low and stable latency, while data safety is
not that important (a request from a few seconds ago might as well be dropped,
because the request was either already retried or timed out).

Therefore, classic queues v2 (obviously not mirrored) are probably the best option.
They will be the default in 3.13. In 3.12 use x-queue-version=2 when declaring the queue
or default to v2 in the config file:
classic_queue.default_version = 2

Quorum queues favour data safety and therefore have the overhead of replication
and fsync. They also perform some internal batching for higher throughput.
Therefore are not the best choice for low latency.

I'd highly recommend testing your workload though.

Best,

On Thu, Aug 24, 2023 at 9:19 AM 'Saineshwar Begari' via rabbitmq-users <rabbitm...@googlegroups.com> wrote:
1. if we have 3 nodes then how it will behave. 

--
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/e1a5978b-4588-4b9b-a791-705c4b75ba1fn%40googlegroups.com.


--
Michał
RabbitMQ team

Saineshwar Begari

unread,
Aug 24, 2023, 3:57:27 AM8/24/23
to rabbitm...@googlegroups.com
Hi Michal,

Any other way to achieve RPC with durable queues and instant reply scenarios. 
Please guide me.

Michal Kuratczyk

unread,
Aug 24, 2023, 4:03:00 AM8/24/23
to rabbitm...@googlegroups.com
Please say what you don't like about my previous answer rather than requesting a different one. :)



--
Michał
RabbitMQ team
Message has been deleted

Saineshwar Begari

unread,
Aug 24, 2023, 4:17:57 AM8/24/23
to rabbitm...@googlegroups.com
Data safety with RPC scenario. 

Michal Kuratczyk

unread,
Aug 24, 2023, 4:21:53 AM8/24/23
to rabbitm...@googlegroups.com
Please put some effort into asking the questions if you expect further help from me.
Provide you actual requirements ("RPC" gives some idea, but our understanding of "RPC" can be very different).



--
Michał
RabbitMQ team

Saineshwar Begari

unread,
Aug 24, 2023, 4:38:20 AM8/24/23
to rabbitm...@googlegroups.com
Send an email Scenario 
----------
Producer inserts a message in rabbit mq . This message will be read by Consumer and insta reply to that message should be received to the Producer.  

Reading email Scenario
----------
Producer inserts a message in rabbit mq . This message will be read by Consumer and insta reply to that message should be received to the Producer.  


image.png

Michal Kuratczyk

unread,
Aug 24, 2023, 5:32:57 AM8/24/23
to rabbitm...@googlegroups.com
Ok, so in your case the latency is not that important I guess (because sending an email is relatively slow anyway),
but data safety is important (you want to make sure that the messages get delivered). So what's your concern
about using quorum queues?



--
Michał
RabbitMQ team

Saineshwar Begari

unread,
Aug 24, 2023, 5:46:35 AM8/24/23
to rabbitmq-users
Thank you Michal Kuratczyk to Reply to query got some new thoughts with your answers.

I got answer is we cannot use quorum queue with RPC.

It my last query.
if we are using RPC then how to avoid Message loss and what should follow for high efficiency. 

Michal Kuratczyk

unread,
Aug 24, 2023, 7:26:06 AM8/24/23
to rabbitm...@googlegroups.com
"How to implement data-safe and performance distributed systems" is a question way beyond the scope of a mailing list. :)

A few obvious items in the context of RabbitMQ:
* use publisher confirms
* use consume acknowledgments
* keep the messages small
* test, test, test



--
Michał
RabbitMQ team
Reply all
Reply to author
Forward
0 new messages