<span style="font-family:&#39;lucida Grande&#39;,Verdana;font-size:14px;line-height:23px;background-color:rgb(255,255,255)">Thanks for you answers .&nbsp; if we have a queue ,and many consumers</span><br style="font-family:&#39;lucida Grande&#39;,Verdana;font-size:14px;line-height:23px;background-color:rgb(255,255,255)">
<span style="font-family:&#39;lucida Grande&#39;,Verdana;font-size:14px;line-height:23px;background-color:rgb(255,255,255)">&gt; subscribe the queue,these consumers&nbsp; has&nbsp; a common prefetch</span><br style="font-family:&#39;lucida Grande&#39;,Verdana;font-size:14px;line-height:23px;background-color:rgb(255,255,255)">
<span style="font-family:&#39;lucida Grande&#39;,Verdana;font-size:14px;line-height:23px;background-color:rgb(255,255,255)">&gt; value,assuming it is 20.if the queue has 20 msg , the rabbitmq will send</span><br style="font-family:&#39;lucida Grande&#39;,Verdana;font-size:14px;line-height:23px;background-color:rgb(255,255,255)">
<span style="font-family:&#39;lucida Grande&#39;,Verdana;font-size:14px;line-height:23px;background-color:rgb(255,255,255)">&gt; the whole msg to one queue or every queue ?. if send to one ,it means</span><br style="font-family:&#39;lucida Grande&#39;,Verdana;font-size:14px;line-height:23px;background-color:rgb(255,255,255)">
<span style="font-family:&#39;lucida Grande&#39;,Verdana;font-size:14px;line-height:23px;background-color:rgb(255,255,255)">&gt; other consumers will be idle&nbsp; ?&nbsp;</span>&nbsp;<br><br><div class="gmail_quote">2012/10/24 Emile Joubert <span dir="ltr">&lt;<a href="mailto:emile@rabbitmq.com" target="_blank">emile@rabbitmq.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Andy,<br>
<div class="im"><br>
On 23/10/12 00:43, D����#ů�� wrote:<br>
&gt; &nbsp;1. In offical website ,it describe that :&quot; it is useful to be able to<br>
&gt; specify how many messages each consumer can be sent at once before<br>
&gt; sending the next acknowledgement&quot; . when we first request the server, we<br>
&gt; can get the amount which &nbsp;defined by prefetch of messages &nbsp;into my<br>
&gt; client buffere pool,then my application will process it,if it can be<br>
&gt; successfully processed ,the client need send a ACK back to the server,<br>
&gt; to notice server that the message can be delete.Next,I doubt that<br>
&gt; whether the server will re-send &nbsp;some new messages to client? &nbsp;and &nbsp;the<br>
&gt; amount &nbsp;equals the &nbsp;value of the prefetch or not &nbsp;?<br>
<br>
</div>That is correct. As soon as the client send an ACK to the server, the<br>
server will send more messages. The multiple flag was set then many<br>
messages may be sent (up to prefetch messages). If the multiple flag was<br>
not set then only one message will be sent:<br>
<a href="http://www.rabbitmq.com/amqp-0-9-1-reference.html#basic.ack.multiple" target="_blank">http://www.rabbitmq.com/amqp-0-9-1-reference.html#basic.ack.multiple</a><br>
If there are no messages in the queue, then the client must wait until<br>
more messages arrive.<br>
<div class="im"><br>
&gt; 2.when the prefetch &nbsp;define &nbsp;will has &nbsp;effect on my application?<br>
<br>
</div>If your application is driven by a queue subscription then it may well<br>
have an effect.<br>
<br>
<br>
-Emile<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="https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss" target="_blank">https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss</a><br>
</blockquote></div><br>