I have a requirement where I need to create and delete Kafka topics programmatically. org.springframework.cloud.stream.binding.BinderAwareChannelResolver
. resolveDestination(String channelName)
can create a topic, but this is deprecated.
Also, there is no way to delete Kafka topic programmatically which I am aware of.
Any suggestions to achieve this are welcome!