Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

On delete-range send 1 single notification to clients #532

Merged
merged 3 commits into from
Sep 25, 2024

Conversation

merlimat
Copy link
Collaborator

When there is a delete-range request, we are currently sending 1 deleted notification for each of the keys that were deleted in the range.

The problem is that the number of keys in the range is unbounded and can lead to a huge batch in the DB and also to a big notification batch to send out to client. It's not easy to split the notification batch, since it needs to be written atomically with the db update itself.

Instead, we add a new notification type that will simply tell the client that a range of keys was deleted.

@mattisonchao mattisonchao merged commit 76e9f52 into streamnative:main Sep 25, 2024
5 checks passed
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants