-
-
Notifications
You must be signed in to change notification settings - Fork 230
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
wip(sync): POC of using Redis for pubsub #2426
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
yohanboniface
force-pushed
the
ws-with-redis
branch
from
January 13, 2025 16:45
3d75445
to
c0e388b
Compare
yohanboniface
force-pushed
the
ws-with-redis
branch
from
January 22, 2025 09:48
f038e9c
to
d076928
Compare
Co-authored-by: David Larlet <[email protected]>
Also clean dependencies. We still use the channels live server for our tests, but do not use it anymore for the actual websocket handling.
Co-authored-by: David Larlet <[email protected]>
Co-authored-by: David Larlet <[email protected]>
As now both http and ws are on the same domain, let's use one test server able to serve both. Co-authored-by: David Larlet <[email protected]>
When publishing a "STOP", this would unsubscribe every listener of the channel.
This should be a race condition when sending to a closed websocket. Let's log to track them.
We wanted to use the HEXPIRE command, but discovered that this command is only available since the Redis 7.4 version (the latest), and this version does not have an OSI compliant licence, so it is generally not installable through common packages managers. The OSS fork is Valkey, but it still does not have the HEXPIRE command. So we decide to clean those keys manually, and in order no do this clean task at each websocket connection, we only do it when we are the first user to connect to a given map. Co-authored-by: David Larlet <[email protected]>
yohanboniface
force-pushed
the
ws-with-redis
branch
from
January 23, 2025 16:21
a39f2c5
to
476c160
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
TODO