<p>Isn&#39;t this what the prefetch count is all about?</p>
<div class="gmail_quote">On Jun 4, 2013 6:48 PM, &quot;Vijay Lakshmi&quot; &lt;<a href="mailto:vijjivinay@gmail.com">vijjivinay@gmail.com</a>&gt; wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">Hi,<div><br></div><div>We have an application where in for each client we create a Queue in RabbitMQ. </div><div>(i.e. we create a binding with client id to a common exchange)</div><div>So, all messages that are published with binding key as client id will go to that queue.</div>

<div><br></div><div>There is only single client which subscribes to this Queue. </div><div>The queue will get messages at the rate of 100 msgs/sec for example.</div><div><br></div><div>RabbitMQ is sending only 1 message at a time to the consumer. Even if we set the prefetch count as higher value, the messages are delivered only one by one.</div>

<div>The callback method in consumer can consume only single message.</div><div><pre style>void <b>handleDelivery</b>(java.lang.String consumerTag,
                    <a href="http://www.rabbitmq.com/releases/rabbitmq-java-client/v3.1.1/rabbitmq-java-client-javadoc-3.1.1/com/rabbitmq/client/Envelope.html" title="class in com.rabbitmq.client" target="_blank">Envelope</a> envelope,
                    <a href="http://www.rabbitmq.com/releases/rabbitmq-java-client/v3.1.1/rabbitmq-java-client-javadoc-3.1.1/com/rabbitmq/client/AMQP.BasicProperties.html" title="class in com.rabbitmq.client" target="_blank">AMQP.BasicProperties</a> properties,
                    byte[] body)
                    throws java.io.IOException</pre></div><div>Is there a way in RabbitMQ where in we enable RabbitMQ to send mutiple messages to consumer at a time. In my case there is only one consumer per queue. So, by sending mutiple messages to consumer at a time will improve my performance.</div>

<div><br></div><div>Can someone suggest how I can achieve this.</div><div>If rabbitMQ does not support, is there any other way of achieving this.</div><div><br></div><div><br></div><div>
<br></div></div>
<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>
<br></blockquote></div>