---
title: "Building a Business System Integration and Automation Platform at Shopify"
description: "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."
url: "https://swe.quest/articles/building-a-business-system-integration-and-automation-platform-at-shopify-ca92d2227e71ff9f"
canonical: "https://shopify.engineering/rails-business-systems-intergration-platform"
source: "Shopify Engineering"
published: "2022-04-22"
difficulty: "medium"
kind: "Case study"
reading_minutes: 11
tags: ["ruby","system-design","api-design","testing"]
---

# Building a Business System Integration and Automation Platform at Shopify

A post on [Shopify Engineering](https://swe.quest/sources/shopify.md), published 2022-04-22, 11 min read, Case study. Original: [https://shopify.engineering/rails-business-systems-intergration-platform](https://shopify.engineering/rails-business-systems-intergration-platform)

## Summary

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.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Ruby](https://swe.quest/tags/ruby.md) (Languages)
- [System design](https://swe.quest/tags/system-design.md) (Architecture & design)
- [API design](https://swe.quest/tags/api-design.md) (Backend & APIs)
- [Testing](https://swe.quest/tags/testing.md) (Engineering practices)

## Prerequisites

- Ruby on Rails basics ([easy posts on Ruby](https://swe.quest/tags/ruby.md?difficulty=easy))
- REST API integration ([easy posts on API design](https://swe.quest/tags/api-design.md?difficulty=easy))

## Keywords

Ruby on Rails, Rails Engines, Mulesoft, WebMock, Mocha, Airtable, Sorbet

## Related posts

- [Shopify-Made Patterns in Our Rails Apps](https://swe.quest/articles/shopify-made-patterns-in-our-rails-apps-92bda4387ca54f09.md): Shopify Engineering · 2021-07-13 · Easy · 8 min read · Ruby, Developer productivity, Distributed databases, System design, Schema migrations
  Shopify'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.
- [From Ruby to Node: Overhauling Shopify’s CLI for a Better Developer Experience](https://swe.quest/articles/from-ruby-to-node-overhauling-shopify-s-cli-for-a-better-developer-experience-c31f4bbd707f942e.md): Shopify Engineering · 2023-01-10 · Medium · 12 min read · Developer tools, TypeScript, JavaScript, Refactoring & migrations, Testing
  Shopify 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.
- [Inside Bitso’s Branch-Based Workflow](https://swe.quest/articles/inside-bitso-s-branch-based-workflow-adf1ccd0657f07fd.md): Neon · 2026-01-07 · Easy · 4 min read · Testing, PostgreSQL, Microservices, Developer productivity
  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).
- [How we rebuilt the Shopify app in 12 weeks](https://swe.quest/articles/how-we-rebuilt-the-shopify-app-in-12-weeks-08ae147088c9e21e.md): Shopify Engineering · 2026-11-10 · Medium · 15 min read · AI for coding, Mobile, Refactoring & migrations, Developer productivity, Code review
  Thirty 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.
- [Remove Circular Dependencies by Using Dependency Injection and the Repository Pattern in Ruby](https://swe.quest/articles/remove-circular-dependencies-by-using-dependency-injection-and-the-repository-605bdeddd937fd64.md): Shopify Engineering · 2021-03-19 · Medium · 8 min read · Ruby, Refactoring & migrations, Type systems, Testing
  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.

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)
