News for hackers. Stuff that matters.
Re:Introducing Socket.io 1.0 by onestone on Wednesday May 28, 2014 @02:41PM (#7812005)
The node.js cluster module is not flexible enough to be used with engine.io / socket.io / sockjs etc. Just run several processes and put something like HAproxy in front of them. If using a cookie to ensure stickiness, you can scale to multiple load-balancers easily.
Re:Introducing Socket.io 1.0 by thedufer on Wednesday May 28, 2014 @02:51PM (#7812067)
That seems like a pretty big requirement that could frequently be deal-breaking. I would expect a big warning somewhere that you can't cluster if you're using socket.io.
Re:Introducing Socket.io 1.0 by kevinbowman on Wednesday May 28, 2014 @03:15PM (#7812193)
I concur; we use sticky-sessions in our load-balancer, and stunnel when we're doing it on an SSL'd page, and it's working just fine.