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

Websocket scalability #955

Closed
ed-fruty opened this issue Sep 20, 2018 · 2 comments
Closed

Websocket scalability #955

ed-fruty opened this issue Sep 20, 2018 · 2 comments
Assignees

Comments

@ed-fruty
Copy link

ed-fruty commented Sep 20, 2018

From the docs I read this:

The websocket server scales naturally on Node.js cluster without any 3rd party dependencies like Redis. Also there is no need of sticky sessions.

It's pretty cool (I can suggest it handles by master process) but, it's only scalability on the one machine.

How it can be scale for several servers ?
If one connection will serve by one node, and the second connection in another node. So we can't send message from first node socket to another node sockets, isn't it?

Can we resolve this with adonis ?

I mean schema something like this

With socket.io it's just makes through redis adapter.

@thetutlage
Copy link
Member

This issue was moved to adonisjs/adonis-websocket#67

@lock
Copy link

lock bot commented Mar 11, 2020

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked and limited conversation to collaborators Mar 11, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants