[rabbitmq-discuss] Why does the queue drop other messages after the first is consumed?

Michael Klishin michael.s.klishin at gmail.com
Mon Dec 16 17:37:31 GMT 2013

2013/12/16 Raj Kumar Sanpui <raj.kumar.sanpui at gmail.com>

> After i call:
> amqp_basic_consume(conn, 1, queuename, amqp_empty_bytes, 0, 1, 0,
> amqp_empty_table);
> Right after this call, the messages are truncated to 0.

As soon as there is a consumer on this queue, RabbitMQ will deliver
messages to it
as fast as possible, because you use automatic acknowledgements. Use manual
and basic.qos if that's not what you want.

Local debug statements are of limited use in this case. What you need is to
trace what's going
down the wire.

What's in RabbitMQ log? It's very important to understand if there are
any channel exceptions.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20131216/4bb3ea74/attachment.html>

More information about the rabbitmq-discuss mailing list