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