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

feature/batch_ack #309

Merged
merged 6 commits into from
May 21, 2024
Merged

Conversation

tom-binary
Copy link
Contributor

When subscription or RPC items have been processed, the Redis implementation was issuing a separate XACK for every ID. This can lead to a lot of network traffic and unnecessary delay between completing items and receiving new ones.

The change here combines multiple IDs into a single XACK call, meaning that we are now closer to symmetry between the XREADGROUP to get the work, and the XACK to report completion. The ordering is also changed so that we avoid a roundtrip before we can start receiving items: instead, we issue all the XACKs and immediately request the XREADGROUP.

@tom-binary tom-binary merged commit 6697a68 into deriv-com:master May 21, 2024
1 check passed
@tom-binary tom-binary deleted the feature/batch_ack branch May 21, 2024 03:54
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