[nodejs] rabbitmq flooding nodejs app

2012-03-07 Thread Dan Milon
Hello everyone, I'm facing the following problem. I just have set up a rabbitmq queue, and my node app is subscribed to that queue (via node-amqp). When a message arrives, the app does an insert and a few updates on a mongodb (via mongoose). Now the problem comes when there are say 1 messa

Re: [nodejs] rabbitmq flooding nodejs app

2012-03-07 Thread Chris Rhoden
It sounds like what's happening is that you're using up your single thread receiving a bunch of messages from your rabbitmq server and there is very little time spent on the event loop such that callbacks have a chance to execute. I don't think it's unreasonable to ack your queue messages, especia