offset

The permanent position number of a record inside its partition, starting at zero and increasing by one for each record.

In more detail

An offset is an address, not a receipt: reading a record does not change or remove it, and any consumer can start reading from any offset. The partition and offset together identify exactly one record. Consumer groups store their progress separately as a committed offset.

Example

rpk topic consume events -o 3 --num 2

Related terms

Taught in

References

Certification courses