HI Simon,<br><br>Thanks, again very helpful, sorry about not cc&#39;d the list.� I will ask on the ruby-amqp list about the relationship between channel and TCP connection.<br><br>John<br><br><br><div class="gmail_quote">On Tue, Jul 13, 2010 at 10:09 AM, Simon MacMullen <span dir="ltr">&lt;<a href="mailto:simon@rabbitmq.com">simon@rabbitmq.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">On 13/07/10 15:01, John Goodson wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hi Simon,<br>
</blockquote>
<br>
Hi John. Please keep the mailing list CCed, it helps other people learn.<div class="im"><br>
<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Yes I am using Ruby.<br>
<br>
Thanks for your response, it is clearer and you have been very helpful<br>
in that I can now see that my initial design choices are significantly<br>
less then optimal for the types of behavior I want.<br>
</blockquote>
<br></div>
Sure, no problem!<div class="im"><br>
<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Is my understanding correct take that a design constraint in creating<br>
channels is how many open sockets the Erlang server can support?<br>
</blockquote>
<br></div>
Well, channels are multiplexed onto TCP connections. A connection can support up to 65535 channels on a single socket, so you should be OK. If you need more channels, opening a second connection should be OK :)<br>
<br>
Most client libraries make this fairly obvious, e.g. in Java:<br>
<br>
Connection conn = new ConnectionFactory().newConnection();<br>
Channel chan = conn.createChannel();<br>
<br>
but the Ruby library doesn&#39;t make it immediately obvious what&#39;s going on. It might be creating one channel per connection. Unfortunately I don&#39;t know much about it.<div class="im"><br>
<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
PS, ugh on having to figure out design/usage patterns based on reading<br>
the spec.<br>
</blockquote>
<br></div>
Indeed. You can always ask here though.<br>
<br>
Cheers, Simon<br>
<br><br>
</blockquote></div>