Microsoft Fabric (Part 3)

Neil Haddley • November 27, 2026

I streamed Microsoft's sample bike-share events into a Fabric Eventhouse, queried them with KQL as they arrived, switched on OneLake availability, timed how long the same rows took to reach the SQL analytics endpoint, and built a live dashboard.

Azuremicrosoft-fabriceventhousekqleventstreamonelake

In Part 1 I loaded a CSV into a Lakehouse. In Part 2 I linked a Dataverse table and timed how long a change took to arrive. In this post I try the third kind of data: a stream of events that never stops.

Fabric has a different engine for that, called an Eventhouse. I streamed events into one, queried them with KQL while they arrived, and then measured how long the same rows took to appear in the lake that the SQL endpoint reads.

I did not stream my sales orders. They are a batch, and a batch belongs in a Lakehouse. Instead I used the Bicycles sample source that Eventstream offers, which is a bike-share feed, not sales data.

What an Eventhouse is

An Eventhouse is a Fabric item for events that carry a time stamp, such as logs, telemetry and sensor readings. It holds one or more KQL databases. You query it with KQL (Kusto Query Language), not T-SQL or Spark. It is the Kusto engine from Azure Data Explorer.

How this relates to my MQTT posts

In 2021 I wrote about MQTT in Internet of Things (Part 1) and Internet of Things (Part 2). I ran a Mosquitto broker in Docker, and also used a public test broker. An ESP8266 published messages to it, and in the second post a DHT11 sensor sent temperature readings. Node-RED published and subscribed too, and I turned an LED on by publishing 1 to a topic.

Those posts never stored the readings. The messages passed through the broker and I watched them in MQTT Explorer. That is the gap an Eventhouse fills, and it is the only link between the two sets of posts.

Create the Eventhouse and the stream

In my workspace I created an Eventhouse called SalesEvents. The name is a leftover from my plan to stream sales. Fabric created a KQL database of the same name inside it. I then created an Eventstream called SalesStream.

A new Eventstream, offering a source, sample data or a custom endpoint

A new Eventstream, offering a source, sample data or a custom endpoint

I chose Use sample data and kept the default, Bicycles. This is a sample feed that Fabric generates itself, so I wrote none of it. It holds readings from bike-share stations: a street, a neighbourhood, a position, the number of bikes and the number of empty docks. The street names are London ones. I counted 120 stations, and each station repeats every 10 seconds or so. The feed keeps sending until you stop it.

The Add source dialog, with the Bicycles sample selected

The Add source dialog, with the Bicycles sample selected

The Bicycles source connected to the stream

The Bicycles source connected to the stream

Send the stream to the Eventhouse

I chose Add destination, then Eventhouse, picked Direct ingestion, and selected my SalesEvents Eventhouse and KQL database.

The Eventhouse destination, before I filled it in

The Eventhouse destination, before I filled it in

The destination pointing at SalesEvents

The destination pointing at SalesEvents

I published again, and it succeeded.

Published at about 13:30

Published at about 13:30

Publishing was not enough. With direct ingestion the destination still said KQL data stream was not configured, and no table existed. I opened the destination's Details tab and clicked Configure KQL data connection.

The destination waiting for a table

The destination waiting for a table

A Get data wizard opened. I chose New table and named it BikeEvents.

Picking a destination table

Picking a destination table

The new table BikeEvents

The new table BikeEvents

The wizard inspected a sample of 50 events. This is where I found out what the Bicycles feed contains: a station ID, street, neighbourhood, latitude, longitude, the number of bikes and the number of empty docks.

The columns that the wizard found

The columns that the wizard found

I clicked Finish, and it created the table, the column mapping and the data connection.

The table, mapping and data connection were created

The table, mapping and data connection were created

Query the events with KQL

Rows began to arrive at 13:32:07. I opened the database's query window and ran my first KQL query.

