Skip to content

Fix subscription cleanup to prevent zombie subscriptions#86

Merged
ctomc merged 2 commits intoiris-events:mainfrom
ratkokostov7:feat-batched-resource-cleanup
Jul 21, 2025
Merged

Fix subscription cleanup to prevent zombie subscriptions#86
ctomc merged 2 commits intoiris-events:mainfrom
ratkokostov7:feat-batched-resource-cleanup

Conversation

@ratkokostov7
Copy link

When WebSocket connections closed under high traffic, subscriptions weren't cleaned up immediately after closing the session. This created "zombie subscriptions" that accumulated in Redis.

  • Immediate cleanup: Remove subscriptions instantly when connections close using batched Redis operations
  • Configurable safety net: Keep periodic cleanup (now every 10 minutes) to catch any missed orphans
  • Performance improvement: Eliminates need to scan/filter large subscription sets

@ctomc ctomc merged commit 1ffba52 into iris-events:main Jul 21, 2025
1 check passed
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.

4 participants