title: Kafka consumer manual offset commit
body: <p>In one of my use-case consist of consuming the data, do some operations and produce it to new topic.</p>
  <p>I'm using <a href="https://www.npmjs.com/package/kafkajs" rel="noreferrer">https://www.npmjs.com/package/kafkajs</a> npm library.</p>
  <p>I would like to commit the offset manually after successful operations to avoid any data loss. I'm using <code>autoCommit: false</code> to avoid data auto committing after consuming.</p>
  <p>This is the code to commit offset manually</p>
  <pre><code>consumer.commitOffsets([
    { topic: 'topic-A', partition: 0, offset: '1' }
  ])
  </code></pre>
  <p>As I read somewhere that if we commit each offset intentionally (commit offset immediately after cosuming) then it will create load on brokers and its not good to do.</p>
  <p>I need kafka expert advise to suggest the best approach on my above use case to avoid any data loss? please advise</p>