Looking for example - create topic

hi guys.

I’d like to add some code to app, that checks for existence of a topic, if it does not exist it creates it… to my specs.

anyone have example code specifying at basic,
name, protection level, retention, partitions.

G

What language are you working in? Golang? Python? etc.

oops… this is for golang.

G

If this is for Confluent’s Go client for Apache Kafka® , here is an Admin Client example: confluent-kafka-go/admin_create_topic.go at master · confluentinc/confluent-kafka-go · GitHub

awesome, thank you.

G

… Request to development…
when using the CibtrolCenter… allow the user, instead of save/execute command to show the command to be executed.

like in SQLDeveloper, show SQL.

G

Hey george, this is a good idea - you can post it in #tools:graphical-tools :slight_smile:

I see in the Java code there is a topicExist method, anything similar in Golang, not seeing reference to it.

G

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.