By default, the offsets are committed automatically, but this behavior can be changed by setting enable.auto.commit to false. You may want to control when offsets are committed and how frequently (using the related configuration auto.commit.interval.ms) to minimize duplicates and avoid missing data.