📥Kafka Offset
Also known as Offset, Consumer Offset, Committed Offset
The place number of an event in a partition. Readers save it like a bookmark.
Think of it like
It is like a bookmark. It shows the last page you read, so you can pick up there next time.
Example
A billing service crashes after reading offset 5,120. When it restarts, it carries on at 5,121, and no bill is missed.
Why it matters
Offsets are how Kafka readers survive crashes. They also let you replay data by moving the bookmark back.
Definition
Common mistake
Key takeaways
- 1A place number. Counts up inside each partition.
- 2Committed by readers. Saved so a restart resumes there.
- 3Can be reset. Move it back to replay.