Blog · 27 November 2026 · 2 min read

Wikipulse: one Wikipedia, two pipelines, and everything in Terraform

Every edit on every Wikimedia wiki, streamed in seconds, plus hourly page views in a Delta lakehouse. How I built both paths on Microsoft Fabric and kept them honest.

Project: Wikipulse · live dashboard


I wanted to answer a simple question: what is the world reading and editing on Wikipedia right now, and how does that change over time? "Right now" and "over time" turned out to need two different pipelines.

You can watch the live edit feed yourself in the Wikipulse dashboard. It connects straight to Wikimedia's public change stream from your browser.

Two paths, one platform

The streaming path takes the change feed into a Fabric Eventstream and lands it in an Eventhouse, where KQL dashboards refresh within seconds. The batch path downloads hourly page view dumps, processes them with PySpark into a Delta medallion lakehouse (bronze, silver, gold), and dbt builds a warehouse on top.

Keeping them separate was deliberate. Edits are small, constant and worth seeing immediately. Page views arrive as large hourly files and are worth getting exactly right.

At-least-once in, exactly-once out

Stream consumers reconnect, and when they do, some events arrive twice. Rather than fight that at the source, I accept at-least-once delivery and deduplicate in a materialized view keyed on the event ID. The dashboards read the view, so a reconnect never inflates a chart.

Rerunning an hour should change nothing

Every batch load writes one hour with replaceWhere, and the gold tables use MERGE upserts. Rerun 14:00 three times and you get the same table as running it once. That property is what makes backfills boring, which is exactly what you want.

Security in the warehouse, not the dashboard

Row-level security limits each reader to the languages they are allowed to see, and editor names are masked dynamically. Putting this in the warehouse means every tool that connects gets the same rules.

Infrastructure you can delete and rebuild

Every Fabric item (workspace, lakehouse, Eventstream, Eventhouse) is created by Terraform. Airflow orchestrates the batch runs, and GitHub Actions ships changes. If the workspace disappeared tomorrow, one terraform apply and a backfill would bring it back.

Knowing when it breaks, and what it costs

Quality gates stop bad data reaching gold, freshness SLAs raise alerts when an hour is late, and a runbook says what to do. I also track cost per run in capacity units and euros, because a pipeline nobody can afford is not finished.

What I would do differently

I would write the runbook first. Deciding what "late" and "wrong" mean up front shaped half the design, and I only learned that by doing it in the wrong order.

The code is on GitHub.

Portrait of Samwel Munyingi

Hi, I'm Samwel.

I'm a data engineer in Helsinki with a background in applied computer science. I build end-to-end pipelines on real open data, write about what breaks along the way, and teach data engineering for free.