Kafka - Consumers
You want to process messages from multiple Kafka topics continuously and commit offsets manually after processing. Which code snippet correctly implements this using a consumer poll loop?
poll(Duration.ofMillis(200)) inside a continuous while(true) loop, which is correct.commitSync() after processing, ensuring offsets are committed manually.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions