Creates a new Kafka producer handle.
Producer::produce() \p msgflags
Wait until all outstanding produce requests, et.al, are completed. This should typically be done prior to destroying a producer instance to make sure all queued and in-flight produce requests are completed before terminating.
Produce and send a single message to broker.
Producer