Load-balancing-Socket.Io-NodeJs

Load balancing Socket.Io NodeJs

A repo to find perfect LoadBalancing Solution for Socket.io on Node JS

Dependencies

Use

How can you use this repo?

This repo has some basic setup, to test your socketio loadbalance solution.

Solution 1 &#128279

We are using Redis and socket.io-redis adapter to loadbalance, which works perfectly when used with sticky session / ip_hash Load balance with Nginx.

Works With

I have discussed about the solution here, Load Balancing Node.js Application #Socket.io

Solution 2 &#128279

There are multiple reasons we should not use sticky session. So here is solution, but we will miss what socketio offers.

Works With

I have discussed about the solution as well Load Balancing Node.js Application #Socket.io

GitHub Repo