Skip to content

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

Sources

Shopify Engineering

November 2026

Building secure mobile apps in the agentic era

Case study 6 min +60 XP

Shopify keeps pace with an 11x jump in mobile code output (~434k lines changed per week during a 12-week agent-driven rewrite) by maintaining a per-app attack surface map covering deep links, WebViews, stored data, permissions and dependencies, where every item carries one of five verdicts and a code link.

Cyber Chaos Monkey: Staying ahead of security threats with AI agents

Case study 7 min +70 XP

Shopify's Cyber Chaos Monkey (CCM) is an agentic vulnerability hunter that attacks live production infrastructure using test shops, armed with source code, threat intel, past bug reports and deployment records.

October 2026

September 2026

August 2026

July 2026

Building an agentic harness that outlasts the model

Case study 8 min +80 XP

Shopify's AppSec team built Dispatch, a Ruby-orchestrated multi-agent harness that partitions codebases, runs parallel category-specific Hunter agents, verifies candidates with tests written by a different model inside each app's existing test suite, and opens draft fix PRs.

Upgrading Checkout Blocks app to Polaris web components

Case study 10 min +100 XP

Shopify's Checkout Blocks team migrated five high-traffic checkout UI extensions from React and the legacy Remote UI bridge to Preact, remote-dom and Polaris web components, rewriting them in TypeScript, and cut transferred bundle sizes by 40-85% and extension load time by about 8% at P50.

June 2026

Quick: An internal hosting platform for the AI era

Case study 9 min +90 XP

Quick is Shopify's internal static hosting platform: each site is a folder in a Google Cloud Storage bucket, mounted via gcsfuse and served by a wildcard NGINX config behind Identity-Aware Proxy, with `quick deploy` wrapping gcloud rsync.

May 2026

April 2026

March 2026

January 2026

December 2025

Tangle: An open-source ML experimentation platform built at Shopify scale

Announcement 11 min +110 XP

Tangle is Shopify's newly open-sourced ML experimentation platform: users build pipelines visually as DAGs of containerized CLI components defined in YAML, so components can be written in any language and run on any cloud or locally.

November 2025

Run for your money: Engineering a treadmill that prints store credit

Case study 8 min +80 XP

For NYC Marathon weekend, Shopify and Endorphins Running built a gamified curved manual treadmill that awards in-store credit for holding a chosen pace within a padded "zone" for 30 seconds, earning 1/30th of $75 per second in zone.

September 2025

August 2025

Building production-ready agentic systems: Lessons from Shopify Sidekick

Case study 6 min +60 XP

Shopify's Sidekick merchant assistant outgrew a monolithic system prompt once its tool count passed ~50, so the team moved to just-in-time instructions returned alongside tool results, which kept prompt caches intact and improved maintainability and metrics.

July 2025

Leveraging multimodal LLMs for Shopify’s global catalogue: Recap of expo talk at ICLR 2025

Case study 11 min +110 XP

Shopify's Global Catalogue uses fine-tuned open-source vision LLMs (LLaVA 1.5 7B, then LLaMA 3.2 11B, now Qwen2VL 7B) to classify, extract attributes from, standardize and match billions of merchant product listings.

June 2025

May 2025

Evolution of Product Classification at Shopify: From Categories to Comprehensive Product Understanding

Case study 8 min +80 XP

Shopify's product classification evolved from a 2018 TF-IDF logistic regression model through a 2020 multi-modal classifier to a Vision Language Model system built on the Shopify Product Taxonomy, which covers over 10,000 categories and 1,000+ attributes.

April 2025

October 2024

How Shopify improved consumer search intent with real-time ML

Case study 8 min +80 XP

Shopify generates about 2,500 text and image embeddings per second (216M/day) in near real time with Google Cloud Dataflow and Apache Beam's RunInference on T4 GPUs, feeding Storefront Semantic Search and a BigQuery warehouse.

August 2024

Tophat: Crafting a Delightful Mobile Developer Experience

Case study 13 min +130 XP

Shopify built Tophat, a macOS menu bar app that installs CI-built iOS and Android artifacts from GitHub PRs onto simulators, emulators or real devices with one click, eliminating local branch switching and compilation during manual PR testing ("tophatting").

March 2024

February 2024

January 2024

Horizontally scaling the Rails backend of Shop app with Vitess

Case study 27 min +270 XP

Shop app outgrew a single MySQL database despite federating tables across databases, so the team moved its Rails backend to Vitess, sharding user-owned tables by user_id into a "users" keyspace and keeping the rest in an unsharded "global" keyspace.

December 2023

October 2023

September 2023

August 2023

July 2023

April 2023

March 2023

Supporting Passkeys in Shop's Authentication Flows

Case study 6 min +60 XP

Shop added passkeys (WebAuthn public-key credentials) to Shop Pay and the Shop app as a phishing-resistant alternative to email/SMS verification codes, using the webauthn-ruby gem in their Rails backend and serving the flow from an iframe so it works on merchant storefronts.

Unlocking Real-time Predictions with Shopify's Machine Learning Platform

Case study 13 min +130 XP

Shopify extended its Ray-based Merlin ML platform with online inference, running each real-time model as a dedicated service in its own namespace on GKE that loads models from the Comet ML registry and can read features from the Feast-based Pano store.

February 2023

Improving the Developer Experience with the Ruby LSP

Deep dive 16 min +160 XP

Ruby LSP is a pure-Ruby language server from Shopify that provides editor features for Ruby without type checking or type annotations, aiming for performance and stability on large codebases like Shopify's Core monolith and leaning toward Rails-specific features.

January 2023

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.

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.

December 2022

November 2022

Apollo Cache is Your Friend, If You Get To Know It

Deep dive 15 min +150 XP

Apollo Client's InMemoryCache stores a normalized, in-session representation of GraphQL data, and its object lifecycle runs through four stages: fetching (governed by fetch policies, defaulting to cache-first), normalization (splitting responses into objects keyed by __typename plus id or custom keyFields into a flat hash map), updating and merging, and garbage collection and eviction.

October 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.

September 2022

Four Approaches to Debugging Server-side WebAssembly

How-to 8 min +80 XP

Step-debugging server-side WebAssembly can be done four ways: compiling to a native target and using LLDB/GDB, running the Wasm under Wasmtime inside LLDB, using a Wasm-specific debugger like Wasminspect, or using browser DevTools via Chrome's DWARF extension or source maps.

August 2022

July 2022

June 2022

The Journey to Cloud Development: How Shopify Went All-in on Spin

Case study 20 min +200 XP

Shopify replaced its laptop-based `dev` tool and xhyve-backed `railgun` VM with Spin, a cloud development environment, after monoliths and multi-repository projects outgrew local machines and made tophatting collaborators' changes painful.

The quest for software engineering knowledge.

Look:
Layout: