Nodejs failover

Viewed 4819

I am a beginner in nodejs. I am trying to use nodejs in production. I wanted to achieve nodejs failover. As I am executing chat app, if a node server fails the chat should not breakup and should be automatically connected to a different nodeserver and the same socket id should be used for further chatting so that the chat message shouldn't go off. Is this can be achieved? Any samples.

I should not use Ngnix/HAProxy. Also let me know how the node servers should be: Either Active-Active or Active-Passive

5 Answers
Related