Reputation: 150
with the golang library sarama, is there a way to create a topic with a specific expiration time (for messages)?
And later that we can edit it, without deleting and recreating the topic?
Upvotes: 1
Views: 426
Reputation: 191844
A ClusterAdmin
client can create topics that have TopicDetail
s containing a map of config entries, of which you can set the retention period
You can later edit it with AlterConfigsRequest
Upvotes: 2