O'Reilly logo
  • Ashish Kaushal thinks this is interesting:

The following code snippet shows how to create a new producer by setting just the mandatory parameters and using defaults for everything else:

From

Cover of Kafka: The Definitive Guide

Note

gg.handler.kafkahandler.KafkaProducerConfigFile=kafka_producer_main.properties