Skip to content

Structured Streaming

27 in-depth lessons. Learn streaming from the first question, whether you need a stream at all, to running one in production. Every lesson starts in plain words: sources, triggers and checkpoints, Kafka from topics to Kafka 4, windows and late data, exactly-once from end to end, ordering and bad records, joins and custom state, backpressure, recovery, and the same ideas on Google Cloud.

Bronze

Module 1: First streams

Decide whether data needs a stream, start one from a replayable source, and pick a trigger for it.

Module 2: Output modes and checkpoints

Say what a query writes after each batch, and what its checkpoint holds.

Module 3: Kafka basics

Explain what Kafka stores, how readers share a topic, and where Spark keeps its position.

Silver

Module 4: Stateful streams

Aggregate by event time in windows, deduplicate, and bound state with a watermark.

Module 5: Streams into the lakehouse

Stream into and out of Delta tables, and ingest new files exactly once.

Module 6: Kafka in depth

Write to Kafka safely and fast, and change message schemas without breaking readers.

Module 7: Correct results end to end

Say what a pipeline guarantees from producer to reader, keep events in the order that matters, and set bad records aside without stopping.

Gold

Module 8: Joins and custom state

Join streams with bounded state, and write custom stateful logic with timers.

Module 9: Running streams in production

Monitor a stream, deploy changes to it, and reprocess safely.

Module 10: Kafka in production

Configure Kafka not to lose data, size partitions, and explain what Kafka 4 changed.

Module 11: Streaming beyond Spark

Answer streaming design questions for Google Cloud: Pub/Sub, Dataflow and BigQuery.