Principal Engineer
Core user metrics, made reliable
Spotify
Spotify's EPIC team needed reliable user-activity metrics for the core Spotify Mobile experience. The figures were used by executives, product leaders and teams across the business, as well as in external reporting. USQ's Principal Engineer rebuilt unstable SQL pipelines as idempotent dbt DAGs and built analytics layers in Beam and Scio, accounting for fraud, late events and duplicates before the figures were reported.
- Product reporting scope
- Spotify Mobile
- Core metrics rebuilt
- DAU · WAU · MAU
- Idempotent reporting DAGs
- dbt
- Analytics layers
- Beam / Scio
The problem
Spotify's EPIC team owned user-activity metrics for the core mobile product. The figures mattered across the business, from executive and product reporting to external/public-market reporting.
The underlying SQL pipelines were unstable, unwieldy and not idempotent. Behavioural telemetry also arrived late, duplicated itself and required fraud adjustment before it could support trusted reporting.
Rebuilding the data flow
USQ's Principal Engineer lifted and shifted the reporting pipelines into organised, idempotent dbt DAGs. The work covered DAU, WAU, MAU, ad impressions, crashes, engagement sessions, content consumption, saves, and artist or show connections.
They also built marts and analytics layers in Scio and Apache Beam on Google Dataflow, turning large-scale behavioural telemetry into cleansed, aggregated and fraud-adjusted datasets.
- Data correctness
- The reporting accounted for late-arriving facts, duplicates, replays and out-of-order delivery. Fraud analytics excluded bot traffic, synthetic users, spam interactions and invalid ad engagement.
- Operating the pipelines
- Streaming and batch-derived datasets were reconciled, with testing, lineage, runbooks, orchestration, alerting and incident response for the pipelines behind the reporting.
dbt · Scio · Apache Beam · Google Dataflow · Kafka · Pub/Sub · Fraud-adjusted KPIs
Bring one workflow. We will tell you how we would approach it.
Book a 30-minute call