[rabbitmq-discuss] multiple consumers on one channel?
Ben Hood
0x6e6562 at gmail.com
Sun Jul 5 20:53:26 BST 2009
Tsuraan,
On Thu, Jul 2, 2009 at 8:51 PM, tsuraan<tsuraan at gmail.com> wrote:
> Ok, this is strange. I can't even get two subscriptions on the same
> connection, using different channels. If I make a different
> connection for each consumer, then I get messages simultaneously. If
> I have my two channels on the same connection, I get all the messages
> from one of the queues, then all the messages from the other one.
> I've included some pretty ugly code to demonstrate parallel consumers.
> If you change main() to only use one connection and two channels, you
> can see it draining messages from the first queue at one message per
> second, then draining messages from the second queue at the same rate.
Is this question still current, or have you answered your own question
in the meantime?
Ben
More information about the rabbitmq-discuss
mailing list