databricks-spark-structured-streaming

Design Spark Structured Streaming pipelines with Kafka ingestion and joins.

11|3|Updated Jun 10, 2025
One-click install
npx skills add https://github.com/Paldom/databricks-apps-fastapi-starter --skill databricks-spark-structured-streaming-paldom
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: databricks-spark-structured-streaming
Source: https://github.com/Paldom/databricks-apps-fastapi-starter/tree/main/.gemini/skills/databricks-spark-structured-streaming
Command: npx skills add https://github.com/Paldom/databricks-apps-fastapi-starter --skill databricks-spark-structured-streaming-paldom

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Production-grade Spark Structured Streaming patterns and best practices to design, validate, and operate reliable streaming pipelines. This skill provides navigable patterns for Kafka ingestion, Real-Time Mode (RTM), triggers, watermarks, stateful processing, checkpoint optimization, and multi-sink patterns across stream-stream and stream-static joins. It also covers cost-aware tuning, monitoring, and reference configurations to help teams implement end-to-end streaming workloads.

Core Features & Use Cases

  • Kafka ingestion patterns with delta sinks and checkpoint guidance.
  • Real-Time Mode (RTM), trigger tuning, and watermark configuration for low-latency streaming.
  • Stream-stream and stream-static joins, multi-sink writes, and production-best practices.
  • Performance tuning, monitoring, and operational safety for production streaming.

Quick Start

Start by reviewing the Kafka-to-Delta streaming example and adapt it to your data sources to bootstrap a production-grade Spark Structured Streaming pipeline.

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 with Kafka ingestion?

Build a Spark Structured Streaming pipeline with Kafka ingestion by applying provided Kafka-to-Delta patterns, configuring triggers, watermarks, and checkpoints to ensure reliable real-time data processing and multi-sink writes.

What are watermarks used for in Spark Structured Streaming?

Watermarks in Spark Structured Streaming track event-time progress to manage late data and bound state size, ensuring accurate stateful processing and stream-stream joins for reliable real-time analytics.

What is the best way to optimize checkpoints in Spark streaming pipelines?

Optimize checkpoints in Spark streaming pipelines by applying reference configurations and production best practices for checkpoint location and stateful processing, ensuring operational safety and reliable workload performance tuning.

Does Spark Structured Streaming support stream-static and stream-stream joins?

Yes, Spark Structured Streaming supports both stream-static and stream-stream joins, providing specific patterns and best practices to handle the watermarks and stateful processing required for these real-time joining operations.

How do I tune performance for low-latency Spark streaming workloads?

Tune low-latency Spark streaming workloads by configuring Real-Time Mode (RTM) and trigger intervals, applying cost-aware tuning and monitoring patterns to maintain operational safety for production-grade real-time pipelines.

When do I need stateful processing in Spark Structured Streaming?

You need stateful processing in Spark Structured Streaming when performing aggregations, joins, or pattern detection across event time, requiring watermarks and checkpoint optimization to manage state and handle late data.