To publish a message, a producer sends a record to the producer client library, which batches the records before sending them to the server.
The producer client library sends the records to the server when any of the following conditions are met:
streams.buffer.max.time.ms configuration parameter. For the Java client, the default interval for flushes is 3000 milliseconds. For clients based on librdkafka (for example, C, Python, and C#), the default interval for flushes is 0 (zero) milliseconds.
buffer.memory configuration parameter. fs.mapr.threads parameter in the core-site.xml
file on your client node.