kcat
kcat copied to clipboard
Produce to multiple topics
Is there a way to produce messages to one of several topics?
When using kafkacat in the Producer mode, a single topic is specified with the -t
option. I'd like to specify a set of possible topics. Then, produce each message to one of those topics, perhaps with a custom delimiter separating the topic name and message value.
That's not currently possible. We'll look into adding dynamic topic support when adding produce-by-JSON-envelope support.
Any update on this? Seems like an useful addition to kcat if it is there. we can record from multiple topics and playingback to respective topics would be nice addition., via group option.
This will be possible when we implement the rich/json input format, but that's some way out. In the meantime use multiple kcat instances, or use a proper language client such as confluent-kafka-python.