Catalogue / shopify-2020-strangler-fig-migration

Shopify describes a seven-step Strangler Fig process for extracting settings from its Shop model, walked through on a Shopify Capital example

Shopify. Core Ruby on Rails monolith (Shop model and store settings).

Organisation
Shopify
Evidence
Reported from production
Source
Refactoring Legacy Code with the Strangler Fig Pattern

Shopify Engineering, published 2020-03-11

Records

Decision#d1

Extract attributes and logic from the monolithic Shop model via a seven-step Strangler Fig migration

Decision#d2

Keep old and new tables in sync during extraction using transactional dual-writes and pessimistic locks on backfill

Sign in to read what was chosen, what was rejected and what it cost, each with its place in the source. An account is free.