[rabbitmq-discuss] asynchronous fetching messages from rabbitMQ queues
pavuuu
pavankumar.manikonda at schneider-electric.com
Thu Nov 10 05:08:27 GMT 2011
If there are no messages to be dequeued, the call has to get blocked till a
message arrives.
If there are messages (say only 10) in the queue the call should not get
blocked until it reaches the prefetch(say 100 messages).
Matthias Radestock-3 wrote:
>
> On 09/11/11 05:50, pavuuu wrote:
>> But, when I call "consumer.Queue.Dequeue()" I get only 1 message. Do I
>> have
>> to call Dequeue 100 times to fetch 100 messages?
>
> Yes, you do.
>
>> Cant I do it with one call??
>
> There may not be a 100 messages ready to be dequeued. In fact there may
> be none to start with. And then some may arrive. And then some more may
> arrive.
>
> Do you want an api call that waits for n messages to arrive and then
> returns them in, say, an array?
>
>
> Matthias.
> _______________________________________________
> rabbitmq-discuss mailing list
> rabbitmq-discuss at lists.rabbitmq.com
> https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
>
>
--
View this message in context: http://old.nabble.com/asynchronous-fetching-messages-from-rabbitMQ-queues-tp32709671p32816304.html
Sent from the RabbitMQ mailing list archive at Nabble.com.
More information about the rabbitmq-discuss
mailing list