Answer
Commit after processing: a crash in between reprocesses the message, so at-least-once (consumers must be idempotent). Commit before: a crash in between skips it, so at-most-once. Pick by which is worse for you: a duplicate or a lost event.
Streaming · Flashcard
Commit after processing: a crash in between reprocesses the message, so at-least-once (consumers must be idempotent). Commit before: a crash in between skips it, so at-most-once. Pick by which is worse for you: a duplicate or a lost event.