Skip to content

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

Scaling Remove topic Scaling Clear all 12 posts RSS

2026

2025

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.

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.

2022

2021

Making Shopify’s Flagship App 20% Faster in 6 Weeks Using a Novel Caching Solution

Case study 8 min +80 XP

Shop's home feed, which aggregated orders and carrier tracking data and accounted for 30% of database load, was moved behind a custom write-through cache in Memcached, cutting database load by 15%, overall GraphQL latency by about 20% and CPU usage by a double-digit percentage.

2020

The quest for software engineering knowledge.

Look:
Layout: