cancel
Showing results for 
Search instead for 
Did you mean: 
Technical Blog
Explore in-depth articles, tutorials, and insights on data analytics and machine learning in the Databricks Technical Blog. Stay updated on industry trends, best practices, and advanced techniques.
cancel
Showing results for 
Search instead for 
Did you mean: 
rosinaKazakova
Databricks Employee
Databricks Employee

In a modern manufacturing facility, high-resolution cameras and precision sensors continuously inspect products as they move along the assembly line. Every image, measurement, and signal is analyzed within milliseconds to identify surface defects, dimensional inaccuracies, or missing components. When an issue is detected, the production system immediately responds, activating mechanisms that remove defective items before they progress further down the line.

At this scale and speed, there is no room for delayed decisions. Without real-time data processing and instant action, defective products can reach customers, compromise quality standards, and drive up operational costs through rework and waste.

This is the reality of modern manufacturing, where competitive advantage is measured in milliseconds rather than hours. As AI agents become increasingly responsible for automating workflows, coordinating complex processes, and making context-aware decisions, the need for low-latency, scalable, and reliable streaming infrastructure has become more critical than ever. Real-time data is no longer a competitive differentiator. It’s a foundational requirement for intelligent, autonomous operations.

Streaming workloads fall into two categories. Operational workloads require millisecond processing for mission-critical actions: fraud detection, transaction processing, or stopping a production line. Analytical workloads operate at subsecond to minute latencies, enabling dashboards, business intelligence, and ML-driven insights. Organizations increasingly need both on a single platform. Databricks Spark Structured Streaming has long been the enterprise standard for real-time analytical workloads and has successfully enabled many manufacturing companies to build scalable, production-grade streaming pipelines. 

rosinaKazakova_0-1782805344059.png

Now, with Real-Time Mode (RTM) in Spark Structured Streaming delivering sub-300ms P99 latency, Databricks bridges the gap to operational workloads. Lakeflow Spark Declarative Pipelines (SDP) let teams define end-to-end streaming flows once for both batch and real-time, covering ingestion, feature computation, model inference, data quality, and governance in a single Lakehouse architecture.

 

rosinaKazakova_1-1782805344056.png

Latency in milliseconds and between 100-200ms across use cases and stateful operations 

Why Real‑Time Still Struggles in Smart Factories

On every smart factory floor, machines run around the clock, producing continuous sensor data. Manufacturers can accept some latency when the resulting action has a manual step. But when the result immediately affects the operational process, real-time data is non-negotiable.

Examples:

Press-fit machine: A press-fit machine on an automotive line uses controlled force to push two slightly mismatched parts together so they lock by interference fit, without screws or solder. If the machine misaligns by just 1 degree, the resulting torque can introduce microcracks in the workpiece. The line must stop immediately. That decision must be made automatically, in real time, based on local parameter monitoring at the edge.

Gear honing on CNC machines: On a transmission line, gears are honed on CNC machines and measured via vibration sensors during machining. Vibration spectra are captured in real time, transformed (e.g., FFT), and compared against reference signatures. If the pattern deviates, the machine ejects the gear and can retract the tool to prevent damage. Simultaneously, Programmable Logic Controller (PLC) data (tool, machine ID, feed, speed, batch, material) is linked to that vibration record, so the system knows exactly which parameters produced the defect and can adjust the process for the next part.

The challenge almost every manufacturer faces is how to scale this real-time infrastructure so that the same data powers both condition monitoring (stateless threshold checks, real-time alerts) and predictive maintenance (30-60 minute sliding windows, ML models trained on historical patterns, anomaly detection before failure), ultimately improving Overall Equipment Effectiveness (OEE) across plants.

Today, these typically run on separate stacks, and neither connects to the enterprise systems that hold the supplier, logistics, and cross-plant context needed to turn a local detection into a company-wide response.

From Edge to Cloud: Where the Real Story Begins

rosinaKazakova_2-1782805344057.png

 

In manufacturing, streaming use cases naturally span from edge to cloud. On the shop floor, threshold-based decisions run on edge compute, where every millisecond counts. But problems rarely stay local.

