SpinTheMic
Pro

Interview practice question

Deduplicating events in a streaming job

Data Engineering · Kafka Streaming · Intermediate

Mobile apps resend events when offline, causing duplicates. How do you deduplicate in a streaming pipeline?

What a strong answer covers

Your AI report card counts how many of these ideas you cover.

  • Require a unique event ID from the client.
  • Deduplicate with state over a bounded time window.
  • Spark dropDuplicatesWithinWatermark or Flink keyed state with TTL.
  • Choose window based on how late resends arrive.
  • Idempotent sink as final safety net.
Practise this topic

Start without signing up. Sign in free to get an AI report card on your answer.

See all topics