Building a Business System Integration and Automation Platform at Shopify
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. The platform is built around five priorities: minimal, transparent, flexible, secure and reusable. It implements them as a modular monolith of Rails Engines, single-method Actions for business logic, raw hashes instead of typed structs for data transformations, no business-data storage, and WebMock request-level tests. After a year it ran 18 integrations, had absorbed all the former Mulesoft apps, and was being used by other teams.
Related posts
- Shopify-Made Patterns in Our Rails Apps
Shopify Engineering easyNoviceShopify's Rails monolith relies on a set of in-house patterns: the dev CLI for consistent environment setup, a podded architecture that shards the full infrastructure stack by shop, and domain-driven components that share a single database with no database-level foreign keys. Migrations are periodically squashed into structure.sql, and quality is kept up as the org grows through a git-based translation platform, an open-source maintenance tasks engine built on Active Job, and Monorail, which enforces versioned Kafka event schemas with PII annotations. It is pitched as an onboarding overview for new Shopify developers rather than a detailed implementation guide.
- From Ruby to Node: Overhauling Shopify’s CLI for a Better Developer Experience
Shopify Engineering mediumAdeptShopify rewrote its CLI from Ruby to TypeScript on Node to reduce system requirements, unify the Theme, App and Hydrogen workflows, and stay easy for internal teams to contribute to. Go and Rust were rejected despite their static binaries because few Shopify engineers know them. Node won over Ruby because its module system lets multiple versions of a transitive package coexist, which supports modular plugins. The new architecture rests on a shared @shopify/cli-kit package, custom ESLint rules, cross-OS CI testing, a monorepo, and a functional, MVC-like split of models, commands and services. It also uses Vitest unit tests, Cucumber E2E tests, and oclif plugins with hooks for dependency inversion.
- Inside Bitso’s Branch-Based Workflow
Neon easyNovice
Bitso, with 250+ engineers and hundreds of Java microservices talking over Kafka, replaced unreliable shared dev and staging environments with RISE (Robust Isolated Staging Environment). Signadot sandboxes route requests for PR-modified services to isolated versions, and Neon copy-on-write Postgres branches give each sandbox its own production-like database when needed. Roughly half the services could keep sharing a database. Those needing schema changes, write-heavy tests or destructive migrations get per-sandbox branches that scale to zero or are deleted afterward, so the exact tested artifact is what ships to production.
- How we rebuilt the Shopify app in 12 weeks
Shopify Engineering mediumAdeptThirty engineers rebuilt the 300+ screen Shopify mobile app from React Native to native Swift and Kotlin in 12 weeks, with agents writing most of the code. The key work was building a system around the agents: a shared Reflex architecture for iOS and Android that lets ViewModels run headless from a CLI in milliseconds, CI checks that fail on cross-platform drift, and Helix verifying small checkpoints against the legacy app, which served as the spec instead of written documents. As code generation got faster, the bottlenecks moved to laptops, code review, merging and coordination. Shopify answered with remote dev environments, agent-first adversarial review on small dual-platform PRs, a daily loop that turns review comments into rules, agent-driven merge queues, and pod ownership by product area. Launch time dropped about 50% on Android and 14% on iOS, and the Android binary shrank by 40%.
- Remove Circular Dependencies by Using Dependency Injection and the Repository Pattern in Ruby
Shopify Engineering mediumAdeptShopify 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 gem defines a contract, made up of shared Schema domain objects and a PricingRepositoryInterface. Each consumer implements that interface over its own data sources and passes the instance into PricingEngine::Engine, which keeps the gem stateless and unaware of how data is fetched. Sorbet signatures and interfaces enforce the contract at the type level. Testing combines mock repositories inside the gem, unit tests for each consumer's implementation, and shared integration test scripts.