Consider: Line 7 stops,  a CNC machining center's vibration alarm trips during gear honing, and condition monitoring automatically retracts the tool. But the predictive maintenance model, analyzing vibration spectra over a 30-minute sliding window in the cloud, had already flagged a degradation trend two shifts earlier, a subtle broadening of the frequency peak at the bearing's characteristic defect frequency that didn't breach any single threshold but matched a pattern the model learned from historical failures. Meanwhile, the press-fit station downstream had been passing every part, but process trend analysis on force-displacement curves was showing a gradual upward drift in insertion force, pointing to the same root cause: a supplier batch with tighter-than-spec tolerances.

Now the critical question: why is this happening? If the root cause is a supplier delivering parts with incorrect dimensions, the risk extends to every plant using those parts. The event detected on the shop floor must be correlated with Enterprise Resource Planning (ERP) and Manufacturing Execution System (MES) data, and then propagated across the company so other plants can proactively stop using the same suspect batch.

This is where five questions become central:

  • How can the supplier of these parts be identified from ERP data in near real time?
  • Which other plants are currently using the same part numbers, batches, or suppliers?
  • How can those plants be notified quickly enough to stop production and prevent further damage?
  • How can central operations get a real-time view of production blockers and their impact on delivery commitments?
  • How can the organization move from a single-plant incident to a company-wide, coordinated response?

 

Leading manufacturers address these questions with the Databricks Intelligence Platform and Lakeflow Spark Declarative Pipelines, combining edge-level signals with cloud-scale streaming, batch analytics, and AI on a single Lakehouse. The following sections demonstrate why.

Ingestion: From Shop-Floor Event to Enterprise Signal

The first challenge is reliably and at scale getting high-frequency sensor data from the factory floor into the cloud. Most streaming tools struggle to sustain throughput across thousands of sensors, requiring complex integration layers that slow deployment.

Lakeflow Lakeflow Spark Declarative Pipelines and Spark Structured Streaming provide built-in, high-throughput connectors for Kafka, MQTT, and Azure Event Hubs. Engineers define ingestion behavior once and scale seamlessly from one line to hundreds of plants.

For cases where connecting to a central message bus is a bottleneck, Direct Lakehouse Real-Time Ingestion (Zerobus, Python Data Source APIs) enables edge gateways to push data directly into the Lakehouse. This shortens the path from shop-floor event to enterprise visibility, converting a local sensor anomaly into a supplier-linked, actionable alert at a much faster rate than traditional integration approaches.

Dual-Speed Streaming: Millisecond Decisions and Minute-Level Correlation

The edge-to-cloud challenge requires two latency profiles working together:

Condition monitoring at the edge (milliseconds): Stateless threshold checks detect that Line 7’s press-fit force exceeds limits. The line stops. This is a simple, fast, reactive decision.

Predictive maintenance in the cloud (seconds to minutes):  A stateful pipeline evaluates a 30-minute sliding window of vibration spectra from the CNC machining center, runs ML inference, and identifies that the bearing degradation pattern matches historical supplier-quality failures that produce out-of-spec parts downstream. This is a complex, proactive prediction that condition monitoring alone would miss.

Cross-plant correlation (minutes): The same pipeline joins the anomaly with ERP extracts identifying Supplier X, batch #4721, and the 4 other plants currently using parts from that batch.

Lakeflow Spark Declarative Pipelines and Spark Structured Streaming handle all three tiers in a single framework. With Real-Time Mode delivering sub-300ms P99 latency for operational workloads, and the same engine supporting stateful windowed aggregations and batch enrichment joins, teams don’t need separate systems for each latency tier.

Unlike proprietary low-code streaming tools that trade flexibility for convenience, this approach keeps teams in control of their data infrastructure built on open-source foundations, with no vendor lock-in on data formats or processing engines. Why accept an isolated, closed-box solution when the same platform can handle both millisecond decisions and minute-level analytics?

 

Scaling From One Plant's Incident to Company-Wide Prevention

Once the root cause is identified, executives care about two things: ROI and speed of response. Did the system prevent further damage quickly, and what were the production and financial impacts? The answer requires end-to-end visibility across plants: which lines stopped, which suppliers were flagged, and whether the response outpaced the problem.

