---
title: "Posts"
description: "Engineering blog posts from companies, open source projects, research labs and engineers, each with a summary, topics and a difficulty level."
url: "https://swe.quest/?source=shopify&tag=ruby"
---

# Posts

Filtered by topics: Ruby, source: Shopify Engineering.

Posts 1–24 of 42, page 1 of 2, newest first.

## 2026-07-29

- [Building an agentic harness that outlasts the model](https://swe.quest/articles/building-an-agentic-harness-that-outlasts-the-model-75504578038e6cc5.md): Shopify Engineering · 2026-07-29 · Medium · 8 min read · AI agents, Application security, Vulnerability research, LLMs, Ruby
  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.

## 2026-03-12

- [Shopify’s journey to faster breadth-first GraphQL execution](https://swe.quest/articles/shopify-s-journey-to-faster-breadth-first-graphql-execution-83f0f58b8c4dabd1.md): Shopify Engineering · 2026-03-12 · Hard · 14 min read · GraphQL, Performance engineering, Ruby, Query engines
  Shopify built GraphQL Cardinal, a breadth-first GraphQL execution engine that calls each field resolver once with the full set of objects at that level instead of once per object.

## 2025-06-18

- [Introducing Roast: Structured AI workflows made easy](https://swe.quest/articles/introducing-roast-structured-ai-workflows-made-easy-0fdb158278ceca92.md): Shopify Engineering · 2025-06-18 · Easy · 9 min read · AI agents, AI for coding, Developer tools, Ruby, Testing
  Roast is Shopify's open-source, Ruby-based CLI framework for orchestrating structured AI workflows.

## 2024-02-07

- [A Packwerk Retrospective](https://swe.quest/articles/a-packwerk-retrospective-b9d1167fd6021459.md): Shopify Engineering · 2024-02-07 · Medium · 14 min read · Ruby, Static analysis, Refactoring & migrations, System design
  Packwerk, Shopify's static analysis gem for enforcing package boundaries in Rails monoliths via constant references, works best as a dependency-graph tool rather than an API-privacy tool, which is why privacy checks were removed in 3.0.

## 2024-01-17

- [Horizontally scaling the Rails backend of Shop app with Vitess](https://swe.quest/articles/horizontally-scaling-the-rails-backend-of-shop-app-with-vitess-03c7b2da20f98ec3.md): Shopify Engineering · 2024-01-17 · Medium · 27 min read · MySQL, Distributed databases, Ruby, Scaling, Schema migrations
  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-10-18

- [Introducing Ruvy](https://swe.quest/articles/introducing-ruvy-a780cb3b4891bef0.md): Shopify Engineering · 2023-10-18 · Medium · 5 min read · WebAssembly, Ruby, Performance engineering, Open source
  Ruvy is an open-source toolchain built on ruby.wasm that compiles Ruby scripts into WebAssembly modules, pre-initializing the Ruby VM and preloaded Ruby files at build time instead of at startup.

## 2023-04-06

- [Adventures in Garbage Collection: Improving GC Performance in our Massive Monolith](https://swe.quest/articles/adventures-in-garbage-collection-improving-gc-performance-in-our-massive-7c8cc3e83e915743.md): Shopify Engineering · 2023-04-06 · Hard · 13 min read · Memory management, Ruby, Performance engineering, Runtimes & VMs
  Shopify cut Ruby garbage-collection tail latency in its monolith by finding why major GCs were triggered, via GC.latest\_gc\_info(:major\_by), and removing each cause in turn.

## 2023-03-24

- [Supporting Passkeys in Shop's Authentication Flows](https://swe.quest/articles/supporting-passkeys-in-shop-s-authentication-flows-83c5b8b12531ab5a.md): Shopify Engineering · 2023-03-24 · Medium · 6 min read · Identity & auth, Ruby, E-commerce
  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.

## 2023-02-24

- [Improving the Developer Experience with the Ruby LSP](https://swe.quest/articles/improving-the-developer-experience-with-the-ruby-lsp-7b63921832eb2226.md): Shopify Engineering · 2023-02-24 · Medium · 16 min read · Ruby, Developer tools, Developer productivity
  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.

## 2023-02-21

- [The Case Against Monkey Patching, From a Rails Core Team Member](https://swe.quest/articles/the-case-against-monkey-patching-from-a-rails-core-team-member-b0bd43ce3a761b2b.md): Shopify Engineering · 2023-02-21 · Medium · 14 min read · Ruby, Refactoring & migrations, Open source
  Monkey patching Rails and other gems is brittle and should be avoided.

## 2023-01-17

- [Ruby 3.2’s YJIT is Production-Ready](https://swe.quest/articles/ruby-3-2-s-yjit-is-production-ready-05f17a68a56ea05c.md): Shopify Engineering · 2023-01-17 · Easy · 10 min read · Ruby, Compilers, Runtimes & VMs, Performance engineering, Rust
  YJIT, Shopify's JIT compiler for CRuby, became production-ready in Ruby 3.2 after a port from C99 to Rust and a cut in memory overhead to about a third of Ruby 3.1 levels.

## 2023-01-05

- [Reliving Your Happiest HTTP Interactions with Ruby’s VCR Gem](https://swe.quest/articles/reliving-your-happiest-http-interactions-with-ruby-s-vcr-gem-875b5fd62be42b02.md): Shopify Engineering · 2023-01-05 · Medium · 8 min read · Ruby, Testing
  VCR records live HTTP interactions into YAML "cassettes" and replays them in Ruby tests, giving accurate fixtures for complex, slow, or poorly understood APIs where hand-built Webmock stubs drift from real behavior.

## 2022-12-25

- [Optimizing Ruby’s Memory Layout: Variable Width Allocation](https://swe.quest/articles/optimizing-ruby-s-memory-layout-variable-width-allocation-7db49cee151f4d44.md): Shopify Engineering · 2022-12-25 · Hard · 13 min read · Memory management, Ruby, Runtimes & VMs, Performance engineering
  Ruby 3.2's Variable Width Allocation replaces CRuby's single 40-byte RVALUE slot with five size pools (40, 80, 160, 320 and 640 bytes) so classes, strings, arrays and objects can store their data adjacent to the object instead of in separate malloc'd memory.

## 2022-12-22

- [Year in Review 2022: Tenderlove's Ruby and Rails Reflections and Predictions](https://swe.quest/articles/year-in-review-2022-tenderlove-s-ruby-and-rails-reflections-and-predictions-d873d71ac3e91545.md): Shopify Engineering · 2022-12-22 · Easy · 8 min read · Ruby, Runtimes & VMs, Memory management, Developer tools, Compilers
  Ruby's 2022 highlights include YJIT's rewrite in Rust and its new ARM support, so \`ruby --yjit\` now runs on Apple Silicon development machines as well as production.

## 2022-11-15

- [Caching Without Marshal Part 2: The Path to MessagePack](https://swe.quest/articles/caching-without-marshal-part-2-the-path-to-messagepack-dde2d14188f0b673.md): Shopify Engineering · 2022-11-15 · Medium · 17 min read · Ruby, Caching, Refactoring & migrations
  Shopify replaced Ruby's Marshal with MessagePack as the Rails cache format for its core monolith so that code changes would stop breaking cached payloads on deploy.

## 2022-11-11

- [Caching Without Marshal Part 1: Marshal from the Inside Out](https://swe.quest/articles/caching-without-marshal-part-1-marshal-from-the-inside-out-57f413ca18174072.md): Shopify Engineering · 2022-11-11 · Medium · 11 min read · Ruby, Caching, Runtimes & VMs
  Ruby's Marshal serializes an object's full class graph into cache entries, so a refactor that renamed classes caused old and new code to choke on each other's cached beta-flag objects mid-deploy and triggered an incident at Shopify.

## 2022-10-19

- [Finding Relationships Between Ruby’s Top 100 Packages and Their Dependencies](https://swe.quest/articles/finding-relationships-between-ruby-s-top-100-packages-and-their-dependencies-e53722c1985f09a2.md): Shopify Engineering · 2022-10-19 · Medium · 9 min read · Supply chain security, Ruby, Identity & auth, Algorithms
  RubyGems' MFA requirement for gems over 180M downloads leaves a loophole: some big gems depend on small gems below the threshold, so compromising a small gem's owner account reaches big gems' users.

## 2022-09-01

- [Focus On Behavior, Not State, for a More Maintainable Codebase](https://swe.quest/articles/focus-on-behavior-not-state-for-a-more-maintainable-codebase-d186fd1356391a16.md): Shopify Engineering · 2022-09-01 · Medium · 9 min read · Refactoring & migrations, Ruby, E-commerce, System design
  When adding pre-orders and try-before-you-buy to Shopify's Purchase Options APIs, code that equated "has a selling plan" with "is a subscription" forced repeated refactors.

## 2022-08-11

- [When is JIT Faster Than A Compiler?](https://swe.quest/articles/when-is-jit-faster-than-a-compiler-a0b7c41444704d7c.md): Shopify Engineering · 2022-08-11 · Easy · 7 min read · Compilers, Runtimes & VMs, Ruby, Performance engineering
  JITs can beat ahead-of-time compilers for highly dynamic languages like Ruby because they can compile code under speculative assumptions, such as that Integer#+ hasn't been redefined, and throw that code away (de-optimize) when an assumption breaks.

## 2022-07-28

- [10 Tips for Building Resilient Payment Systems](https://swe.quest/articles/10-tips-for-building-resilient-payment-systems-94c9ade99576742c.md): Shopify Engineering · 2022-07-28 · Medium · 13 min read · Payments & fintech, Resilience, Observability, Incidents & postmortems, Ruby
  Ten lessons from Shopify's payment infrastructure for keeping payment systems reliable at scale.

## 2022-06-15

- [Making Open Source Safer for Everyone with Shopify’s Bug Bounty Program](https://swe.quest/articles/making-open-source-safer-for-everyone-with-shopify-s-bug-bounty-program-48c56c4f3d09ee13.md): Shopify Engineering · 2022-06-15 · Medium · 5 min read · Application security, Ruby, Open source
  A Shopify bug bounty report showed that a leaked Rails development secret could be escalated to remote code execution because ActiveSupport's MessageEncryptor deserialized data with Marshal by default.

## 2022-05-31

- [To Thread or Not to Thread: An In-Depth Look at Ruby’s Execution Models](https://swe.quest/articles/to-thread-or-not-to-thread-an-in-depth-look-at-ruby-s-execution-models-18ca691643d5cc44.md): Shopify Engineering · 2022-05-31 · Medium · 15 min read · Ruby, Concurrency, Memory management, Performance engineering, Runtimes & VMs
  Threaded Ruby servers like Puma and Sidekiq save memory over forking servers, but the gap is smaller than RSS suggests once copy-on-write sharing is measured properly with PSS and /proc/$PID/smaps\_rollup.

## 2022-05-26

- [Implementing Equality in Ruby](https://swe.quest/articles/implementing-equality-in-ruby-f99e6a9b20284d2f.md): Shopify Engineering · 2022-05-26 · Medium · 18 min read · Ruby, Language design
  Ruby distinguishes several forms of equality (#==, #equal?, #eql?, #hash, #===), and each needs its own correct implementation in custom classes.

## 2022-05-13

- [Maestro: The Orchestration Language Powering Shopify Flow](https://swe.quest/articles/maestro-the-orchestration-language-powering-shopify-flow-a032ef3290783e5a.md): Shopify Engineering · 2022-05-13 · Medium · 12 min read · Language design, Static analysis, Scheduling, Resilience, Ruby
  Shopify rebuilt Flow around Maestro, a domain-specific orchestration language that decouples the merchant-facing visual editor from a horizontally scalable execution engine.

[Next page](https://swe.quest/index.md?source=shopify&tag=ruby&page=2)

Same list as RSS: [https://swe.quest/feed.xml?source=shopify&tag=ruby](https://swe.quest/feed.xml?source=shopify&tag=ruby). Lists take `?page=`, `?per=12|24|48|96` and, on the home page, `?tag=` (up to 3), `?source=`, `?difficulty=easy|medium|hard` and `?search=`.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
