Kafka - Consumers
Given this Kafka consumer snippet:
What is the effect of calling
ConsumerRecordsrecords = consumer.poll(Duration.ofMillis(100)); consumer.commitSync();
What is the effect of calling
commitSync() immediately after poll() without processing the records?