Running spring-boot 1.5.7.RELEASE
program using spring-cloud Dalston.SR4
.
Worked myself through cloud-stream documentation, especially regarding kafka-binder usage, but am still unclear on some configuration aspects:
Do we really need to set
spring.cloud.stream.{instanceCount,instanceIndex}
when we're consuming from kafka brokers? I can't see why this would be required, givenspring.cloud.stream.bindings.<channel>.group
is set. Or is it safe to say these 2 properties are only required ifcloud.stream.kafka.bindings.<channel>.autoRebalanceEnabled
is setfalse
?Is there any benefit in setting
cloud.stream.default.consumer.partitioned: true
for kafka consumers?Bonus: what's the difference between
spring.cloud.stream.kafka.binder.configuration.auto.offset.reset
andspring.cloud.stream.kafka.bindings.<channelName>.consumer.startOffset
? Is it simply latter configuring offset-reset per channel? In any case, neither of these two are picked up, andauto.offset.reset
value is still reported during startup asearliest
.