Is there a way to define the poll frequency when building a consumer ? #808
-
Wanted to check if it is possible to configure the poll frequency |
Beta Was this translation helpful? Give feedback.
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. |
Beta Was this translation helpful? Give feedback.
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.