title: How to send messages synchronously in kafka?
body: <p>One way of achieving it could be by  setting the properties parameter<br />
  <code>max.in.flight.requests.per.connection = 1</code>.</p>
  <p>But I want to know if there is an even direct or alternate way of sending messages synchronously in kafka, something like <code>producer.syncSend(...)</code>.</p>