Batch.size configuration in Kafka Streams

Hi everybody,

Reading about Kafka Streams’ configuration, I’ve seen the parameter batch.size which is what I was looking for.

As far as I’ve understood, this parameter applies to all topics’ events in the stream. However, I’d like to change this parameter in just one topic and keep the rest of the topics with the default value. Is this possible?

I guess it’s not possible and maybe the reason behind this is that KafkaStreams uses the same producer for all the topics. Am I right?

Thanks in advance.

1 Like

Your are correct. batch.size is a producer config and Kafka Streams uses a single producer to write to all topics, so it’s not possible to configure it on a per-topic basis.

1 Like

Thanks for your quick answer.