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

Clean up before we hit the stream limit #319

Merged
merged 1 commit into from
Jun 6, 2024

Conversation

tom-binary
Copy link
Contributor

Current behaviour is to attempt cleanup only when we hit the pending subscription item limit.

That causes regular delays in highly-active streams, so we change that behaviour here to check earlier; currently this happens when we hit 75% of the backlog capacity. If we can remove old items before we hit the limit, that reduces the chances of the :Emitter having to pause.

@tom-binary tom-binary merged commit 966164c into deriv-com:master Jun 6, 2024
1 check passed
@tom-binary tom-binary deleted the feature/early_cleanup branch June 6, 2024 06:21
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.

1 participant