~/talk

Zero-Downtime Rebalancing and Data Migration of a Mature Multi-Shard Platform

name:Justin Li
links:none on file
slides:none on file

Shopify describes a production toolkit that uses the MySQL binlog event stream to copy and replay row changes, rebalancing hundreds of MySQL shards and migrating over 800,000 tenants to Google Cloud with no tenant-facing downtime. It implements per-tenant shared-exclusive locking to bound the write-free cutover (median ~2.5s), batch copy + incremental replay, and a fingerprint verification (hashes + GROUP_CONCAT) that speeds integrity checks ~5×. The system is open-sourced and actively runs in production.

AI-written summary · about

  1. 0:00Introduction to sharding
  2. 3:09Data structure and routing
  3. 5:17Primary key generation
  4. 9:10Layer 7 request routing
  5. 11:09Shard rebalancing challenges
  6. 17:25Shared exclusive locking
  7. 22:46Minimizing downtime
  8. 27:48Data integrity verification
  9. 33:24Orchestration and closing
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.