QuestionQ253

VerifiedProductionizing Data Pipelines

A company must keep its currency exchange dashboard updated within a strict 15-minute Service Level Agreement (SLA). Source data arrives in small increments every few minutes. The data engineering team needs to choose a triggering strategy for their Lakeflow Job that keeps end-to-end latency within the SLA while minimizing compute cost and DBU consumption.

Which triggering strategy for the Lakeflow Job is recommended to meet this 15-minute SLA?

Explanation

Databricks recommends using a Scheduled trigger on the Lakeflow Job combined with a streaming task set to Trigger.AvailableNow when a workload has a bounded latency requirement (such as a 15-minute SLA) but the priority is also minimizing compute cost. Trigger.AvailableNow processes all data available at the start of the run across one or more micro-batches and then shuts the compute down, rather than keeping a cluster running continuously (as a Continuous trigger or a very frequent 1-minute schedule would require). Scheduling the job to run every 12 minutes leaves enough buffer under the 15-minute SLA to account for job startup and processing time while avoiding the unnecessary DBU consumption of continuous compute or excessively frequent runs. A file-arrival trigger firing per individual small file, or a continuous/always-on trigger, would both increase compute usage and cost without providing meaningful additional benefit toward meeting the SLA.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!