Skip to content

Offset commits at key level to ensure no event loss (how offset committing works) #135

Answered by astubbs
pdeole asked this question in Q&A
Discussion options

You must be logged in to vote

Sorry for the delay in answering our question! It's a great question and really gets at the heart of what this library provides.

However, that's not how offset committing works :) Have you had a chance to look at the readme?

  1. Let's insert event key1 with has offset 29, which was previously complete and committed.
  2. Offset 40 will not be committed, as there are offsets previous to it, which have not completed (offset 30). What will happen is, offset 29 will be committed again, and in it's commit message there is a metadata payload - that payload will carry the information that offset 30 is not complete, while offset 40 is complete.
  3. instance goes down, power cut
  4. partition is reassigned to ano…

Replies: 2 comments 8 replies

Comment options

You must be logged in to vote
2 replies
@nguyenbanh1
Comment options

@astubbs
Comment options

Answer selected by astubbs
Comment options

You must be logged in to vote
6 replies
@astubbs
Comment options

@pdeole
Comment options

@pdeole
Comment options

@astubbs
Comment options

@pdeole
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants