<div>
<div>
<span>
<br>
</span>
<span></span>
<p style="color: #a0a0a0;">On Wednesday, March 16, 2011 at 11:54 AM, Gavin M. Roy wrote:</p>
<blockquote type="cite" style="border-left-style:solid;border-width:1px;margin-left:0px;padding-left:10px;">
<span><div><div><div>
<div><div><br></div><div>If you want to use multiple channels, I recommend having a sound reason for it.</div></div></div></div></div></span></blockquote><div><br></div><div>One use case that hit me when I hit send would be to have different credentials when publishing or consuming. I would not recommend connecting and creating channels on each request however, as a new connection requires multiple synchronous communication steps, in addition to the synchronous channel opening. </div><div><br></div><div>Note that in Pika this is not blocking, however it will cause your app to return responses much slower than if you just setup a connection and channel on application construction.</div><div><br></div><div>Gavin</div>
</div>
</div>