RabbitMQ connection using NodeJS socket.io and AMQPLIB(AMQP NODE).

192 views
Skip to first unread message

Urmik Shah

unread,
Apr 8, 2015, 1:44:46 AM4/8/15
to rabbitm...@googlegroups.com
Hello,

I am developing Publish/Subscribe message API in javascript using NodeJS socket.io and AMQPLIB(AMQP NODE).
I have one question,which is feasible way,

1) New RabbitMQ connection on every new socket connection  OR
2) Use same RabbitMQ connection till let's say 1000 sockets(channels) and then make new RabbitMQ connection for next 1000.

If i make new queue and consumer on every socket connection then 
For 1000 socket connection,in first case i would have 1000 RabbitmQ connection and 1000 queues.
In second case, I would have 1 RabbitMQ connection and 1000 channels in it and 1000 queues.

Also want to know regarding RAM aspect also. 

Regards,
Urmik

Urmik Shah

unread,
Apr 8, 2015, 2:44:42 AM4/8/15
to rabbitm...@googlegroups.com
Performance wise also which case is feasible. I am using windows server and I have installed RabbitMQ and NodeJS server in it.

Regards,
Urmik
Reply all
Reply to author
Forward
0 new messages