W
W
WebDev2015-10-29 11:08:44
Node.js
WebDev, 2015-10-29 11:08:44

Load balancing across 2 node.js socket.io servers?

Hello, I'm chatting. Prompt idea of ​​distribution of loading on 2 hosts of the server. That is, people enter the chat, but connect to different servers with socket.io. (total server 2). Probably some kind of balancer that connects the client to the desired node. How to organize this correctly?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
DragoSFire, 2015-10-29
@kirill-93

Use Redis in your application. And in particular his sub / pub channels.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question