Re: KafkaProducer partitionsFor v/s KafkaAdminClient describeTopics

2025-06-11 Thread Brebner, Paul
doc/org/apache/kafka/clients/consumer/KafkaConsumer.html#partitionsFor(java.lang.String) Regards, Paul Brebner From: Subra I Date: Wednesday, 11 June 2025 at 12:42 am To: users@kafka.apache.org , d...@kafka.apache.org Subject: KafkaProducer partitionsFor v/s KafkaAdminClient describeTop

KafkaProducer partitionsFor v/s KafkaAdminClient describeTopics

2025-06-10 Thread Subra I
Hi All, I need to know the number of partitions for a topic before producing/consuming. Some users may set the number of partitions for a given topic but some users may just set the number of partitions in server.properties. It should work for both cases. Which method is better for a production g