Structured Streaming treats a source as a table that keeps growing. spark.readStream reads it, and writeStream with toTable writes the results to a Delta table. The checkpoint location records which input has been processed, so a restarted stream continues where it stopped instead of reading everything again. The trigger sets the rhythm: availableNow=True processes what has arrived and stops, which suits scheduled jobs, while processingTime runs a micro-batch at a fixed interval.
Azure Event Hubs exposes a Kafka endpoint, so you read it with the Kafka source and a connection string from a secret scope. Inside the lakehouse, a Delta table can publish its own changes: enable delta.enableChangeDataFeed, and readers get each inserted, updated and deleted row with _change_type, _commit_version and _commit_timestamp. To apply a change feed from a source system to a target table, pipelines use AUTO CDC, which orders changes by a sequence column and handles deletes.
The practice workspace runs each stream as a finite batch over its fixture tables and remembers checkpoints within the session.
Two batch appends load every row twice. A stream with the same checkpoint skips input it has already processed.