Kafka - Event-Driven Architecture
Given this Kafka consumer code snippet:
What will be the output if the topic 'orders' has messages "order1", "order2"?
consumer.subscribe(List.of("orders"));
ConsumerRecords records = consumer.poll(Duration.ofMillis(100));
for (var record : records) {
System.out.println(record.value());
} What will be the output if the topic 'orders' has messages "order1", "order2"?
