2

I currently use socket.io-redis workers to communicate and web clients. As I understand it, this leads to that that each message is duplicated in each worker. There are less expensive ways of sharing customers and workers? It is possible duplicate socket.io session on all the worker?

JoshMc
  • 10,239
  • 2
  • 19
  • 38
batazor
  • 852
  • 2
  • 16
  • 36

1 Answers1

0

I don't know if this helps,

Have you tried using pm2 it is very easy to use, just do a pm2 start app.js -i 0, this will automatically cluster your application sharing a single TCP socket.

just follow this to use and install pm2.

:)