I'm trying to figure out the poll records mechanism for Kafka over SCS in a K8s environment.
What is the recommended way to control
max.poll.records
?How can I poll the defined value?
Is it possible to define it once for all channels and then override for a specific channel? (referring to this comment form documentation):
To avoid repetition, Spring Cloud Stream supports setting values for all channels, in the format of spring.cloud.stream.kafka.default.consumer.=. The following properties are available for Kafka consumers only and must be prefixed with spring.cloud.stream.kafka.bindings..consumer..")
Is this path supported:
spring.cloud.stream.binding.<channel name>.consumer.configuration
?Is this:
spring.cloud.stream.**kafka**.binding.<channel name>.consumer.configuration
?How are conflicts being resolved? Let's say in a case where both
spring.cloud.stream.binding...
andspring.cloud.stream.**kafka**.binding...
are set?
I've tried all mentioned configurations, but couldn't see in the log what is the actual poll.records
and frankly the documentation is not entirely clear on the subject.