databricks-spark-structured-streaming

Build Spark Structured Streaming pipelines on Databricks with Kafka and Delta Lake.

Updated Mar 10, 2026
One-click install
npx skills add https://github.com/robkisk/coding-agents-databricks-app --skill databricks-spark-structured-streaming-robkisk
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: databricks-spark-structured-streaming
Source: https://github.com/robkisk/coding-agents-databricks-app/tree/main/.claude/skills/databricks-spark-structured-streaming
Command: npx skills add https://github.com/robkisk/coding-agents-databricks-app --skill databricks-spark-structured-streaming-robkisk

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides comprehensive guidance and patterns for building reliable, production-ready Spark Structured Streaming pipelines, addressing challenges like data ingestion, state management, and performance optimization.

Core Features & Use Cases

  • Data Ingestion: Patterns for ingesting data from sources like Kafka into Delta Lake.
  • Stateful Operations: Techniques for handling late-arriving data, joins, and aggregations using watermarks and state stores.
  • Performance Optimization: Strategies for tuning triggers, optimizing merge operations, and managing cluster resources.
  • Use Case: You need to build a real-time analytics pipeline that ingests event data from Kafka, enriches it with dimension data from Delta tables, performs aggregations, and writes the results to multiple downstream Delta tables, all while ensuring exactly-once processing semantics.

Quick Start

Use the databricks-spark-structured-streaming skill to create a Kafka to Delta streaming pipeline with checkpointing.

Frequently Asked Questions about databricks-spark-structured-streaming

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

FAQPage Schema
How do I build a Spark Structured Streaming pipeline from Kafka to Delta Lake?

To build a Spark Structured Streaming pipeline from Kafka to Delta Lake, you configure a Kafka source, apply transformations, and write the streaming data to Delta tables using checkpointing for fault tolerance and exactly-once processing semantics.

How does Spark Structured Streaming handle late-arriving data in stateful operations?

Spark Structured Streaming handles late-arriving data in stateful operations by using watermarks to define the maximum allowed lateness and dropping data that arrives later than the threshold, ensuring accurate aggregations and stream-stream joins without unbounded state growth.

Can I join streaming data with static Delta Lake dimension tables in Databricks?

Yes, you can join streaming data with static Delta Lake dimension tables in Databricks using stream-static joins to enrich real-time event data without requiring the dimension table to be streamed.

What is the best way to optimize triggers for performance in Spark Structured Streaming?

The best way to optimize triggers for performance in Spark Structured Streaming is to tune trigger intervals, optimize merge operations, and manage cluster resources effectively to handle real-time workloads with low latency and high throughput.

Does this Skill provide patterns for stream-stream joins in Spark Structured Streaming?

Yes, this Skill provides comprehensive patterns for stream-stream joins in Spark Structured Streaming, helping you merge two unbounded data streams using watermarks to generate time-limited output and maintain state efficiently.