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?
Asked
Active
Viewed 871 times
1 Answers
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.
:)

Irvin Denzel Torcuato
- 385
- 1
- 3
- 14
-
3This won't help when it comes to sockets: instead try https://github.com/indutny/sticky-session – Jonathan Dunlap Feb 01 '16 at 01:45