[rabbitmq-discuss] C# Work Queue Question

adam.rosenberger1 at gmail.com adam.rosenberger1 at gmail.com
Wed Feb 9 01:27:41 GMT 2011


Hello,

I am new to RabbitMQ and was working on translating the work queue example  
into c# [http://www.rabbitmq.com/tutorial-two-python.html]. I've done some  
googling and read through a fair amount of documentation on the rabbit  
site, but I must be missing something. I can't seem to figure out why the  
following scenario works, but the other one doesn't:

Works: Start two clients, then start the server that provides the tasks.
Does not Work: Start the server that provides the tasks, then start two  
clients.

When I start the server first, only the first client receives messages. If  
I kill the first client before it finishes processing all the messages,  
then the second client finally starts picking up the unacknowledged  
messages left in the queue. I tried this using both Subscription and  
QueueingBasisConsumer.

I must be missing something obvious, but I can't seem to figure out what.  
Thanks for any help.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20110209/d8514e88/attachment-0001.htm>


More information about the rabbitmq-discuss mailing list