You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by lqjacklee <lq...@gmail.com> on 2022/05/02 13:40:32 UTC

[Discuss] KIP-832: Allow creating a producer/consumer using a producer/consumer config

Hi Bruno and frosiere,

Thanks for raising this KIP, this would be a useful improvement!

I advise just expose Map and Properties to the user. so that the parameters
will be consistent with old one.

the Advise like :

1, consumer api:
public KafkaConsumer(Map<String, Object> configs,

                         Deserializer<K> keyDeserializer,
                         Deserializer<V> valueDeserializer,
                         List<ConsumerInterceptor<K, V>> interceptors)

2, producer api:

public KafkaProducer(Map<String, Object> configs, Serializer<K>
keySerializer, Serializer<V> valueSerializer,
List<ProducerInterceptor<K, V>> interceptors)

Any idea?

Please let me know.
Thanks,
lqjack