[rabbitmq-discuss] Exchange with throttling
Emile Joubert
emile at rabbitmq.com
Tue Jul 24 10:44:54 BST 2012
Hi,
On 23/07/12 18:20, Félix wrote:
> Is there anything similar in rabbitmq?
Yes, the broker has a connection-based flow control mechanism - see
http://www.rabbitmq.com/memory.html#per-connection
and a blog post that explains further:
http://www.rabbitmq.com/blog/2012/04/17/rabbitmq-performance-measurements-part-1/
Bear in mind that blocking an Erlang process will lead to a backlog in
its internal mailbox without slowing down the network. Also, the
exchange is not a natural control point for bandwidth limiting, because
an exchange is not a process. A channel would be a more natural choice.
You may be able to adapt the existing flow control mechanism to grant
credits based on bandwidth rather than message count.
-Emile
More information about the rabbitmq-discuss
mailing list