I'm working on a web app where users enter a "room." The state of these rooms is loaded in the server's memory at all times, and is synchronized with the clients via websockets. What's the best way to handle rooms when there are multiple instances of my web app?
A. Have some kind of load balancer that knows which instances are handling which rooms and directs connections accordingly?
B. Have the web app instances communicate with each other internally, so that all instances that have clients connected to a room are synchronized?
C. Something else?