An eventstream is a Fabric item that brings real-time events in, optionally transforms them, and routes them to one or more destinations, all without writing code unless you want to. It belongs to Real-Time Intelligence. Think of it as three layers on a canvas: sources on the left, operators in the middle, destinations on the right.
Sources
Sources include Azure Event Hubs, Azure IoT Hub, Kafka (Apache Kafka, Confluent, Amazon MSK), Amazon Kinesis, Google Cloud Pub/Sub, MQTT, change data capture from several databases (such as Azure SQL, SQL Server, PostgreSQL, MySQL, MongoDB and Oracle), Fabric events (workspace, OneLake and capacity events), sample data, and a custom endpoint that your own app can send to using Event Hubs, AMQP or Kafka protocol. A custom stream connector (preview) lets you upload a Kafka Connect source plugin when no built-in connector exists.
Streams
Adding a source creates the default stream, which carries the raw events. After you add operators such as Filter or Manage fields, you can publish the result as a derived stream. A derived stream can be sent to several destinations and appears in the Real-Time hub for other people to consume.
Operators (no-code)
The event processing editor is drag and drop, and every operator can show a test preview. The built-in operators are:
- Filter: keep events whose field matches a condition.
- Manage fields: add, remove, rename or change the type of fields.
- Aggregate: sum, minimum, maximum or average, recalculated as each event arrives.
- Group by: aggregations over a time window, optionally by one or more fields, with richer window options.
- Union: merge two or more streams that share fields with the same name and type; non-matching fields are dropped.
- Expand: turn each value of an array into its own row.
- Join: combine two streams on a matching condition.
Mind the difference between Aggregate and Group by: Aggregate reacts to each event over a period, while Group by produces one result per time window.
SQL operator (preview)
When the visual operators are not enough, add a SQL operator. It uses the Azure Stream Analytics query language, so windows, joins and aggregations are written in SQL. You name an input and an output alias, and write SELECT ... INTO <output> FROM <input>. The operator supports all Real-Time Intelligence destinations. Do not use underscores or dots in the eventstream name, because they are incompatible with SQL operators.
SELECT System.Timestamp AS WindowEnd, roomId, AVG(temperature) AS AvgTemp
INTO output
FROM input
GROUP BY roomId, TumblingWindow(minute, 1)
HAVING AVG(temperature) > 75
Destinations
- Eventhouse, in direct ingestion or event-processing-before-ingestion mode.
- Lakehouse, written as Delta tables.
- Activator, to trigger actions when conditions match.
- Derived stream, for further routing.
- Custom endpoint, to feed an external application.
- Spark notebook (preview), which runs a notebook as a Spark structured streaming job over the stream.
You can attach several destinations at once and they do not interfere with each other.
Other capabilities
- Kafka endpoints let you send or consume events with the Kafka protocol.
- Schema management includes the Schema Registry, a schema-aware experience (preview) with a classifier for unschematized events, and multiple schema inference.
- DeltaFlow (preview) reshapes raw CDC events into analytics-ready tables and can create and evolve destination tables in an eventhouse.
Practical tips
When you publish, both ingestion and routing begin at the current time, and ingestion may start slightly faster. For eventhouse (with processing) and lakehouse destinations, you can untick activation, publish, and then start ingestion from a chosen earlier time so the first events are not lost. Remember that lakehouse destinations enforce the target table schema.
Common mistakes
- Using a lakehouse destination for CDC data whose schema keeps changing.
- Expecting the SQL operator to be stable GA functionality; it is in preview.
- Naming an eventstream with underscores or dots and then adding a SQL operator.
- Putting heavy custom logic in operators when a notebook or KQL update policy suits better.
For the exam
- Default stream is the raw feed; a derived stream is the processed feed, routable to many destinations.
- No-code operators: Filter, Manage fields, Aggregate, Group by, Union, Expand, Join.
- The SQL operator uses the Stream Analytics query language and supports window functions.
- Eventhouse destination has direct ingestion and event processing before ingestion.
- Custom endpoints can use Event Hubs, AMQP or Kafka protocols.