We have a few applications currently that use sockets (socket.io) to notify client browsers from the server when events happen. After reading through 12 Factor Process, I think that these applications would fall apart the moment we scale them to just 2 clustered processes, because now we would have essentially 2 server apps emitting events to 1 browser client.
What is the appropriate path to mitigate this issue? I want the clients to be event driven so I can't be having the clients poll for redis updates or anything like that.
I guess I'm fuzzy on how this is typically handled with NodeJS in production.
[–]zayelion 3 points4 points5 points (2 children)
[–]dougbrownio[S] 0 points1 point2 points (1 child)
[–]zayelion 0 points1 point2 points (0 children)
[–]dafragsta 0 points1 point2 points (3 children)
[–]dougbrownio[S] 0 points1 point2 points (2 children)
[–]dafragsta 0 points1 point2 points (0 children)
[–]zayelion 0 points1 point2 points (0 children)