With Lakeflow pipelines writing into governed Unity Catalog tables, all streaming outputs, alerts, anomalies, supplier correlations, predictive maintenance scores, and line-stop decisions land in one place without extra data copies or integration layers. Central operations teams can track real-time production blockers and their impact on delivery commitments.

Because historical and real-time data coexist in the same Lakehouse, teams can continuously evaluate whether the cross-plant alert arrived fast enough. Did the predictive maintenance model flag the trend before condition monitoring caught the hard failure? Where in the process did the response break down?

These feedback loops are what separate reactive maintenance from truly predictive operations. Every incident, response, and outcome feeds back into model retraining, and smarter thresholds can be pushed back to the edge, so the next time the same degradation pattern appears, it's caught earlier.

Data from these pipelines flows directly into AI/BI Genie and Dashboards, giving business and operations teams immediate visibility into uptime, supplier scorecards, and maintenance effectiveness without additional integration work. This is where Lakehouse//RT fits in. Announced at Data + AI Summit 2026 and now in Beta, powered by the new Reyden engine, it runs those queries directly on the governed Unity Catalog tables at millisecond latency. Central operations see production blockers across every plant live, with no separate serving database to provision, sync, or keep consistent.

This unified approach makes the total cost of ownership more predictable because the same platform and pipeline definitions scale across factories without the licensing complexity and per-node pricing models that characterize many purpose-built streaming solutions.

 

Real-World Proof: Streaming for Mission-Critical Engine Monitoring

The edge-to-cloud pattern described above is not theoretical. Rolls-Royce Civil Aerospace runs one of the most demanding real-time streaming workloads in the world on Databricks: monitoring over 10,000 parameters across 13,000 jet engines (source: Databricks Customer Story, Rolls-Royce).

While this example comes from aerospace, the dual-speed streaming pattern (edge telemetry combined with cloud-scale analytics and predictive maintenance) maps directly to automotive and discrete manufacturing. If this architecture handles jet engine telemetry at 13,000-engine scale, it can handle your press-fit machines, CNC lines, and paint shops. The real question is how fast you can onboard your first use case.

AI Agents: From Detection to Coordinated Action

Detecting a supplier quality issue across plants is only half the challenge. The other half is acting fast enough, and consistently enough, across every affected factory.

When the Lakehouse pipeline identifies that Supplier X's batch is suspect and 4 other plants are affected, Maintenance AI Agents can automatically:

  • Pre-classify alert severity based on the anomaly pattern, predictive maintenance score, and affected part criticality
  • Draft stop-or-derate signals for each plant, with plant-specific context (which lines, which shifts, which part numbers)
  • Create work orders in the Computerized Maintenance Management System (CMMS), suggest spare parts and alternative suppliers, and check inventory
  • Notify central operations with a natural-language summary: "Supplier X batch #4721 linked to micro-crack detections at Plants 3 and 7. Predictive maintenance model flagged force-curve degradation 2 shifts before hard failure. Plants 2, 5, and 9 have the same batch in active production. Recommended: stop Lines 4 and 6 at Plant 2, switch to Supplier Y batch #8833."

These agents are built with Agent Bricks, Databricks’ framework for building and governing production AI agents directly on the platform. They run next to the governed data in Unity Catalog, operating on the same real-time data under one governance model instead of as a bolted-on external service.

They can also correlate with MES and ERP data to answer operational questions with Genie One/Agents: 

Is replacement material available? 

Will stopping these lines impact tomorrow's deliveries? 

Should we escalate to the supplier's quality team?

The agents read fresh state through Lakehouse//RT and write their output (work orders, severity scores, supplier recommendations) straight into Lakebase. Its new LTAP architecture, announced at DAIS 2026 and coming soon, keeps that transactional write on the same governed copy of data, so there’s no brittle hand-off pipeline between deciding and acting. Detection, reasoning, and action all happen on one platform, on one copy of the truth.

This transforms the response from "someone reads a dashboard and makes phone calls" to "AI Agents coordinate the response across plants in minutes, humans validate and execute."

