Explain the concept of offsets in Kafka. What is the order in which messages are read by a consumer from a partition?

When a message gets pushed to a partition, it is assigned an offset ID. An offset ID is an incremental ID. The message that is pushed first will have a lower offset value, and the one that is pushed later will have a higher offset value. These messages are read by consumers in the order in which they are pushed to the partitions. The message that is pushed first will be consumed first, and the message that is pushed last will be the last one to be consumed.