Streaming: Spark Structured Streaming
The nightly revenue report from the first post in this track now finishes in twenty minutes — a win. But product's "dashboard that updates every minute" request is still open, and yesterday's incident made it urgent: a pricing bug overcharged customers for three hours before anyone noticed, because the batch job only runs at midnight. "We need to see what's happening now ," the on-call engineer says. "Not what happened yesterday." That's the streaming question — "what's happening?" — and this post answers it with the engine you already know. Spark Structured Streaming takes the DataFrame API from posts 3–4 and points it at data that never ends: instead of learning a separate streaming API, you write what looks like a batch query, and the engine executes it incrementally as new rows arrive. By the end you'll understand the mental model, the one interview concept that matters (event time vs processing time), watermarks,...