Kafka - Advanced Stream Processing
Given this Kafka consumer code snippet using an advanced pattern:
What is the main benefit of calling
consumer.subscribe(['orders'])
for message in consumer:
process(message)
consumer.commit()What is the main benefit of calling
consumer.commit() after processing each message?