Skip to main content
Advancedhow it works

How do you handle late and duplicate events in a streaming job?

Source: Apache Kafka documentation: introduction and design

Quick answerFree

Use event time, not processing time. A watermark (for example 10 minutes) tells Spark how late data may arrive; state older than the watermark is dropped, so memory stays bounded.

Detailed answer· 68 words

Interview Prep

Unlock the full answer with Interview Prep

Get a 68-word model answer, 4 key points and a visual explainer, plus 21 more Apache Kafka questions.

Also in Pro (₹499 / 90 days).

Key points· 4 points

Interview Prep
Unlock with Interview Prep

Visual explainer· animated, step by step

Interview Prep
Unlock with Interview Prep

+ 21 more Apache Kafka questions in Interview Prep, each with the full answer.

Discussion