Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Figma 9 min read Case study mediumAdept

Redefining impact as a data scientist

On Figma's billing infrastructure, data science work centered on making a complex, stateful system legible and correct rather than on experiments. The team built the Invoice Seat Report, which reconstructs each seat charge from product events, contract metadata and billing rules into a plain-language explanation. They also built consistency checkers, SQL-based invariant tests that run on a cadence across product logs, billing state, payments and CRM data and route structured alerts with offending rows to engineers. The checkers caught race conditions and logging gaps during the billing model refresh, contributing to an uneventful rollout, and were later adopted by security, identity and growth teams. The broader argument is that the standard DS process (domain understanding, data cleaning, EDA) still applies, but deliverables can be durable data applications instead of models or reports.

Related posts

  • ShopifyQL Notebooks: Simplifying Querying with Commerce Data Models

    Shopify Engineering mediumAdept

    Shopify built commerce data models behind ShopifyQL Notebooks so merchants can query metrics like sales and view-to-purchase conversion without SQL or joining across departmental datasets. Good models are purpose-driven, explorable (right granularity, useful dimensions, fully additive metrics rather than semi- or non-additive ones) and extensible. The process runs from business questions to mock data and template queries, then to sourcing upstream tables, checking quality and consistency, and deriving freshness from upstream SLOs. Build time improved by switching from full-drop to incremental pipelines, at some cost in maintainability, and query speed improved with daily per-product roll-up tables for high-cardinality GROUP BYs.

  • Updating our data stack

    incident.io mediumAdept

    incident.io's two-person data team reworked its BigQuery/dbt analytics stack as the company grew from 10 to 30 people. Fivetran moved to a separate BigQuery project after dbt tests in CI timed out because concurrent interactive queries exceeded BigQuery's 100-query quota. A CircleCI queue orb now serialises overlapping dbt runs that were creating and dropping the same tables. Unreliable GOOGLEFINANCE FX rates were replaced with a version-controlled seed plus a daily APILayer pull, checked by uniqueness and gaplessness tests. Models now materialise as tables rather than views, intermediate models sit between staging and fact/dimension models to avoid duplicated logic, SQLFluff enforces formatting, and Metabase folders separate sandbox work from locked-down core dashboards.

  • How Shopify Built An In-Context Analytics Experience

    Shopify Engineering mediumAdept

    Shopify embedded order and fulfillment metrics directly into the admin Orders page instead of keeping them in a separate Analytics section, after research showed merchants bouncing between pages to make decisions. The data science team validated candidate metrics against merchant workflows, segmented merchants to study the shape of each metric (hiding metrics that are inapplicable, constant, or only useful over long periods), and prototyped visualizations with real data. One result was choosing histograms over medians for fulfillment and delivery times. A shared data specification sheet kept Web, Android and iOS on the same queries. The underlying model uses an atomic grain of one row per fulfillment, in-transit or delivery event, and was built batch-first, then combined with streaming in a lambda architecture so batch supplies history and streaming covers recent data.

  • How we measure data completeness at scale

    Datadog Engineering mediumAdept

    Datadog measures ingestion data completeness per customer by splitting pipelines into segments and recording create and acknowledgment events keyed by unique payload IDs in 60-second time buckets. This makes counts idempotent under retries and reordering. Watermarks were rejected because customers can send arbitrarily delayed data and pipelines contain loops and replays. Segment ratios are multiplied along sequential paths and volume-weighted across parallel branches. Cost and resilience come from per-customer sampling driven by a two-stage load-shedding bulletin, a custom lock-free in-memory store with a worker-per-shard design, and no dependency on Kafka or external databases, so the system kept running through a Kafka incident.

  • Unlocking Faster Insights with Experimenter-Defined Segmentations

    Etsy Code as Craft mediumAdept

    Etsy replaced the 13 hard-coded segmentations in its Catapult experimentation platform with experimenter-defined ones, each modeled as a SQL query that assigns segment values plus a set of approved join columns. New segmentations go through an orchestrated validation workflow that checks output schema and join keys and produces a BigQuery sample. Deployment then opens and auto-merges a pull request. The pipeline uses dynamic task generation to spawn one independent, sensor-gated task group per active segmentation, which isolates failures and lets downstream jobs start without waiting for the whole batch. Within three months segmentations grew from 13 to 47, and 78% of experimenters reported saving 2-5 hours a month.

The quest for software engineering knowledge.

Look:
Layout: