What problem does it solve?
This Skill helps teams build, operate, and optimize reliable Spark Structured Streaming pipelines for production use, reducing data loss, state explosion, and operational cost while ensuring exactly-once durability.
Core Features & Use Cases
- Robust Ingestion: Patterns for Kafka-to-Delta and Kafka-to-Kafka ingestion with consumer/producer tuning and security (SASL/SSL).
- Stateful Processing & Joins: Watermark configuration, RocksDB state store guidance, stream-stream and stream-static join best practices.
- Durable Writes & Merges: Checkpoint management, idempotent writes with txnVersion/txnAppId, parallel MERGE patterns and Liquid Clustering optimizations.
- Operational Patterns: Trigger and cost tuning (processingTime, availableNow, RTM), multi-sink writes, monitoring checks, and production checklists.
- Real-World Example: Implement a Kafka-to-Delta medallion pipeline that enriches events with dimension tables, writes bronze/silver/gold sinks in one ForEachBatch, and uses persistent UC checkpointing for fault recovery.
Quick Start
Start a Kafka-to-Delta streaming job that reads from topic "topic", enriches events with Delta dimension tables, writes to /delta/bronze_events with a persistent checkpoint at /Volumes/catalog/checkpoints/bronze_events and a 30 second processingTime trigger.