Search code examples
spring-bootspring-kafka

When using @KafkaListener in springboot, how to set idleBetweenPolls


"idleBetweenPolls" is a handy config in spring-kafka, to adjust the rate of consumption.

However when checking source code and doc of springboot, there seems to be no mention of this props or how to propagate some particular value into org.springframework.kafka.listener.ContainerProperties.

Anyone know of anyway to achieve the above?


Solution

  • The property was missing in spring-boot at the time. Hence did not get propagated to kafka. It was then added https://github.com/Cwikius-Spring/spring-boot/commit/1b8bfaa1fb6af40750cbd8030d0f01f137e7f80e