Setting the pre-fetch limit in RabbitMQ

213 views
Skip to first unread message

Tim Gebhardt

unread,
May 13, 2013, 12:48:31 PM5/13/13
to masstrans...@googlegroups.com
Hello,

I have a situation where I'd like to increase the prefetch message count for my RabbitMQ endpoint.  I think the limit is hardcoded by this line in RabbitMqConsumer.cs: 
(43) _channel.BasicQos(0, 10, false);

It'd be nice to be able to configure this limit if we know we need to trade off latency for throughput for a particular endpoint.

Am I missing something where I would be able to customize this value somewhere?

Chris Patterson

unread,
May 13, 2013, 12:52:38 PM5/13/13
to masstrans...@googlegroups.com
This needs to be configurable, I plan to add a parameter on the endpoint URI (prefetch=n) so that it can be changed.

It also might make sense to have a RabbitMQ configuration option, such as setting the default prefetch value for all queues.


--
You received this message because you are subscribed to the Google Groups "masstransit-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to masstransit-dis...@googlegroups.com.
To post to this group, send email to masstrans...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/masstransit-discuss/-/7oDWHLa9uyQJ.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Reply all
Reply to author
Forward
0 new messages