[rabbitmq-discuss] What is a good tradeoff for number of connections and channels/connection for a client ?

Matthew Sackman matthew at rabbitmq.com
Mon Jul 26 16:30:12 BST 2010

On Thu, Jul 22, 2010 at 10:51:25PM +0530, Arun Suresh wrote:
> So is it safe for me to assume, that like Alex mentioned, there should NOT
> be any issue if I create ALL the channels on the same connection ?

There should be no issues. AMQP allows up to 16384 channels per
connection (though one is the magic channel 0, so you actually get 16383
"normal" channels to use), as this transcript from the erlang client

rabbitmq-erlang-client$ ERL_LIBS=deps:dist erl -pa ebin ../rabbitmq-server/ebin test +P 1000000
Erlang R14A (erts-5.8) [source] [64-bit] [smp:8:8] [rq:8]
[async-threads:0] [kernel-poll:false]

Eshell V5.8  (abort with ^G)
1> Conn = amqp_connection:start_network_link().

=INFO REPORT==== 26-Jul-2010::16:28:45 ===
Negotiated maximums: (Channel = 0, Frame= 131072, Heartbeat=0)
2> [amqp_connection:open_channel(Conn) || _ <- lists:seq(1,16383)].


More information about the rabbitmq-discuss mailing list