Skip to content
Gold 6 min read · Operations 2 practice problems ↓

Monitoring streams

The progress report, the four signals worth an alert, listeners and the Spark UI.

Step 4 · Structured Streaming · Gold · Running streams in production, lesson 1 of 3

Read first: Checkpoints and state stores · Watermarks and late data (skip if you know them)

In plain words first

A car's dashboard does not wait for the engine to fail. The speedometer, fuel gauge and warning lights tell you early that something is going wrong. A stream has the same dashboard: after every micro-batchmicro-batch: One small round of a stream: Spark takes the data that arrived since the last round, processes it like a little batch job, and saves its progress. Learn more → Spark reports how fast data came in, how fast it was processed, how much the stream is remembering, and how many late rowslate data: Events that arrive after newer events have already been seen, for example from a phone that was offline. Learn more → it threw away. Watching four of those numbers catches almost every problem early.

Unlock the full lesson

You have read the free part. The rest of this advanced lesson:

  • What every micro-batch reports
  • Four signals worth an alert
  • Pushing progress out with a listener
  • The Spark UI
  • Try it yourself
  • Common mistakes
  • Key takeaways
  • Interview prep with 3 follow-up questions
  • Check yourself: 3 questions

Unlock it with the Complete pass (every advanced problem and lesson) or on its own.

Practise this

Interview problems on streaming, graded on hidden tests

Keep going

Up next · Running streams in production · lesson 2 of 3 · 8 min read
Backpressure and rate limits
When data arrives faster than a stream processes it: measuring lag, catch-up arithmetic, rate limits per source, and what to scale.

Related lessons

Previous: Custom state with transformWithState

Primary sources: Monitoring streaming queries · Structured Streaming tab in the Spark UI