Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support multiple nodes #20

Open
idlewinn opened this issue Mar 23, 2020 · 2 comments
Open

Support multiple nodes #20

idlewinn opened this issue Mar 23, 2020 · 2 comments

Comments

@idlewinn
Copy link
Contributor

https://socket.io/docs/using-multiple-nodes/

Right now, the websocket server only uses one node. As the app grows in users we will reach a point where this is no longer sustainable, so we'll need to be able to handle hosting multiple nodes and broadcasting events between them.

@dearmisterrobot
Copy link

Does running excalidraw as a Docker image in several instances using Kubernetes solves this problem out-of-the-box?

@maielo
Copy link
Contributor

maielo commented May 24, 2023

Depends on how you want to handle it. One droplet running instance on multiple nodes (CPUs) using for instance pm2? Or having Redis in front and having multiple servers?

pm2 cluster - https://socket.io/docs/v4/pm2/

Redis - https://socket.io/docs/v4/redis-adapter/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants