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

feat: add boolean flag 'share_leader_conn' in consumer config #598

Merged

Conversation

zmstone
Copy link
Contributor

@zmstone zmstone commented Sep 21, 2024

fixes #577

Introdced share_leader_conn consumer config option (default = false).
Set to true to consume less TCP connections towards Kafka, but may lead to higher fetch latency.
This is because Kafka can ony accumulate messages for the oldest fetch request for each connection,
later requests behind it may get blocked until max_wait_time expires for the oldest one

@zmstone zmstone force-pushed the 0921-consumer-exclusive-own-connection branch 2 times, most recently from ffc8faa to f9dbe94 Compare September 21, 2024 19:09
Introduced `share_leader_conn` consumer config option.
Set to `true' to consume less TCP connections towards Kafka,
but may lead to higher fetch latency. This is because Kafka can
ony accumulate messages for the oldest fetch request, later
requests behind it may get blocked until `max_wait_time' expires
for the oldest one
@zmstone zmstone force-pushed the 0921-consumer-exclusive-own-connection branch from f9dbe94 to 6ee6c85 Compare September 21, 2024 20:07
@zmstone zmstone marked this pull request as ready for review September 21, 2024 21:09
@zmstone zmstone merged commit 494a0cc into kafka4beam:master Sep 21, 2024
14 checks passed
@zmstone zmstone deleted the 0921-consumer-exclusive-own-connection branch September 21, 2024 21:27
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.

Low-latency consumer polling
1 participant