I use Apache Kafka client to poll records from Kafka.
Let us say I do something like:
org.apache.kafka.clients.consumer.Consumer consumer = ...
...
ConsumerRecords<String, String> consumerRecords = consumer.poll(...);
List<ConsumerRecord<String, String>> records = consumerRecords.records(partition);
My question: are records
returned in the natural order? More specifically, are they ordered by offset
in the records
list?
I couldn't find anything specific about this property in the JavaDoc.