[rabbitmq-discuss] Read messages non-blocking in RabbitMQ

Demi Zike habtdemis at gmail.com
Tue Jul 26 15:54:58 BST 2011


We actually was looking to read messages without actively waiting for a
message to arrive if the queue is empty at that point for example. The
basic_get method did the trick. Thanks though!

Regards,
Demiss

On Tue, Jul 26, 2011 at 3:48 AM, Marek Majkowski <majek04 at gmail.com> wrote:

> On Mon, Jul 25, 2011 at 22:49, Demi Zike <habtdemis at gmail.com> wrote:
> > We can read messages fine. But due to the large volume of messages our
> > system is expected to transport and process, we want to avoid blocking
> while
> > reading messages from a list of queues our direct exchange is bound to.
> How
> > can we achieve that in RabbitMQ?
>
> The normal method to asynchronously receive messages  is to use
> 'basic_consume' command. The blocking method is 'basic_get'.
>
> What exactly is your question?
>
> Cheers,
>   Marek
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20110726/02f6f4f1/attachment.htm>


More information about the rabbitmq-discuss mailing list