KUSTO
1BikeEvents
2| summarize Rows=count(), Stations=dcount(BikepointID),
3            FirstArrival=min(ingestion_time()), LastArrival=max(ingestion_time())
720 rows from 120 stations, 26 seconds after the first arrival

720 rows from 120 stations, 26 seconds after the first arrival

Rows arrived at roughly 12 a second, which was about all 120 stations every 10 seconds. The same station appeared again and again, so each row is a reading, not a new bike station.

One station, BikePoints_81, seen every 10 or 12 seconds

One station, BikePoints_81, seen every 10 or 12 seconds

ingestion_time() is the time a row reached the Eventhouse. I use it below to compare engines.

A second query counts rows per neighbourhood.

KUSTO
1BikeEvents
2| summarize Rows=count(), Stations=dcount(BikepointID),
3            FirstArrival=min(ingestion_time()), LastArrival=max(ingestion_time()),
4            TotalBikes=sum(No_Bikes) by Neighbourhood
5| top 8 by Rows desc
Battersea had the most rows because it has the most stations

Battersea had the most rows because it has the most stations

To chart the current state, I took the latest reading for each station and added them up by neighbourhood.

KUSTO
1BikeEvents
2| extend Arrived=ingestion_time()
3| summarize arg_max(Arrived, No_Bikes) by BikepointID, Neighbourhood
4| summarize Bikes=sum(No_Bikes) by Neighbourhood
5| top 10 by Bikes
6| render columnchart
Bikes available per neighbourhood, from each station's latest reading

Bikes available per neighbourhood, from each station's latest reading

I turn this chart into a dashboard tile near the end of the post.

Switch on OneLake availability

Parts 1 and 2 put data where the Lakehouse, the SQL endpoint and Power BI could all read it. An Eventhouse keeps its data in its own store, so to share it I opened the database and switched OneLake availability on, with Apply to existing tables ticked.

The Enable OneLake Availability dialog

The Enable OneLake Availability dialog

Policy update succeeded at about 13:34

Policy update succeeded at about 13:34

Switching it on exposes the table as a Delta table in OneLake, so the other Fabric engines can read it. The documentation calls this a logical copy. Fabric writes it in batches. By default a batch waits until the files are big enough, or up to 3 hours, and the delay can be set to as little as 5 minutes.

A KQL command shows how the copy is going:

KUSTO
1.show database SalesEvents operations mirroring-statistics
47% complete, with 56,107 bytes still to copy and a maximum latency of 1 minute 31 seconds

47% complete, with 56,107 bytes still to copy and a maximum latency of 1 minute 31 seconds

Read the same table with SQL

From Analyze data with I chose SQL analytics endpoint.

The Analyze data with menu now offered the SQL analytics endpoint

The Analyze data with menu now offered the SQL analytics endpoint

Fabric created a new item, also called SalesEvents, to hold that endpoint. The BikeEvents table appeared in its dbo schema.

The SQL analytics endpoint for the Eventhouse

The SQL analytics endpoint for the Eventhouse

I ran a SQL count at 13:36:10.

SQL
1SELECT COUNT(*) AS Rows_in_lake FROM dbo.BikeEvents
1,280 rows in the lake at 13:36:10

1,280 rows in the lake at 13:36:10

Then I ran the KQL count at 13:36:28.

3,060 rows in the Eventhouse at 13:36:28

3,060 rows in the Eventhouse at 13:36:28

The Eventhouse was about 1,800 rows ahead of the lake after two minutes.

Time the copy

The default delay is long, so at 13:36:48 I set the minimum of 5 minutes on the table with a KQL command.

KUSTO
1.alter-merge table BikeEvents policy mirroring dataformat=parquet with (IsEnabled=true, TargetLatencyInMinutes=5)
The mirroring policy after I set TargetLatencyInMinutes to 5

The mirroring policy after I set TargetLatencyInMinutes to 5

I then read both engines about once every few minutes. The KQL count is the live table. The SQL count is the table as the SQL analytics endpoint saw it.

