Skip to content

Is there a way to define the poll frequency when building a consumer ? #808

Discussion options

You must be logged in to vote

No, Parallel Consumer has long poll timeout hardcoded at relatively high 2 seconds timeout during normal "Running" mode.
It is a blocking poll - so will return either on getting enough data to at least meet the fetch.min.bytes config or after elapsing.

Note that it is not polling continuously if it is able to fetch messages faster than it can process them - back-pressure kicks in and the wrapped Consumer is paused then until the message buffer is drained below threshold - then it goes back to fetching.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@cyrilgeorge-oracle
Comment options

Answer selected by cyrilgeorge-oracle
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants