raimohanska / ourboard

An online whiteboard

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Load balancing

raimohanska opened this issue · comments

To scale out, the service needs to be load-balanceable. Currently it uses a socket.io socket for all communications.

I think it needs to use a different socket address for each board so that boardId would be part of the URL it uses for a board. Then we can apply, for instance, an NGINX load balancer and hash-based routing to multiple servers, to ensure that all users of a particular board are routed to the same server.

Update: a different socket address is used per board. There's also the possibility to configure websocket host per board, but they are not automatically distributed yet.

Closing for now, as this is not something we're putting effort into at the moment.