Skip to content

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

Testing Remove topic Testing Clear all 16 posts RSS

2026

2025

2023

Contributing support for a Wasm instruction to Winch

How-to 9 min +90 XP

Adding a WebAssembly instruction to Winch, Wasmtime's baseline non-optimizing compiler, touches several layers: the wasmparser VisitOperator visitor, the CodeGenContext that manages the value stack, register allocation and spilling, an ISA-independent MacroAssembler, and an x86_64 assembler built on Cranelift's ISLE-generated instruction definitions.

Performance Testing At Scale—for BFCM and Beyond

Case study 15 min +150 XP

Shopify prepares for Black Friday Cyber Monday by repeatedly running full-scale load tests against production: scaling Shopify Core and dependencies (nginx routing, ProxySQL, key/value store) to their BFCM profile, layering five Cronograma-driven traffic flows (browse/buy, admin, flash sale, Storefront API, Hydrogen/Oxygen) with an abort switch, then scaling down in reverse order and running blameless retrospectives.

2022

How to Write Code Without Having to Read It

Opinion 12 min +120 XP

Engineers can safely change unfamiliar code with minimal reading by letting the compiler, linter and unit tests guide them: locate the entrypoint via user-visible strings (or git bisect for regressions), make the breaking change at the leaf component, then climb the callstack following build errors and sweep back down via lint errors, exhaustive switches and test failures.

Building a Business System Integration and Automation Platform at Shopify

Case study 11 min +110 XP

Shopify replaced Mulesoft with an in-house Ruby on Rails platform for integrating internal business systems such as Salesforce, Airtable and Netsuite, because the proprietary JVM/XML tool sat outside Shopify's stack and couldn't easily reach internal services like Kafka.

2021

Shopify's Path to a Faster Trino Query Execution: Custom Verification, Benchmarking, and Profiling Tooling

Case study 12 min +120 XP

Shopify's Data Reliability team built a lightweight Python library on trino-python-client to orchestrate Trino queries, with three uses: PyTest-based verification suites, TPC-DS benchmarking across scale factors, and profiling through traffic generation and query replay.

Remove Circular Dependencies by Using Dependency Injection and the Repository Pattern in Ruby

How-to 8 min +80 XP

Shopify broke a circular dependency between an internal pricing gem and its two consumers (the Shopify Core Rails monolith and the Storefront Renderer) by applying the Repository pattern with constructor-based dependency injection.

The quest for software engineering knowledge.

Look:
Layout: