Dropbox: Engineering a $75M Cloud Exit

How Dropbox improved gross margins from 33% to 67% by building their own infrastructure

$75M/year Annual Savings In infrastructure costs
33% → 67% Margin Improvement Gross margins doubled
Exabytes Scale Of user data managed
18 months Investment ROI Full payback period

The Challenge

By 2015, Dropbox was spending over $200 million annually on AWS S3 storage alone. With over 500 million users and exabytes of data, the economics of cloud storage were becoming unsustainable. Every new user added to their AWS bill, creating a unit economics problem that threatened long-term profitability.

The Breaking Point

  • AWS costs growing faster than revenue
  • Storage needs doubling every 18 months
  • Gross margins stuck at 33% due to infrastructure costs
  • Competitors with better unit economics threatening market position

Project Magic Pocket

Dropbox embarked on one of the most ambitious infrastructure projects in tech history: building their own storage system from scratch.

The Technical Challenge

  • Design custom storage hardware optimized for their workload
  • Build software to manage exabytes of data reliably
  • Migrate 500PB of data without any downtime
  • Maintain S3-level durability (99.999999999%)

The Solution Architecture

Hardware Design

  • Custom storage servers with 4TB drives
  • Optimized for sequential writes (append-only workload)
  • Shingled Magnetic Recording (SMR) drives for density
  • Custom power and cooling systems

Software Stack

  • Rust-based storage engine for performance
  • Erasure coding for efficient redundancy
  • Global deduplication system
  • Intelligent data placement algorithms

The Migration

Dropbox executed a masterclass in large-scale migration:

Phase 1: Dual Writing (6 months)

  • New uploads written to both S3 and Magic Pocket
  • Allowed testing at scale without risk
  • Performance validation in production
  • Bug fixes without user impact

Phase 2: Data Migration (12 months)

  • Custom data mover transferring 4PB/day
  • Prioritized frequently accessed data
  • Continuous verification of data integrity
  • Zero downtime throughout migration

Phase 3: Cut Over (3 months)

  • Gradual traffic shifting by region
  • Real-time monitoring and rollback capability
  • Final verification of all data
  • Complete AWS S3 retirement

Results & Impact

Financial Impact

  • $75M annual savings on infrastructure
  • Gross margins improved from 33% to 67%
  • Unit economics transformed - each user now profitable
  • Stock price doubled within 2 years

Technical Achievements

  • 90% reduction in storage footprint through deduplication
  • 4x improvement in data durability
  • 50% faster upload speeds
  • Complete control over feature development

Key Lessons

"When you're operating at our scale, the markup on cloud services becomes a real drag on the business. Building our own infrastructure was scary, but it transformed our economics."

- Aditya Agarwal, Former CTO

Scale Matters

At exabyte scale, even small per-GB savings translate to millions in cost reduction.

Workload Optimization

Understanding your specific workload patterns enables massive optimizations.

Gradual Migration

Their phased approach allowed learning and adjustment without risking the business.

The Broader Impact

Dropbox's success proved that even the most complex cloud workloads can be repatriated successfully. Their journey inspired many other companies to reconsider their cloud strategies, especially those with:

  • Large-scale storage needs
  • Predictable growth patterns
  • Specific performance requirements
  • Margin pressure from cloud costs

Sources

  1. [1] Miller, Jen A. "As cloud costs climb, is repatriation the answer?" CIO Dive, July 12, 2021. https://www.ciodive.com/news/cloud-cost-migration-IaaS/602873/
  2. [2] "Cloud Repatriation in 2025: Statistics, Who's Leaving & Why Now." Puppet Blog. https://www.puppet.com/blog/cloud-repatriation
  3. [3] "Cloud-to-Bare-Metal Migration Market Research." Internal research document citing multiple industry sources.
  4. [4] "Dropbox saved almost $75 million over two years by building its own tech infrastructure." GeekWire, 2018. https://www.geekwire.com/2018/dropbox-saved-almost-75-million-two-years-building-tech-infrastructure/

Ready to Transform Your Infrastructure Economics?

Learn how cloud repatriation could improve your margins