[rabbitmq-discuss] rabbitmq-c examples - producer/consumer work queue not working ???
ktran0003 at gmail.com
ktran0003 at gmail.com
Fri Jun 13 20:29:49 BST 2014
I tried out the producer/consumer examples included in rabbitmq-c as
follows:
One producer and two consumers
In two separate terminal windows: ./amqp_consumer localhost 5672
In one terminal window: %./amqp_producer localhost 5672 1 6
Both consumers show:
6737 ms: Received 1 - 1 since last report (0 Hz)
6737 ms: Received 2 - 1 since last report (16949 Hz)
7739 ms: Received 3 - 1 since last report (0 Hz)
8737 ms: Received 4 - 1 since last report (1 Hz)
9738 ms: Received 5 - 1 since last report (0 Hz)
10737 ms: Received 6 - 1 since last report (1 Hz)
This is a surprise to me. I thought the messages should be sent
round-robin to both consumers (like the python example) so they would not
receive everything like a fanout.
Do I miss something? If this is the way it's supposed to work, how I
change the code to make it work like a work queue?
Thanks,
-Kim
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20140613/62dc14e0/attachment.html>
More information about the rabbitmq-discuss
mailing list