---
title: "Shopify"
description: "Global commerce platform powering millions of businesses with essential infrastructure and innovative engineering solutions."
---

# Shopify
> Global commerce platform powering millions of businesses with essential infrastructure and innovative engineering solutions.

## Articles

### [Deconstructing the Monolith - Shopify](https://yomu.fyi/post/deconstructing-the-monolith-shopify.md)
- Company: [Shopify](https://yomu.fyi/company/shopify.md)
- Author: 2023-10-18
- Published: Feb 21, 2019
- Type: Problem & solution

Shopify describes why its decade-old Ruby on Rails monolith became difficult to change as the codebase and development organization grew. High coupling and absent boundaries made innocuous changes trigger unrelated test failures, slowed CI, and forced developers to absorb excessive domain context, while microservices would add deployment, infrastructure, network, and coordination costs. The chosen path was a modular monolith: retain one codebase and deployment unit while separating domains through strictly enforced component boundaries. Shopify’s Componentization effort was informed by a developer survey and uses Wedge to score components and report violations, including cross-component associations and calls that bypass explicitly public interfaces. Boundary enforcement at runtime remains a future goal, but dependency isolation has already enabled replacing a legacy tax engine with a new tax calculation system.


### [Unifying Our GraphQL Design Patterns and Best Practices with Tutorials](https://yomu.fyi/post/unifying-our-graphql-design-patterns-and-best-practices-with-tutorials.md)
- Company: [Shopify](https://yomu.fyi/company/shopify.md)
- Author: 2023-10-18
- Published: Feb 13, 2019
- Type: Tutorial

Shopify describes how its GraphQL work grew from an early experiment for mobile APIs into contributions from hundreds of developers across teams and offices, including the Admin and Storefront APIs. As adoption expanded, sparse Markdown guidance left context inconsistently shared, while design guidelines were mixed with code-reference documentation and became difficult to extend for complex cases. The API Patterns Team, created in May 2017, addressed this by focusing on horizontal concerns, identifying common patterns, and documenting solutions for developers working across API domains. This work produced a living, in-depth design tutorial that explains Shopify’s GraphQL design philosophy through a practical example; its central rule is to understand the business domain and design the API to reflect it rather than the application’s implementation.


### [Engineering a Historic Moment: Shopify Gets Ready for Cannabis in Canada](https://yomu.fyi/post/engineering-a-historic-moment-shopify-gets-ready-for-cannabis-in-canad.md)
- Company: [Shopify](https://yomu.fyi/company/shopify.md)
- Author: Jason Hiltz-Laforge
- Published: Feb 7, 2019
- Type: Problem & solution

Canada’s 2018 cannabis legalization required Shopify to support a new, tightly regulated retail industry while keeping personal information in Canada. Using Google Cloud Platform’s Montreal region, the team created a Canadian Shopify instance with Terraform-managed projects, regional clusters, segregated workloads, PCI-compliant payment infrastructure, and a regional data warehouse. Because consumer behavior and peak demand were uncertain, engineers modeled traffic scenarios, ran repeated load tests across storefront actions, tested bot attacks, held pre-mortems, and provisioned five times projected launch traffic and sales. Multiple safeguards—including application-level endpoint checks, firewalls, limited secrets, unique SSL certificates, monitoring, and alerting—were layered to prevent data from crossing jurisdictions. Merchants opened across time zones, and the first legal sale occurred on Shopify’s point of sale in Newfoundland at 12:01 NST, followed by launches with zero downtime, excellent performance, and secure Canadian data storage and transmission.


### [Attracting Local Talent And Building Mobile Apps: A Developer Hiring Initiative](https://yomu.fyi/post/attracting-local-talent-and-building-mobile-apps-a-developer-hiring-in.md)
- Company: [Shopify](https://yomu.fyi/company/shopify.md)
- Author: Julia Hurrelmann
- Published: Feb 1, 2019
- Type: Problem & solution

Shopify’s “Build Things, Show Shopify” initiative used app development to reach local mobile developers beyond traditional recruitment channels and strengthen its talent pipeline. From May to August, workshops in Ottawa supported 75+ participants with help from more than 20 Shopify product managers, developers, designers, and computing educators, covering workflows, coding, code reviews, design, and presentation skills. At the September showcase, 13 developers presented 12 apps through rapid three-minute rotations, after which six promising projects advanced to a grand panel of Shopify leaders who provided technical questions and feedback. Participants left with fully developed apps, while a later Ottawa showcase connected them with angel investors and technical recruiters. The initiative also exposed a retention and inclusion problem: participation fell from 24 women among 77 at launch to 16 at the last event, with only two reaching the showcase, prompting consideration of daytime workshops.


### [How Shopify Uses Recommender Systems to Empower Entrepreneurs](https://yomu.fyi/post/how-shopify-uses-recommender-systems-to-empower-entrepreneurs.md)
- Company: [Shopify](https://yomu.fyi/company/shopify.md)
- Author: Dora Jambor
- Published: Jan 25, 2019
- Type: Explainer

Shopify uses recommender systems to help merchants find relevant insights, actions, apps, themes, services, and other resources across its commerce platform. Its approach represents implicit signals such as purchases, installations, clicks, and views as user-item interactions, then applies binary classification and linear methods including SLIM and LRec to learn an item-item similarity matrix and rank unseen items. The framework supports task-parallel training, interpretable coefficients, user-feature enrichment, and cold-start handling for new users or items, while evaluation considers precision alongside diversity, novelty, serendipity, and business-specific goals. In initial A/B tests, personalized app recommendations produced a 50% higher install rate, home feeds were up to 12% more likely to be rated useful, expert matching increased response and collaboration, and theme recommendations made merchants over 10% more likely to launch stores.


### [iOS Application Testing Strategies at Shopify](https://yomu.fyi/post/ios-application-testing-strategies-at-shopify.md)
- Company: [Shopify](https://yomu.fyi/company/shopify.md)
- Author: Uzziah Eyee
- Published: Jan 15, 2019
- Type: Explainer

Shopify describes an iOS testing strategy for a monorepo containing multiple app projects and evolving through hundreds of weekly commits. The approach covers Models, Views, ViewModels, View Controllers, and user workflows with tests matched to each component’s role: regular unit tests for business rules, snapshot tests for visual behavior, and XCUITest UI automation for user-facing flows. UI automation selects elements through accessibility labels or strings, which can also improve accessibility for visually impaired users, while manual testing remains necessary for some animation and rendering issues. The article recommends a test pyramid because slower tests require more human effort and maintenance, and says suites must evolve as business requirements change.


### [The Unreasonable Effectiveness of Test Retries: An Android Monorepo Case Study](https://yomu.fyi/post/the-unreasonable-effectiveness-of-test-retries-an-android-monorepo-cas.md)
- Company: [Shopify](https://yomu.fyi/company/shopify.md)
- Author: Alejandro Rodriguez Salamanca
- Published: Jan 8, 2019
- Type: Problem & solution

An Android monorepo expansion and larger team increased the number of tests run on master, exposing how flaky tests and infrastructure failures could erode CI confidence. Under an independence assumption, tests passing 99.95% each produced a theoretical full-suite pass rate of only 35% across 20 pipelines, while retrying each failed test once raised it to 99.95%. Shopify therefore added retries for setup failures, distinguishing failures retriable within a job from fatal failures requiring the test environment to reload, and retried failed tests up to three times. The system also flagged tests that passed after retry as warnings, since retries can hide reliability problems and slow builds. In practice, Android app pipeline pass rate rose from 31% to almost 90% after retry mechanisms and Gradle caching, while iOS rose from 67% to 97%.


### [Preparing Shopify for Black Friday and Cyber Monday](https://yomu.fyi/post/preparing-shopify-for-black-friday-and-cyber-monday.md)
- Company: [Shopify](https://yomu.fyi/company/shopify.md)
- Author: Camilo Lopez
- Published: Dec 21, 2018
- Type: Explainer

Shopify’s Production Engineering team prepares its platform and 600,000+ merchants for Black Friday and Cyber Monday traffic without interrupting service. Preparation combines controlled fault injection “game days,” synthetic load tests, and staged freezes: a feature freeze begins several weeks ahead, followed by a code freeze allowing only critical fixes during the event. The tests probe dependencies such as shipping providers and payment gateways, including latency, fallback behavior, and responses to datastore failures. After the 2018 weekend, Shopify reported nearly 11,000 orders per minute, around 100,000 requests per second for extended periods, and overall metrics about 1.8 times 2017 levels. The account concludes that fault injection, load testing, and disaster role-play improved readiness, while third-party downtime remains Shopify’s responsibility to merchants and buyers.


### [Bug Bounty Year in Review 2018](https://yomu.fyi/post/bug-bounty-year-in-review-2018.md)
- Company: [Shopify](https://yomu.fyi/company/shopify.md)
- Author: peter yaworski
- Published: Dec 20, 2018
- Type: Benchmark

Shopify’s 2018 bug bounty review reports its fifth year and most successful program to date, with faster handling and higher payouts. The security team cut average triage time from four days in 2017 to 10 hours in 2018 by assigning one of its 14 Application Security members to HackerOne triage each week. At Montreal’s H1-514 event, over 40 hackers produced more than 50 valid reports, supported by early submissions, disclosed resolved reports, incentive bonuses, expanded scope, and infrastructure shell access. Excluding event statistics, average bounty rose to $1,790, total payouts reached $155,750, 60% of resolved reports received a bounty, and triage, bounty, and resolution times improved, although resolved reports and participating hackers declined and some low-severity reports exceeded the one-month target.


### [How an Intern Released 3 Terabytes Worth of Storage Before BFCM](https://yomu.fyi/post/how-an-intern-released-3-terabytes-worth-of-storage-before-bfcm.md)
- Company: [Shopify](https://yomu.fyi/company/shopify.md)
- Author: Gurpreet Gill
- Published: Dec 14, 2018
- Type: Problem & solution

While preparing for Black Friday Cyber Monday (BFCM), Shopify’s Products team found that historical reporting records were causing MySQL to scan many InnoDB pages to return a single record. An intern built a Rails background job to delete the records safely, using Shopify’s job-iteration library to process small batches and an internal throttling enumerator to pause when database health or replication lag became a concern. Indexed fetch queries and cursor-based batching avoided repeated scans and timeouts, while the iterator deleted each batch. Run about two weeks before BFCM, the job deleted more than 5 billion records, peaked at approximately six million records per minute, and released three terabytes of storage. Afterward, the database scanned around three times fewer pages per returned record, improving resilience to flash-sale traffic and producing large cost savings.


### [Director of Engineering, Lawrence Mandel Talks Road to Leadership, Growth, and Finding Balance.](https://yomu.fyi/post/director-of-engineering-lawrence-mandel-talks-road-to-leadership-growt.md)
- Company: [Shopify](https://yomu.fyi/company/shopify.md)
- Author: Toni Akinwumi
- Published: Dec 3, 2018
- Type: Explainer

Lawrence Mandel, a Director of Production Engineering at Shopify, describes a career that moved from software development into technical leadership and the lessons behind that transition. He leads Developer Acceleration, a team that builds tools, conventions, and documentation so Shopify’s development organization can scale effectively. His path included web services, XML, open source, release engineering, project and release management, and self-taught Perl and CGI programming during a work term at IBM. Mandel says leadership required accepting that he could not know every technology or always be the most knowledgeable person in the room, while trusting others’ expertise. He also says prioritizing family and health before work improved his relationships and made his work more deliberate and efficient.


### [Developer Talks: How the Command Line Can Empower You (Webinar)](https://yomu.fyi/post/developer-talks-how-the-command-line-can-empower-you-webinar.md)
- Company: [Shopify](https://yomu.fyi/company/shopify.md)
- Author: Anita Clarke
- Published: Nov 20, 2018
- Type: Announcement

On 27 November 2018, Eric Fung, a Senior Data Scientist, presented “How the Command Line Can Empower You,” a 45-minute talk followed by 15 minutes of questions and answers. The presentation addresses work that often happens outside an IDE, including interacting with APIs, creating screenshots, and massaging data, and shows how command-line tools can simplify, improve, or automate those tasks. Using real-world examples, Fung covers typing less in the terminal, searching files, manipulating images and JSON files, and generating code automatically without point-and-click interaction. The presentation focuses on software for macOS, while noting that Linux and Windows users can benefit because many mentioned tools are cross-platform; the presentation can be watched online and speaker notes can be downloaded.


### [Handling Addresses from All Around the World](https://yomu.fyi/post/handling-addresses-from-all-around-the-world.md)
- Company: [Shopify](https://yomu.fyi/company/shopify.md)
- Author: Nima Izadi
- Published: Nov 14, 2018
- Type: Explainer

International address handling is difficult because countries and locales differ in field order, required fields, terminology, translations, and display conventions. Shopify models each address with fields such as names, address lines, zones, postal code, city, country code, and phone, then stores country-specific metadata in YAML-backed country data. A reusable format describes form and display order, allowing clients to reorder fields, prepopulate country and zone values, and add locale-specific characters such as Japan’s 〒 and 様. Label keys and translations handle terms such as province, prefecture, postcode, and pincode, while an API endpoint keeps applications synchronized and accepts locale information. The team also provides @shopify/address and higher-level components, while identifying caching as a remaining issue to reduce repeated network calls.


### [Running Apache Kafka on Kubernetes at Shopify](https://yomu.fyi/post/running-apache-kafka-on-kubernetes-at-shopify.md)
- Company: [Shopify](https://yomu.fyi/company/shopify.md)
- Author: Sam Obeid
- Published: Nov 7, 2018
- Type: Explainer

Shopify adopted Apache Kafka in 2014 as a data bus for reliable messaging, initially collecting events and aggregating logs, then expanded to multi-tenant regional and aggregate clusters delivering billions of messages daily. In 2017, it migrated Kafka infrastructure from data centers to the cloud with zero downtime by mirroring regional data to both aggregate clusters before moving producers and consumers to cloud clusters. Shopify chose Kubernetes over GCP virtual machines because StatefulSets provide ordered, graceful deployment and scaling, while Custom Resources and Controllers support cluster-specific automation. The implementation uses self-built Kafka images in an own registry, persistent volumes, node and inter-pod affinity controls, taints, rack-awareness across zones, readiness probes, and resource-monitoring sidecars to limit restart and availability risks. The migration completed successfully, and Shopify now runs multiple regional clusters plus an aggregate cluster that mirrors data for the data warehouse.


### [Building Shopify POS for Android Using MVVM](https://yomu.fyi/post/building-shopify-pos-for-android-using-mvvm.md)
- Company: [Shopify](https://yomu.fyi/company/shopify.md)
- Author: Richa Khanna
- Published: Oct 31, 2018
- Type: Tutorial

Shopify’s Android Point of Sale app adopted Model-View-ViewModel (MVVM) to replace an inconsistent codebase containing both MVC and MVP. Because the roughly three-and-a-half-year-old app could not be migrated at once, the team used MVVM for all new screens and converted legacy screens during significant changes. In the architecture, Fragments and sub-views report UI actions through contracts, ViewModels fetch and mutate data, and LiveData delivers updates to active observers. ViewModelProvider retains ViewModel instances across Activity or Fragment configuration changes, while Models handle databases, networks, and caches. Shopify reports more consistent development, easier onboarding and testing, lifecycle-safe UI updates, and a codebase that is easier to modify, although some MVC and MVP screens remain.


### [Creating Locale](https://yomu.fyi/post/creating-locale.md)
- Company: [Shopify](https://yomu.fyi/company/shopify.md)
- Author: Carys Mills
- Published: Oct 24, 2018
- Type: Explainer

Shopify’s move to support six additional languages exposed a challenge in its admin graphs: condensing numbers without distorting locale-specific conventions. The team needed locale-aware abbreviations for sales, visits, and customer data, because unshortened values could consume axis space. Existing JavaScript libraries either exceeded the requirement or conflicted with Shopify’s stack, while the Intl API lacked implemented number-condensing support. During Hack Days, the developers used abbreviation data from Unicode’s Common Locale Data Repository (CLDR) and currency information from Intl.js to build functions for locale-specific numbers and currencies. Their package handles examples such as Portuguese “3 mil” and non-Western systems including India’s lakhs and crores, and was released as condense-number on npm in July 2018.


### [Building a Data Table Component in React](https://yomu.fyi/post/building-a-data-table-component-in-react.md)
- Company: [Shopify](https://yomu.fyi/company/shopify.md)
- Author: Amber Armstrong
- Published: Oct 17, 2018
- Type: Tutorial

Building a responsive data table in React requires preserving a rigid grid while accommodating narrow screens, long words, readable alignment, contextual headings, and accessible markup. The Polaris example starts with headings and rows passed as props, then maps them into a stateful table component and a stateless Cell subcomponent. To contain overflow, the table sits in a max-width: 100vw wrapper with horizontal scrolling, while an absolutely positioned, explicitly sized first column remains fixed and later cells receive matching left spacing. Because absolute positioning breaks natural row-height behavior, refs, clientHeight measurements, Math.max, componentDidMount(), and resize handling recalculate and apply the tallest height for each row. The finished component adds a caption and scope attributes for screen readers, and the described result is a responsive, accessible table for comparing and analyzing data, with the full Polaris version adding truncation, totals, sorting, and navigation.


### [Lost in Translations: Bringing the World to Shopify](https://yomu.fyi/post/lost-in-translations-bringing-the-world-to-shopify.md)
- Company: [Shopify](https://yomu.fyi/company/shopify.md)
- Author: Christian Blais
- Published: Oct 10, 2018
- Type: Problem & solution

Shopify describes the engineering challenge of internationalizing a platform whose twelve years of development left thousands of hardcoded English strings across millions of lines of code. The team first used cops, linters, and tests to stop new violations, then automated extraction of existing content into module-specific dictionaries using keys derived from file paths and strings. A Rails I18n-based pseudolocalization backend replaced characters and doubled vowels, making untranslated content visible while exposing UI problems caused by longer words; UTF-8 migrations and application fixes addressed character-set and internationalization bugs. Finally, an internal Translation Platform connected GitHub webhooks and a translation management system, automatically submitting changed language files and returning approved translations as commits or pull requests. After six months, Shopify was available in a variety of languages, while the team continued addressing localization issues involving formatting, geography, payments, shipping, iconography, and regional requirements.


### [Mohammed Ridwanul Islam: How Mentorship, the T Model and a Pen Are the Keys to His Success](https://yomu.fyi/post/mohammed-ridwanul-islam-how-mentorship-the-t-model-and-a-pen-are-the-k.md)
- Company: [Shopify](https://yomu.fyi/company/shopify.md)
- Author: Toni Akinwumi
- Published: Oct 3, 2018
- Type: Explainer

Mohammed Ridwanul Islam's career story connects his upbringing in Noakhali, Bangladesh, varied work and music experience, and interest in engineering with his current role on Shopify's Eventscale team. He describes how trying to build a game led him to write C# and later study Electrical Engineering at the University of Waterloo, where an internship became a full-time position. Eventscale develops tools, libraries, and infrastructure for collecting event-oriented streaming data across web, backend, and mobile platforms, supporting analytics and operational needs. Mentorship during a difficult team project taught him project management concepts, while habits, VIM, Java, and writing designs on paper shape his working practices. His advice is to build broad competence alongside deep expertise, and to prioritize problem-solving, values, social impact, and continued growth.


### [Dev Degree](https://yomu.fyi/post/dev-degree.md)
- Company: [Shopify](https://yomu.fyi/company/shopify.md)
- Author: Jean-Michel Lemieux, CTO
- Published: Sep 24, 2018
- Type: Explainer

Dev Degree is Shopify’s work-integrated learning program, combining an accredited university degree with double the experience of a traditional co-op. It emerged from concerns that graduates often knew theory but lacked practical software-development skills, and it required a long-term partnership with a university willing to change curriculum and assessments. At Carleton, students take three courses each semester while working 25 hours weekly at Shopify; students also complete a first-year Developer Skills Training program, submit practicum reports every four months, and receive technical and Life@Shopify mentors. The program allocates at least 20% of degree credits to practicums and uses learning outcomes influenced by ACM and IEEE Computer Society standards. Shopify reports 95% retention, women representing over 50% of students, and students becoming productive after nine months; it has expanded to York University, while the company says broader adoption is needed.


[Newer posts](https://yomu.fyi/company/shopify/page/17.md) · [Older posts](https://yomu.fyi/company/shopify/page/19.md)
