I want to use node.js and sockets.io in my share point 2013 environment, which has 2 web front ends and 1 app front end.
The problem I am wondering, is that I know I need to install node.js on both the web front ends, and then the load balancer redirects users to one of the two web front ends. But any data I store for a user in node.js is stored in the web front end they visited.
So whats the best approach to synchronize the data between the two web front ends if I say want to broadcast to all users from 1 web front end? Cause some sockets are in 1 web front end, and some are in the other.
I was thinking, of making when 1 webfront end wants to broadcast to all users, they broadcast to all the sockets in that that web front end, then send a message to the other web front end, and then that finishes the job by sending it to all its sockets.
Is this a good approach?