06
How do you handle duplicate events caused by retries?
Tap to write answer
0 words | 0 charsPress Enter ↵ to reveal
Your Attempt
0 wordsRefined Model Answer
ReferenceI would deduplicate using a stable business key or request identifier before aggregation or downstream writes. If the source is at-least-once, I would assume duplicates will happen and design the pipeline so the same event does not create double counts. The key is to make deduplication explicit, not implicit.