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

Remove expired members from subscription topic stored in Redis set map #2601

Merged
merged 3 commits into from
Aug 20, 2024

Conversation

kirills-morozovs
Copy link
Contributor

  • Added or updated tests
  • Documented user facing changes
  • Updated CHANGELOG.md

Changes

When lighthouse subscriptions storage TTL is set every new subscription to channel will create a redis key with channel serializzed information and add the channel id to a map set related to specific topic and both keys will have TTL, but when channel is expired or closed without a webhook triggered the map set will keep filling with "dead" channels, subscribersByTopic method will already filter out the channel ids that expired, so this PR is going to collect those missing channel keys and then run SREM command to remove them from set map

@spawnia spawnia merged commit e58f99b into nuwave:master Aug 20, 2024
24 of 38 checks passed
@spawnia
Copy link
Collaborator

spawnia commented Aug 20, 2024

Thank you, released with https://github.com/nuwave/lighthouse/releases/tag/v6.43.0.

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

Successfully merging this pull request may close these issues.

2 participants