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