QuestionQ146

VerifiedStructured Streaming

A data engineer is creating a Structured Streaming pipeline that ingests data from a Kafka topic.

Although the priority is minimal latency, the engineer also needs to preserve an Exactly-Once processing guarantee in the pipeline.

Which trigger mode should the engineer use for writeStream?

Explanation

A processing-time trigger runs Structured Streaming in micro-batch mode, which provides exactly-once fault tolerance through checkpointing and write-ahead logs. Continuous processing can achieve lower latency but provides only at-least-once guarantees, while AvailableNow terminates after processing currently available data.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!