title: Kakfa Producer Message Delivery with acks=all and flush
body: <p>Creating Kafka Producer with "acks=all" config.</p>
  
  <p>Is their any significance of calling flush with above config ?</p>
  
  <p>Will it wait for flush to be invoked before being sent to broker.</p>
  
  <p>AS </p>
  
  <blockquote>
    <p>acks=all This means the leader will wait for the full set of in-sync
    replicas to acknowledge the record. This guarantees that the record
    will not be lost as long as at least one in-sync replica remains
    alive. This is the strongest available guarantee. This is equivalent
    to the acks=-1 setting.</p>
  </blockquote>