Skip to content

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

Analytics & OLAP Remove topic Analytics & OLAP Clear all 13 posts RSS

2023

Monte Carlo Simulations: Separating Signal from Noise in Sampled Success Metrics

How-to 11 min +110 XP

A Monte Carlo simulation can quantify how much sampling noise obscures real trends in a success metric that can only be measured by sampling, using Shopify App Store audits (a "shop issue rate" modeled as Poisson-distributed requirement violations) as the example.

2022

Introducing ShopifyQL: Our New Commerce Data Querying Language

Announcement 11 min +110 XP

ShopifyQL is a commerce-focused query language for Shopify Plus merchants that reorders SQL-like syntax (FROM before SHOW, BY instead of GROUP BY) and adds VISUALIZE for direct charting, COMPARE TO for period-over-period analysis without joins or window functions, and DURING for named commerce date ranges like BFCM.

2021

Using Propensity Score Matching to Uncover Shopify Capital’s Effect on Business Growth

Research 10 min +100 XP

Shopify estimated the causal effect of Shopify Capital on merchant sales using propensity score matching, treating US first-time Capital adopters in January 2019 as the treatment group and Canadian shops that later pre-qualified (when Capital wasn't yet available in Canada) as the control.

Shopify's Path to a Faster Trino Query Execution: Infrastructure

Case study 12 min +120 XP

Shopify scaled its Trino interactive query infrastructure on GKE by moving experiment queries to a dedicated cluster via Trino Gateway header routing and capping hardConcurrencyLimit at 60 to relieve coordinator lock contention on the resource group.

Capturing Every Change From Shopify’s Sharded Monolith

Case study 23 min +230 XP

Shopify is replacing Longboat, its query-based change-data capture tool that polls MySQL replicas on an updated_at column, with a log-based CDC platform built on Debezium, Kafka Connect and Kafka that reads the binlog from 100+ MySQL shards.

The quest for software engineering knowledge.

Look:
Layout: