Treat a stream as a table that never ends: micro-batches, output modes, checkpoints, watermarks and foreachBatch.
Structured Streaming treats a stream as an unbounded table: every new event is a row appended to an input table that never ends. You write an ordinary DataFrame query against it — select, filter, groupBy, joins — and Spark runs that query incrementally, updating a result table as data arrives.
Spark doesn't keep the whole input. It reads only what's new, updates the result, and keeps just the intermediate state needed for things like running counts. Because the code is the same as for a static DataFrame, you can unit-test streaming logic in batch.
Reach the last step for the run summary: the key takeaways from this lesson.