B
B
BestJS2017-04-25 19:10:21
Redis
BestJS, 2017-04-25 19:10:21

How to properly scale an application on nodejs and socket io?

I run nodejs in several threads using the module - https://habrahabr.ru/post/208914/
Everything works fine in one thread, but ws does not connect to two or more. https://yadi.sk/i/3DHGzZGw3HLpyy
Same with the socket.io-redis module.
Application - chat.
Actually the question is in the title. Thanks in advance.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
B
BestJS, 2017-05-06
@BestJS

https://www.npmjs.com/package/socketio-sticky-session
or https://github.com/PROGrand/sticky-socket-cluster

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question