databricks-spark-structured-streaming

Provide patterns and templates for Spark Structured Streaming pipelines with Kafka ingestion.

Updated Jan 30, 2026
One-click install
npx skills add https://github.com/teegin-g/Slopcast --skill databricks-spark-structured-streaming-teegin-g
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: databricks-spark-structured-streaming
Source: https://github.com/teegin-g/Slopcast/tree/main/.agents/skills/databricks-spark-structured-streaming
Command: npx skills add https://github.com/teegin-g/Slopcast --skill databricks-spark-structured-streaming-teegin-g

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Spark Structured Streaming pipelines require production-grade patterns and best practices; this Skill provides navigation to reusable templates and configurations to accelerate reliable streaming.

Core Features & Use Cases

  • Patterns for Kafka ingestion, stream-joins, stateful processing with watermarks, and multi-sink writes.
  • Production best practices for triggers, checkpointing, and performance tuning.
  • Real-world use cases across data pipelines, IoT streams, and event-driven analytics.

Quick Start

Create a production-grade Spark streaming job that reads from Kafka, applies standard patterns, and writes to Delta with a checkpoint.

Frequently Asked Questions about databricks-spark-structured-streaming

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
What are the best practices for building production-grade Spark Structured Streaming pipelines?

Production-grade Spark Structured Streaming pipelines require reliable checkpoint management, optimized triggers like processingTime or availableNow, and stateful processing with watermarks. Implementing standardized patterns for Kafka ingestion and stream joins ensures robust real-time data processing.

How do I manage stateful processing and watermarks in Spark Structured Streaming?

Stateful processing in Spark Structured Streaming uses watermarks to handle late data and manage state size. Defining watermarks on event time allows the engine to discard old state, preventing unbounded memory growth during stream-stream or stream-static joins.

How do I ingest data from Kafka and write to Delta Lake using Spark Structured Streaming?

To ingest Kafka data into Delta Lake, configure a Spark Structured Streaming read stream from Kafka topics, apply transformations, and use a write stream with a Delta sink and checkpoint location. This pattern enables fault-tolerant, exactly-once real-time processing.

What is the difference between processingTime and availableNow triggers in Spark Streaming?

The processingTime trigger processes data at fixed intervals, while availableNow processes all available data incrementally and stops upon completion. availableNow is ideal for batch-like, cost-effective streaming jobs, whereas processingTime suits continuous low-latency real-time processing.

Can I perform stream-stream joins in Spark Structured Streaming for real-time analytics?

Stream-stream joins in Spark Structured Streaming allow merging two real-time data sources by time range and watermark. This enables event-driven analytics and IoT stream processing by matching concurrent events within a defined temporal window.

Why do I need checkpoint management for Spark Structured Streaming jobs?

Checkpoint management is essential for Spark Structured Streaming jobs to ensure fault tolerance and exactly-once processing guarantees. It stores metadata and state to Delta locations, allowing pipelines to recover seamlessly from failures and continue processing accurately.