Skip to main content
Intermediatehow it works

How do you handle late-arriving data in a streaming pipeline?

Source: Google SRE book: data processing pipelines

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 Prep

Unlock 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 Prep
Unlock with Interview Prep

Visual explainer· animated, step by step

Interview Prep
Unlock with Interview Prep

+ 91 more System Design questions in Interview Prep, each with the full answer.

Discussion