-
Notifications
You must be signed in to change notification settings - Fork 90
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
[1.x] Re-subscribes to the scaling channel when the underlying connection is lost #251
Conversation
Drafting until @joedixon can review. |
Hey @ashiquzzaman33 - did you manage to check if your implementation behaves as expected? According to the
|
Hello @joedixon, thank you for your comment. Yes, I’ve tested it, and the implementation behaves as expected. The documentation seems a bit misleading. It will automatically create a new client (with underlying connection) if we try to re-subscribe. |
Thanks @ashiquzzaman33 do you think there is any scope to add a test for this functionality? |
Hi @joedixon, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great, thank you
In scaling mode, when the subscribingClient connection is lost while the app is running, the main app continues to operate without any errors or logs. However, it loses the ability to listen for events on the scaling channel.
According to the clue/reactphp-redis:
So, we need to re-subscribe to the channel when the unsubscribe event is detected.