← Learning Hub Reference Databricks latency tiers Verified against docs: Aug–Sep 2026

Latency Tiers & Real-Time Fit

Quick-reference for deciding how fresh a Databricks pipeline needs to be, what that costs, and when to keep the workload out of the lakehouse entirely.

1. The tier table

TierLatencyBuild withCompute profileUse when
Incremental / triggered Minutes Serverless job + Trigger.AvailableNow(), or triggered Lakeflow pipeline Starts in seconds, runs backlog, exits Medallion ETL, scheduled forecasts, market-deadline outputs
Continuous Seconds Lakeflow pipeline in continuous mode Always-running cluster Live monitoring, imbalance views, sub-minute freshness
Real-time mode ~300 ms typical, <1 s tail, 5 ms floor .trigger(realTime='5 minutes') Dedicated compute, all stages scheduled at once Fraud detection, operational alerting, immediate automated action

Sources: Real-time mode concepts, Triggered vs. continuous pipeline mode, Streaming on serverless compute.

The seam at "a few minutes"

Docs place triggered mode at "every 10 minutes, hourly, or daily" and continuous at "every 10 seconds and a few minutes". A 5-minute cadence sits on the boundary — decide by benchmarking cost per day on your real volume, not by reading the doc harder.

2. Trigger syntax

# Triggered / incremental — cheapest, minute-level freshness
(df.writeStream
   .trigger(availableNow=True)
   .option("checkpointLocation", checkpoint_path)
   .toTable("catalog.schema.target"))

# Time-based micro-batch — classic compute only, NOT serverless
.trigger(processingTime="5 minutes")

# Real-time mode — sub-second, dedicated compute
.trigger(realTime="5 minutes")   # arg = batch length, not latency

# Deprecated since DBR 11.3 — migrate to availableNow
.trigger(once=True)

⚠ Serverless trigger constraints

3. Production rules for streaming jobs

RuleWhy
Never use all-purpose compute for streamingUse jobs compute; new resources deploy on retry
Never enable classic autoscaling on a streaming jobScale-down is unreliable; use Lakeflow enhanced autoscaling
One checkpoint directory per query, in cloud storageCheckpoint reuse corrupts progress tracking
Prefer Lakeflow pipelines over hand-rolled streamingDatabricks' explicit recommendation for new pipelines
Make foreachBatch logic idempotentforeachBatch is at-least-once, not exactly-once
Never leave the trigger unsetDefault is 0 ms polling → runaway cloud storage API charges
Don't call awaitTermination() in a jobBlocks the Jobs service from tracking the query
Configure jobs to auto-restart on failureContinuous job trigger retries with exponential backoff

Source: Production considerations for Structured Streaming.

4. Levers if you must go faster (in order of cost)

  1. Shrink the fast lane. Move everything that does not depend on fresh data onto a slower schedule. Free.
  2. Output mode update instead of append where supported; never complete. Requires an idempotent sink.
  3. Shorten the watermark. Less state, lower latency — at the cost of dropping late records. Start around 2× your latency SLA.
  4. Remove storage hops. Splitting logic across jobs adds a round trip to object storage each time.
  5. RocksDB state store + changelog checkpointing for stateful queries; async state checkpointing if checkpointing dominates batch duration.
  6. Async progress tracking for continuous streams (incompatible with AvailableNow/Once).
  7. Low-latency source and sink. Kafka / Kinesis / Pub-Sub / Delta CDF in, message bus or operational DB out.
  8. Real-time mode. Last resort. Dedicated compute, less frequent checkpointing, longer replay on failure.

5. Out-of-scope test

Keep it out of the lakehouse if…

6. Energy-domain sizing heuristics

SignalTypical cadenceLane
NWP run (ICON, ECMWF, GFS)1–6 hoursSlow
SCADA telemetry1–10 minutesFast
Meter / settlement data15 min – dailySlow
Intraday market pricesContinuous, gate-drivenFast
Model retrainingDaily – weeklySlow

Rule: the fast lane recomputes only what fresh telemetry can change — measured output, availability, curtailment state, and a short-horizon bias/persistence correction. Everything else rides the slow lane.

Rechtliches: Impressum