<div dir="ltr">Thank you Simon. Now I think I have my head wrapped around this whole thing.<div><br></div><div>Best,</div><div><br></div><div>Ryan</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Apr 7, 2014 at 11:25 AM, Simon MacMullen <span dir="ltr"><<a href="mailto:simon@rabbitmq.com" target="_blank">simon@rabbitmq.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="">On 07/04/2014 18:07, Ryan Brown wrote:<br>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="">
However, that said, I am curious about the option of just using<br></div>
amqp_channel:wait_for___<u></u>confirms/1. I did not use this option for a<div class=""><br>
couple of reasons.<br>
<br>
First was the fact that using the registered handler is mentioned quite<br>
often as the preferred option. My understanding was that using the<br></div>
amqp_channel:wait_for___<u></u>confirms would cause the channel to wait for a<div class=""><br>
response before another message could be published on that channel. If<br>
this is true, it seems like it could slow-down publishing more than<br>
registering a handler and letting publishing continue. Is this correct?<br>
Or am I misunderstanding the whole workflow?<br>
</div></blockquote>
<br>
It's possible I misunderstood you. I thought you were waiting for the confirm - i.e. you were effectively reimplementing wait_for_confirms() anyway. Yes, it is slower to call wait_for_confirms() (especially if you call it frequently) as you will stop publishing.<div class="">
<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Speaking of misunderstandings; the second reason I did not use<br>
wait_for_confirms was that I didn't completely understand the definition:<br>
<br>
"Wait until all messages published since the last call have been either<br>
ack'd or nack'd by the broker; or until timeout elapses."<br>
<br>
What exactly does it mean by the "last call"?<br>
</blockquote>
<br></div>
The last call to wait_for_confirms().<div class=""><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
This sounded to me as if<br>
it may get in a situation that if calls are coming-in rapidly enough<br>
that they are publishing new messages prior to the previous message<br>
getting ack'd, it would not respond until all such queued messages were<br>
ack'd/nack'd.<br>
</blockquote>
<br></div>
Yes, that's correct.<br>
<br>
Cheers, Simon<br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>-rb
</div>