Replication factor option for Kafka Stream binder
See original GitHub issueThe documentation states that the property spring.cloud.stream.kafka.binder.replicationFactor
for the Kafka binder sets the replication factor for auto-created topics; there is no mention of a similar property for the Kafka Streams binder.
I have an application using a KStream. I can only successfully set the replication factor for the KStream topic when I use the option spring.cloud.stream.kafka.streams.binder.replicationFactor
(note the word “streams”). This option is not explicitly documented for the Kafka Streams binder.
Perhaps such plain Kafka binder options can be re-used for the Kafka Streams binder, but if this is the case it is not entirely clear. Can you clarify?
Documentation: https://cloud.spring.io/spring-cloud-stream-binder-kafka/spring-cloud-stream-binder-kafka.html
Issue Analytics
- State:
- Created 4 years ago
- Comments:8 (5 by maintainers)
Top GitHub Comments
@boonware All the properties available in
KafkaBinderConfigurationProperties
for topic creation (such as the replication factor) is available for the Kafka Streams binder also. However, as you already noticed, when used in the context of Kafka Streams types, you need to prefix the configuration withspring.cloud.stream.kafka.streams.binder
. Maybe we should be more clear on the docs about this. Contributions are welcomed.@boonware Yep. Please feel free to close it. Ping here again if there are further changes required.