Skip to content

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

Ruby Remove topic Ruby Clear all 74 posts RSS

2026

Cloudflare

How Cloudflare WAF protects against ruby2shell (CVE-2026-132825)

Announcement 6 min +60 XP

ruby2shell (CVE-2026-132825) is a heap buffer overflow in Ruby's string case conversion: in 14 legacy single-byte encodings, uppercasing the German ß writes two bytes (SS) but reserves room for one, so 21 sharp s characters overflow by a byte, with proofs of concept reaching remote code execution.

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.

2025

Upgrade to Puma 7 and Unlock the Power of Fair Scheduled Keep-alive

Deep dive 11 min +110 XP

Puma 6 and earlier let a single keep-alive connection monopolize a thread for up to 10 requests via the "fast inline" loop originally built for HTTP pipelining, so under overload about one in ten requests waited roughly 10x longer while later keep-alive requests cut the line.

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

GitHub Engineering

How we organize and get things done with SERVICEOWNERS

Case study 4 min +40 XP

GitHub added a service layer between code and teams in its 4.2M-line Rails monolith: a SERVICEOWNERS file maps glob patterns, directories and files to named services, and a service-mappings.yaml ties each service to teams, managers, chat channels and tier ratings.

2022

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.

Heroku Engineering

The Adventures of Rendezvous in Heroku’s New Architecture

Incident 9 min +90 XP

Moving Heroku's Rendezvous proxy, which splices CLI and one-off dyno connections across NATs, from EC2 Classic to VPC behind AWS Network Load Balancers with TLS termination broke one customer's request-scoped one-off dyno workflow with H12 router timeouts.

That Old Certificate Expired and Started an Outage. This is What Happened Next

Incident 6 min +60 XP

When Let's Encrypt's old root certificate expired on September 30, 2021, Shopify's internal service-to-service HTTPS calls began failing because the Ruby httpclient gem, pulled in transitively by rack-oauth2, openid_connect and google-api-client, ships its own six-year-old cacert.pem that trusted neither the expired root nor the new one.

2021

GitHub Engineering

Partitioning GitHub’s relational databases to handle scale

Case study 9 min +90 XP

GitHub split its monolithic `mysql1` MySQL cluster by first virtually partitioning tables into schema domains (declared in YAML) and enforcing boundaries with query and transaction linters, then physically moving domains to new clusters via Vitess vertical sharding or a custom ProxySQL/GTID-based write-cutover script.

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.

How we scaled the GitHub API with a sharded, replicated rate limiter in Redis

Case study 9 min +90 XP

GitHub replaced a Memcached-based API rate limiter, which suffered evictions and could not survive a move to per-datacenter caches, with application-sharded Redis clusters (one primary, several read replicas) and atomic Lua scripts, rolled out behind a feature flag.

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: