Repository navigation
Is there a way to define the poll frequency when building a consumer ? #808
Answered
by
rkolesnev
cyrilgeorge-oracle
asked this question in
Q&A
|
Wanted to check if it is possible to configure the poll frequency |
Answered by
rkolesnev
Jun 25, 2024
Replies: 1 comment 1 reply
|
No, Parallel Consumer has long poll timeout hardcoded at relatively high 2 seconds timeout during normal "Running" mode. 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. |
1 reply
Answer selected by
cyrilgeorge-oracle
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.