Q&A
Q&AWhy are Kafka offsets and commit timing so important?
Offsets are the durability checkpoint. Commit too early and you lose work; commit too late and you duplicate it.
Read the concise answer
Kafka commits represent when the consumer believes work has been finished. If the offset is committed before the business effect is truly durable, a crash can lose data. If it is committed only after a delay, the application may re-process messages when the consumer restarts. The correct strategy is to commit only after the state change is stored successfully and the work is idempotent enough to recover from retries.