I am trying to set up socketio on multiple nodes for load balancing between them. I came up with something like this in socketio docs: Using multiple nodes.
It does the work perfectly for event passing through redis between multiple nodes, but the question is, for example, I have this scenario:
I have Server A and Server B up and running with a load balancer (nginx)
Client A is connected to Server A.
Client B is connected to Server B.
Is there any way to make sure if Server A gets down (node gets disconnected, or shuts down for any reason) all the clients connected to Server A should be redirected to Server B automatically as a fallback? Does socketio support it? what manual configuration I have to do to make sure this happens?
I am using Express with nginx.