I'm developing a Node.js back-end which communicates with some desktop clients via websockets, and the communication from the server side is initiated from a web front-end. Everything works ok since I am storing the SockJS Connection
instances in an array. But if I would like to scale out the service, I guess no such thing would work, I need to share the connections or something like that.
Is there any way to do this, or change my architecture in any way to support the scaling one day?