I want to know the different between the api consumer.commit(msg) and consumer.commit().
in my program, I have use the call the method consumer.poll_batch as follows:
auto messages = consumer.poll_batch(1000);
then I should call consumer.commit() . or
for (auto message : messages)
consumer.commit(mesage).
I want to know the different between the api consumer.commit(msg) and consumer.commit(). in my program, I have use the call the method consumer.poll_batch as follows: auto messages = consumer.poll_batch(1000); then I should call consumer.commit() . or for (auto message : messages) consumer.commit(mesage).