Matthew -<br><br>Ok - I think I'll go with the channel close approach. I was<br>really just checking to make sure that I was not stressing<br>the API in a bad way.<br><br>Thanks for your advice,<br><br>- Jim<br><br clear="all">
Jim Irrer <a href="mailto:irrer@umich.edu">irrer@umich.edu</a> (734) 647-4409<br>University of Michigan Hospital Radiation Oncology<br>519 W. William St. Ann Arbor, MI 48103<br>
<br><br><div class="gmail_quote">On Fri, Jan 15, 2010 at 7:28 AM, Matthew Sackman <span dir="ltr"><<a href="mailto:matthew@lshift.net">matthew@lshift.net</a>></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;">
Hi Jim,<br>
<div class="im"><br>
On Thu, Jan 14, 2010 at 01:30:13PM -0500, Jim Irrer wrote:<br>
> Servers generally run in a loop, and in many cases spend most of<br>
> their time (very efficiently) waiting on read. Given such a server,<br>
> we wish to suspend it before it processes another message.<br>
><br>
> If there are several servers reading from the same queue, and<br>
> we want to suspend one of them, and if we used the ack-ing manually<br>
> approach, then one message would be held by the suspended server<br>
> and could not be processed by any of the others. We would like that<br>
> message to instead be processed by one of the other servers. I suppose<br>
> that the suspended server could write the message back to the queue,<br>
> but that seems a little like a hack.<br>
<br>
</div>Ok, that makes sense. Is there a reason why you prefer suspending and<br>
resuming rather than just stopping/killing a consumer and starting a new<br>
one up?<br>
<br>
>From your description, I'd have thought that closing the channel and<br>
maybe connection too, is the way to go.<br>
<div><div></div><div class="h5"><br>
Matthew<br>
<br>
_______________________________________________<br>
rabbitmq-discuss mailing list<br>
<a href="mailto:rabbitmq-discuss@lists.rabbitmq.com">rabbitmq-discuss@lists.rabbitmq.com</a><br>
<a href="http://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss" target="_blank">http://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss</a><br>
</div></div></blockquote></div><br>