Intermediatehow it works
How do you handle late-arriving data in a streaming pipeline?
Quick answerFree
Use event time, not arrival time, and a watermark: the maximum event time seen minus an allowed lateness, say 10 minutes. Spark keeps window state until the watermark passes, so late events within the threshold still update their window, and older state is dropped so memory stays bounded.
Detailed answer· 83 words
Interview PrepUnlock the full answer with Interview Prep
Get a 83-word model answer, 4 key points and a visual explainer, plus 91 more System Design questions.
Also in Pro (₹499 / 90 days).
Key points· 4 points
Interview PrepUnlock with Interview Prep
Visual explainer· animated, step by step
Interview PrepUnlock with Interview Prep
+ 91 more System Design questions in Interview Prep, each with the full answer.