How Victoria's Secret Migrated 2 Billion+ Documents with Custom Bidirectional Replication
summary
Victoria's Secret migrates over 2.5 billion documents from CouchDB to MongoDB Atlas with zero downtime by building a custom bidirectional replicator (89 forks of a common framework) and a control plane that starts, stops and tunes batch sizes. Replication uses an updatedSource flag to avoid cycles; services are written in Go and use NVMe nodes, raised index-build memory, larger oplogs and pre-scaling. Result: disk drops from ~120TB to ~8TB, 240% performance gain, and measurable RTO/RPO testing for holiday traffic.
AI-written summary · about
chapters (20)
- 0:00Introduction and speaker intro
- 1:27Migration from CouchDB to MongoDB
- 3:35CouchDB topology challenges
- 5:19Why choose MongoDB Atlas
- 6:03Zero downtime migration requirements
- 8:09Crawl walk run migration plan
- 9:31Custom replicator and wrapper library
- 10:54Traffic splitting and replication flow
- 11:59Avoiding cyclic replication
- 13:23Control plane for replication
- 14:27MongoDB optimizations for migration
- 16:11Performance testing and benchmarking
- 17:16RTO and RPO evaluation
- 18:18Migration timeline and phases
- 19:22Post-holiday optimizations
- 20:05Migration results and metrics
- 21:08Key learnings and challenges
- 22:12Atlas networking and failover
- 23:14Monitoring and Prometheus integration
- 23:54Q&A and final thoughts
