[rabbitmq-discuss] Channel best practices

Mike Hadlow mike at suteki.co.uk
Mon Sep 23 11:20:42 BST 2013


Hi All,

Are channel best practices for connected RabbitMQ clients published
anywhere? I understand the threading limitations, that channels should not
be shared between threads. Does the channel concept exist only to support
multi-threaded applications, or does it have some other purpose?

If I marshal all calls to a channel onto a single thread in my application
code, is there any problem with simply maintaining a single channel for all
declares, publishes and consumes?

Additional questions:

1. Should each basic consume be invoked on a dedicated channel?

2. Do I need to basic.ack on the same channel on which I invoked
basic.consume?

Many thanks
Mike
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20130923/a05cd176/attachment.htm>


More information about the rabbitmq-discuss mailing list