Streaming data in Fabric can be processed in three places, and most real designs use more than one. This article gives you the properties of each so you can match one to a requirement. The three are eventstreams (Real-Time Intelligence, no code), Spark structured streaming (Data Engineering, code), and KQL in an eventhouse (query and transform where the events are stored).
Eventstreams
An eventstream ingests, transforms and routes events using a canvas. It fits when:
- the team prefers no-code or low-code,
- the transformations are light: filter, manage fields, aggregate, group by time window, union, expand, join, or SQL expressions in the SQL operator,
- you must forward events as they occur, with no extraction schedule to manage,
- you want one stream to feed several destinations (eventhouse, lakehouse, Activator, custom endpoint, a derived stream).
It handles medium to high volume and many source types, including Kafka-compatible systems, cloud messaging services and database change data capture. Its processing is deliberately lightweight, so it is a poor fit for complex business logic or heavy machine learning.
Spark structured streaming
Spark is the code-first engine. It reads from sources such as Event Hubs, Kafka, files and Delta tables, with the full Spark library ecosystem and arbitrary stateful logic (custom per-key state, stream joins, deduplication, windowed aggregations with watermarks). It writes primarily to lakehouse Delta tables. It fits when:
- transformation complexity is high, or you need open-source libraries,
- the data lands in a lakehouse for batch, ML and BI use,
- you want streaming semantics on a schedule, using the
availableNowtrigger and a checkpoint to process only new data and stop, - you need very low latency: real-time mode (Spark Runtime 2.0 or later) trades breadth of supported sources, sinks and operators for lower end-to-end delay.
Spark needs coding skills and you operate it as a notebook or, for production, a Spark job definition. An eventstream can also hand its stream to a notebook as a destination (preview), so the two combine well.
KQL in an eventhouse
An eventhouse stores event data for fast interactive queries over time-series, log and telemetry data. You process in it with KQL:
- Update policies transform data as it arrives, copying parsed or enriched rows to other tables.
- Materialized views keep always-fresh aggregates such as the latest state per key.
- Ad hoc and dashboard queries use time filters,
bin()andsummarize; the same language powers real-time dashboards and alerting.
Choose it when the key requirement is querying recent events quickly, exploring them, or building dashboards, rather than building a multi-stage pipeline in code.
Deciding
Work through these questions:
- Who builds it, and in what skill? No-code: eventstream. Python or Scala: Spark. KQL or SQL: eventhouse or the eventstream SQL operator.
- How complex is the logic? Light: eventstream. Complex or stateful: Spark. Reshaping at ingest: eventstream operators or update policy.
- Where does the data need to end up? Eventhouse for interactive analytics, lakehouse for Delta-based batch and ML, both when several consumers exist.
- What latency do you need? Seconds or less: eventstream to eventhouse, or Spark real-time mode. Batched incremental: Spark with
availableNow.
A common architecture: an eventstream ingests and lightly cleans events, routes them to an eventhouse for live queries, and also to a lakehouse (or a Spark job) for long-term, richer processing. If the eventhouse needs to be read by other engines, turn on OneLake availability.
Common mistakes
- Writing a custom Spark job for a simple filter-and-route that an eventstream does with no code.
- Pushing complex stateful logic into eventstream operators.
- Using a lakehouse destination to capture change events whose schema keeps changing.
- Treating Spark real-time mode as a drop-in replacement for microbatch; its operator and connector support is narrower.
- Expecting an update policy to aggregate across batches (use a materialized view).
For the exam
- Eventstream: no code, light transformation, routing to many destinations, continuous.
- Spark structured streaming: code, complex and stateful logic, Delta sinks, can run incrementally on a schedule.
- KQL and eventhouse: low-latency analytics on streaming data, update policies and materialized views.
- Eventhouse suits high-granularity streaming data; the lakehouse suits large-scale engineering and ML.
- Real-time mode needs Fabric Spark Runtime 2.0 or later.