kafka-protocol-rs
kafka-protocol-rs copied to clipboard
Need help with (offset, sequence) of Record.
Can anyone explain for me the meaning of offset and sequence fields of Record struct pls. I found that when encode a Vec<Record>. It only produce successfully if offset increases one by one from 0 and sequence can increase one by one from arbitrary number.
As noted on field's comments: offset:
Message offset within a partition.
It's about order in partition.
sequence:
Sequence identifier used for idempotent delivery.
Record will not be duplicated if same identifier was already delivered.