spring-attic / spring-cloud-stream-binder-kafka

Spring Cloud Stream binders for Apache Kafka and Kafka Streams
Apache License 2.0
331 stars 301 forks source link

[Feature Request] Allow to accept a list of customizers instead of a unique one for KafkaMessageChannelBinder #1217

Closed yiliuTo closed 1 year ago

yiliuTo commented 2 years ago

Library: org.springframework.cloud:spring-cloud-stream-binder-kafka

Feature Request decscrition Currently for KafkaMessageChannelBinder, it can only accept a single instance for ClientFactoryCustomizer, ProducerConfigCustomizer and ConsumerConfigCustomizer each. While this might be a block when there is need to carrry out secondary development on the binder configs/factories by using those customziers in a another library. Because in this way if both the library and users provide their own customziers, then neither of them can take effects.

Expect Solutions For KafkaMessageChannelBinder, hope it can hold a list of those customizers instead of a single one. And then for the KafkaBinderConfiguration, it doesn't need to get the unique one, but can use the similar way of Spring Boot Kakfa Autoconfiguration to add all of them to the binder.

yiliuTo commented 2 years ago

Close and use https://github.com/spring-cloud/spring-cloud-stream/issues/2423 instead