You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the "scaling" mode of "reverb" using "redis", when creating a "loadbalancer" to distribute the load between several servers, the list of active users in the channels does not work correctly.
If the user is being served by server A, he will only be able to see the presence of users connected to this server, he will not be able to see the presence of users in the same channel, but connected to server B.
Example:
In this example below, the "here" method will only return active connections on the same server that the user is connected to. It is impossible to see all online users across the cluster. I believe that it is necessary for Laravel to adopt an active session control through redis, as suggested by socket.io:
Reverb Version
^1.0
Laravel Version
^11.9
PHP Version
8.3
Description
When using the "scaling" mode of "reverb" using "redis", when creating a "loadbalancer" to distribute the load between several servers, the list of active users in the channels does not work correctly.
If the user is being served by server A, he will only be able to see the presence of users connected to this server, he will not be able to see the presence of users in the same channel, but connected to server B.
Example:
In this example below, the "here" method will only return active connections on the same server that the user is connected to. It is impossible to see all online users across the cluster. I believe that it is necessary for Laravel to adopt an active session control through redis, as suggested by socket.io:
https://github.com/socketio/socket.io/blob/main/examples/private-messaging/server/sessionStore.js#L30
Steps To Reproduce
To reproduce:
In "here" method you will see the problem
The text was updated successfully, but these errors were encountered: