kafka-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Colin McCabe <cmcc...@apache.org>
Subject Re: Topic Creation programatically
Date Wed, 03 May 2017 19:46:10 GMT
Hi Zishan,

The best practice will depend on the situation.  In most cases, creating
the topic using the CLI creation command prior to running your code is
easier than creating it programmatically.  There will be a new
AdminClient API for creating topics programmatically in the 0.11
release; prior to that, your main option would be using topic
auto-creation.  I would not recommend using topic auto-creation, because
you will not be able to set the configuration that is used on the new
topic.

best,
Colin


On Tue, Apr 11, 2017, at 01:51, Zishan Ali Saiyed wrote:
> Hi Team,
> 
> I am using kafka integrated with java client. I have a question " What is
> the best practice to create topic using programmatically or using CLI
> topic
> creation command?"
> 
> 
> Thanks,
> Zishan Ali

Mime
View raw message