What kind of delivery guarantee this consumer offers?
while (true) {
ConsumerRecords<String, String> records = consumer.poll(100);
try {
consumer.commitSync();
} catch (CommitFailedException e) { log.error("commit failed", e)
}
for (ConsumerRecord<String, String> record records)
{
System.out.printf("topic = %s, partition = %s, offset = %d, customer = %s, country = %s
",
record.topic(), record.partition(), record.offset(), record.key(), record.value());
}
}