TimeEventhouse (KQL)SQL endpoint
13:363,060 (13:36:28)1,280 (13:36:10)
13:38not read2,480 (13:38:31)
13:405,040 (13:39:48)3,060 (13:40:00)
13:426,420 (13:42:03)3,060 (13:42:14)
13:469,000 (13:46:22)3,060 (13:46:32)
13:47, after I refreshed the endpointnot read7,860 (13:47:06)
13:42:03: 6,420 rows in the Eventhouse

13:42:03: 6,420 rows in the Eventhouse

13:42:14: the SQL endpoint still showed 3,060

13:42:14: the SQL endpoint still showed 3,060

13:46:22: 9,000 rows in the Eventhouse

13:46:22: 9,000 rows in the Eventhouse

13:46:32: the SQL endpoint still showed 3,060, as it had since 13:40

13:46:32: the SQL endpoint still showed 3,060, as it had since 13:40

The SQL endpoint stood at 3,060 for at least 6 minutes while the Eventhouse added about 4,000 rows. That is the same pattern as Part 2, and I wondered whether the lake itself was behind. I ran the mirroring statistics again.

13:46: 100% complete, nothing pending, and a maximum latency of 1 minute 50 seconds

13:46: 100% complete, nothing pending, and a maximum latency of 1 minute 50 seconds

The Eventhouse said that the copy in OneLake was complete and that its newest data was under 2 minutes old. So I clicked the refresh icon on the SQL endpoint toolbar and ran the count again.

13:47:06: 7,860 rows after the refresh

13:47:06: 7,860 rows after the refresh

The count jumped from 3,060 to 7,860. I did not read the Delta files directly, so I cannot prove where the gap sat. But the evidence points at the SQL endpoint, not the lake: the statistics reported nothing pending, and one refresh released about 4,800 rows. In Part 2 the SQL endpoint also lagged the Lakehouse by 16 to 18 minutes, and I could not tell what triggered the update. This time a refresh did.

Build a Real-Time Dashboard

I had deactivated the stream at 13:47, so at 14:23 I clicked Activate all on the Eventstream and chose to start Now. Then I went back to the query window, ran the column chart query again, and chose Save to Dashboard, then To a new Dashboard.

Save to Dashboard offers an existing or a new dashboard

Save to Dashboard offers an existing or a new dashboard

I named the dashboard Bike Share Live

I named the dashboard Bike Share Live

The dashboard opened with the chart as its first tile.

The first tile, bikes per neighbourhood

The first tile, bikes per neighbourhood

I added a second tile with Add visual and Time chart, using this query, and named it "Rows arriving per 10 seconds".

KUSTO
1BikeEvents
2| summarize Rows=count() by Arrived=bin(ingestion_time(), 10s)
3| render timechart

The tile editor reported Done (0.435 s) for 105 records, from a table that already held more than 9,000 rows.

On the Manage tab, Refresh settings already had Live refresh selected. It refreshes the tiles when new data is ingested, and a message warned me that it may use capacity.

Live refresh was already the recommended setting

Live refresh was already the recommended setting

I saved the dashboard and switched it to Viewing. This is the dashboard at 14:27:02.

14:27:02

14:27:02

I touched nothing. This is the same dashboard at 14:27:36.

14:27:36: the bars and the right-hand end of the line had moved

14:27:36: the bars and the right-hand end of the line had moved

Stop the stream

The Bicycles sample sends events until you stop it, and it uses trial capacity while it does. After the dashboard screenshots I opened the Eventstream again and clicked Deactivate all. I had done the same at 13:47.

Deactivate all successfully (the 13:47 screenshot)

Deactivate all successfully (the 13:47 screenshot)

The Eventhouse, the Eventstream, the SQL analytics endpoint and the Bike Share Live dashboard remain in my workspace. The dashboard keeps Live refresh on, which refreshes its tiles when new data arrives. With the stream stopped, there is no new data to trigger it.

What I learned