internalsGet Pro

Module 07 · Lesson 3 of 9Pro

Case: Shopify’s CDC from a sharded monolith

Level
Advanced
Topic
Change data capture and replication
Reading time
18 min

When you finish this page you can

  1. Name the changes a query-based extract by updated_at can never see, and show each one on a small table.
  2. Trace Shopify’s 2021 pipeline from 100+ MySQL shards through Debezium and Kafka Connect to one compacted topic per table, and say why each step exists.
  3. Weigh the two ways Shopify considered for records larger than Kafka’s size limit, and say what the chosen one costs.
  4. Decide which parts of Shopify’s design Kartly’s single orders database needs, and which it can skip.
  1. Incremental loads with watermarks17 min
  2. Change data capture: reading the database’s change log16 min
  3. Debezium and CDC connectors in practice18 min

65,000 changes a second, from more than 100 databases

On Black Friday and Cyber Monday 2020, Shopify’s change pipeline carried about 65,000 records a second on average, with spikes to 100,000.1 Each record was one row change in one of more than 100 MySQL databases. Together those databases hold the data of Shopify’s core , split by .

Our biggest sale ever · Black Friday

Flat 50% Off

Pro

Continue reading

Unlock every course, now and later

  • System Design, live
  • AI Engineering, live
  • Data Engineering, live
  • Machine Learning Engineering, live
  • Inference Engineering, coming soon
  • AI Research, coming soon
  • Performance Engineering, coming soon
  • Agent & Harness Engineering, coming soon
  • LLM Fine-tuning, coming soon
  • LLM Pre-training & Post-training, coming soon
  • Reinforcement Learning, coming soon
  • AI Infrastructure & Platform Engineering, coming soon
  • AI Evaluation & Safety, coming soon
  • Forward Deployed Engineering, coming soon
  • Cloud Computing, coming soon
  • DevOps, coming soon

50% off · Annual and Lifetime

BLACKFRIDAY50Applied at checkout

Choose a plan