The Unified Architecture: One Platform, Full Loop

After scaling across plants, the final requirement is that condition monitoring, predictive maintenance, cross-plant correlation, and AI-driven response all run on a single architecture, not a patchwork of systems.

With Databricks Real-Time Mode, Lakehouse//RT, and LTAP capabilities, the entire edge-to-cloud loop runs on one platform:

  • Edge → Cloud: Sensor events flow from PLCs through Kafka/Event Hubs into Lakeflow Lakeflow Spark Declarative Pipelines
  • Condition monitoring: Stateless threshold checks with millisecond latency trigger immediate line stops
  • Predictive maintenance: Stateful sliding-window pipelines run ML inference on the same engine, catching degradation patterns before hard failures
  • Cross-plant correlation: The same pipeline joins with ERP/MES data to identify supplier root causes and affected plants
  • AI Agent response: Maintenance Agents draft stop signals, work orders, and supplier alerts
  • Continuous improvement: Every incident feeds back into model retraining and smarter edge thresholds
  • Executive visibility: AI/BI Genie and Dashboards show production impact, response times, and supplier scorecards

rosinaKazakova_3-1782805344057.png

 

Switching between batch and streaming is as simple as changing a pipeline trigger without rewriting code, changing languages, or modifying cluster types. The same declarative definitions power pilots, scaled rollouts, and mission-critical production workloads.

All of this runs on the Databricks Intelligence Platform, with Unity Catalog, AI/BI Genie, and Agents plugged into the same governed data, so maintenance teams share a single source of truth. 

This is fundamentally different from architectures that require separate systems for hot, warm, and cold data paths, each with its own query language, governance model, and operational overhead. The Databricks approach collapses these tiers into a single platform where switching from batch to streaming is a configuration change, not a rearchitecture.

That unified architecture closes the full loop: from sensor to prediction, from prediction to coordinated action across plants, and from action back into continuously improving models and smarter edge decisions.

Conclusion

When Line 7 stopped, the first response was a local threshold breach, an automatic shutdown, or a maintenance ticket. What happened next is what separates a reactive organization from a resilient one: within minutes, the cloud pipeline had identified the supplier, flagged every affected plant, and the AI agent had already drafted work orders with alternative parts. Two shifts later, updated detection thresholds were running on edge devices across four countries.

This is what edge-to-cloud streaming looks like as a real operational capability, one that connects the shop floor to the supply chain to the boardroom. The press-fit machine didn't just stop a defect. It triggered a company-wide immune response.

This is already running in production at scale. Rolls-Royce runs the same dual-speed streaming pattern across 13,000 jet engines, preventing around 400 unplanned maintenance events per year. Financial services companies like Coinbase compute 250+ ML features at sub-100ms latencies on the same Real-Time Mode engine. The architecture is proven. What's new is that it's now accessible to every manufacturer, on a single platform, with a single configuration change.

Databricks makes this possible by unifying the entire path from millisecond edge decisions through cloud-scale correlation to AI-driven response on one platform. Real-Time Mode, Lakeflow Spark Declarative Pipelines, Unity Catalog, Lakehouse//RT, LTAP and AI Agents are layers of one architecture, designed so that every signal captured on the factory floor can become enterprise intelligence.

It’s this combination of performance, openness, and unified governance that makes Databricks stand out for organizations that need both operational and analytical real-time workloads on a single platform, without the fragmented toolchains, proprietary lock-in, or capacity-tier management of alternative approaches. That end-to-end integration, from sensor to supplier to executive dashboard, is what earned Databricks the highest ratings in the ISG Buyers Guide for Real-Time Data and Streaming Analytics.

 

rosinaKazakova_4-1782805344058.png

Buyer's Guide for Real-Time Data

For manufacturers ready to move beyond pilots and point solutions, the real question is whether your platform can carry the full story, from sensor to supplier to every plant on the network, in the time it takes to prevent the next defect.

Ready to bring real-time to your operations? See how Real-Time Mode, Lakeflow Spark Declarative Pipelines, Lakehouse//RT, and Lakebase fit together:

Related Databricks Blogs