012. CLI. Producer. - MarkHuntDev/my-kafka-exercises GitHub Wiki

  • Produce messages
    • $ kafka-console-producer.sh --broker-list 127.0.0.1:9092 --topic <topic_name>
  • Produce messages with acknowledgements
    • $ kafka-console-producer.sh --broker-list 127.0.0.1:9092 --topic <topic_name> --producer-property acks=<0, 1, or all>
  • If do producing to not existed topic then this new topic will be created with default configurations that NOT RECOMMENDED. CREATING TOPICS BY HAND IS THE BEST PRACTICE.
⚠️ **GitHub.com Fallback** ⚠️