if i wanna send the message syncronously i can do as below: future=producer.send(producerRecord, callback); future.get();
but the throughput decrease dramatically; is there a method to send the messages by batch but synchronously ?
if i wanna send the message syncronously i can do as below: future=producer.send(producerRecord, callback); future.get();
but the throughput decrease dramatically; is there a method to send the messages by batch but synchronously ?