Hi Ben,<br><br>Thank you for the background information. I&#39;ve read the
posts and it has greatly improved my understanding (I think ;)). I will
now give more though to how I structure my application.<br><br>Best regards,<br><br>David<br><br><div class="gmail_quote">On Tue, Oct 21, 2008 at 7:52 PM, Ben Hood <span dir="ltr">&lt;<a href="mailto:0x6e6562@gmail.com">0x6e6562@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">David,<br>
<div class="Ih2E3d"><br>
On Tue, Oct 21, 2008 at 2:15 AM, David Sackett<br>
&lt;<a href="mailto:rabbitmq-discuss@davidsackett.com">rabbitmq-discuss@davidsackett.com</a>&gt; wrote:<br>
&gt; What is the correct way to consume from multiple queues with txAMPQ? Should<br>
&gt; each channel only consume from one queue? How can I safely initialise all my<br>
&gt; channels and queues and latter consume from other queues once in operation?<br>
<br>
</div>I am going to let Esteve comment on txAMQP but I can make a few<br>
general points about the protocol semantics:<br>
<br>
- Subscriptions are identified by a consumer tag. This is effectively<br>
a hint that the broker gives to the client to indicate to whom the<br>
message should be farmed out to, so in general, a client library<br>
*should* maintain a mapping between a consumer tag and reference to a<br>
consumer instance.<br>
<br>
- You *can* have multiple subcriptions per channel and also multiple<br>
consumers per channel (refer here for reasons why you may or may not<br>
do this - <a href="http://hopper.squarespace.com/blog/2008/10/6/multithreading-amqp-clients.html" target="_blank">http://hopper.squarespace.com/blog/2008/10/6/multithreading-amqp-clients.html</a>).<br>
<br>
- A channel could be construed as the broker&#39;s view on a client side<br>
thread (see same article) - but in any case it is merely a stateful<br>
conversation between both peers.<br>
<br>
- Declaring entities in AMQP is akin to an assertion of existence -<br>
see here more a more detailed discussion -<br>
<a href="http://hopper.squarespace.com/blog/2008/10/7/consumer-driven-messaging.html" target="_blank">http://hopper.squarespace.com/blog/2008/10/7/consumer-driven-messaging.html</a><br>
<br>
HTH,<br>
<font color="#888888"><br>
Ben<br>
</font></blockquote></div><br>