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

kgo: add MaxBufferedBytes, Buffered{Fetch,Produce}Bytes #563

Merged
merged 2 commits into from
Sep 21, 2023
Merged

kgo: add MaxBufferedBytes, Buffered{Fetch,Produce}Bytes #563

merged 2 commits into from
Sep 21, 2023

Conversation

twmb
Copy link
Owner

@twmb twmb commented Sep 16, 2023

Closes #544.

@twmb twmb force-pushed the 544 branch 6 times, most recently from 649d641 to 554974a Compare September 20, 2023 02:04
@twmb twmb changed the title 544: add MaxBufferedBytes, Buffered{Fetch,Produce}Bytes kgo: add MaxBufferedBytes, Buffered{Fetch,Produce}Bytes Sep 20, 2023
This slows down fetching a little bit. If it is egregious, we can fix
the perf by tracking the size buffered when processing the fetch itself,
and then adding a new field to batch-untrack the size. That's left as an
exercise for a person that cares.

This is now done since the prior commit introduces buffered produce
bytes, and we may as well add it while fetching for both-sizes
consistency, and we may as well expose it.
@twmb twmb merged commit 82fe5cc into master Sep 21, 2023
6 checks passed
@twmb twmb deleted the 544 branch September 21, 2023 01:25
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.

Feature request: add MaxBufferedBytes in addition to MaxBufferedRecords
1 participant