Cloud Repatriation - Case Studies
In a casino the house always wins, in law the lawyers never starve. For us, cloud providers are the silent tax-collectors. Cloud hosting has tangible risks, data storage is over-priced, and the benefits of time-to-market may evaporate due to success. The following case studies illustrate:
Case Study 1: Dropbox — Escaping the Storage Tax at Exabyte Scale
Context & Early Success
During its hyper-growth phase from a lean startup to hundreds of millions of registered users, Dropbox relied heavily on Amazon Web Services (AWS) to store user files and absorb rapid global demand. Public cloud infrastructure allowed the team to focus on product velocity rather than racking servers.
The Scaling Wall
Once Dropbox reached massive scale, the unit economics of cloud storage inverted. Storing exabytes of user data and paying egress bandwidth fees on AWS became an unsustainable tax on revenue, suppressing gross margins to roughly 33% ahead of its planned IPO.
The Repatriation Strategy
Between 2014 and 2016, Dropbox executed one of the largest cloud repatriations in tech history:
- Custom Hardware & Software (“Magic Pocket”): Engineers designed a custom, exabyte-scale storage system built on high-density commodity hardware in dedicated colocation facilities.
- Targeted Migration: Over 90% of user data was migrated off AWS S3 onto proprietary infrastructure, keeping AWS solely for localized international edge traffic and burst compute.
Results & Impact
- $75 million in direct cumulative operating savings within two years.
- Gross margins doubled from 33% to 67%, transforming infrastructure from a scaling liability into a durable competitive moat.
Case Study 2: 37signals (Basecamp & HEY) — Eliminating Predictable SaaS Cost Bloat
Context & Early Success
37signals, the profitable software company behind Basecamp and the email service HEY, operated on AWS and Google Cloud for over a decade. With a small engineering team and steady, predictable customer growth, managed cloud services initially offered operational simplicity.
The Scaling Wall
Despite predictable traffic patterns that did not require elastic burst scaling, the company’s annual cloud bill ballooned to $3.2 million—including over $500,000 per year just for S3 object storage and managed search services. The convenience tax of managed databases and cloud primitives grew disproportionately to actual compute requirements.
The Repatriation Strategy
In 2023, 37signals initiated a full exit from the public cloud for its core production workloads:
- Bare-Metal Investment: The company spent $700,000 on high-performance Dell servers housed in managed colocation data centers.
- Stack Simplification: Engineering replaced proprietary managed cloud services (such as RDS and Elasticsearch) with open-source equivalents running directly on owned hardware.
Results & Impact
- Annual infrastructure spend dropped from $3.2 million to $1.3 million.
- Projected $10 million in net savings over five years, alongside measurable improvements in application latency and P99 response times.
Case Study 3: Reco.se — Reining In Runaway Kubernetes & Managed Service Spend
Context & Early Success
Reco.se, Sweden’s largest independent business review platform, built its modern architecture on Google Cloud Platform (GCP). Initially designed to scale cleanly as traffic and review data expanded, the platform gained steady market adoption.
The Scaling Wall
As platform volume grew, infrastructure costs escalated faster than revenue. Over-provisioned Kubernetes clusters, idle capacity sized for peak traffic spikes, and high-margin managed database tiers created silent cost creep across environments.
The Optimization & Right-Sizing Strategy
Rather than accepting linear cost growth, the engineering team overhauled its scaling mechanics and resource commitments:
- Event-Driven Autoscaling: Implemented KEDA (Kubernetes-based Event-driven Autoscaling) to dynamically scale pods to zero or near-zero during low traffic instead of running static peak-sized nodes 24/7.
- Deep Observability: Deployed OpenTelemetry to identify and right-size bloated Java Virtual Machines (JVMs) and eliminate redundant logging ingestion.
- Committed-Use Restructure: Consolidated database workloads onto committed-use Cloud SQL instances to strip away on-demand pricing premiums.
Results & Impact
- Stabilized monthly cloud expenditure despite continued growth in user traffic and data volume.
- Increased workload density per node without sacrificing platform reliability or response speed.
Case Study 4: Coinbase — Moving Core Workloads Off AWS for Hybrid Control
The Success & Scaling Struggle
During the 2020–2021 crypto boom, Coinbase’s user base and transaction volumes surged dramatically. Running 100% on AWS, their cloud bills scaled faster than expected—driven heavily by massive database IOPS, egress fees, and over-provisioned compute kept warm to handle sudden, unpredictable market volatility spikes.
The Shift
Rather than staying purely on AWS managed services, Coinbase executed a multi-year infrastructure overhaul. They migrated core workloads onto on-premises data centers and bare-metal servers for predictable baseline traffic while keeping AWS strictly for elastic burst capacity during extreme trading rallies.
The Outcome
- Cut annual infrastructure spend by hundreds of millions of dollars (reporting roughly a 50%+ reduction in core cloud compute and storage unit costs).
- Achieved faster, more predictable transaction processing latencies during peak trading windows.
Case Study 5: GEICO — Reversing a “Lift-and-Shift” Cloud Bill Shock
The Success & Scaling Struggle
Insurance giant GEICO embarked on an aggressive digital transformation, moving hundreds of legacy applications and customer-facing portals onto the public cloud. However, because they relied heavily on a “lift-and-shift” approach without re-architecting for cloud-native efficiency, their cloud expenses exploded—more than doubling to over $300 million annually without delivering proportional performance gains.
The Shift
Facing unsustainable operating costs and vendor lock-in, GEICO reversed course and initiated a major repatriation effort. They invested in modernizing their own private cloud data centers using open-source orchestration (Kubernetes and OpenStack) and moved critical workloads back on-premises.
The Outcome
- Regained predictable capital expenditure (CapEx) control and eliminated massive cloud egress and licensing markups.
- Became one of the largest enterprise examples of reversing a “cloud-first” mandate in favor of owned infrastructure.
Case Study 6: Character.AI — Escaping Cloud GPU Markups at Viral Scale
The Success & Scaling Struggle
After launching its conversational AI platform in 2022, Character.AI experienced viral consumer growth, serving tens of thousands of inference queries per second. Renting high-end NVIDIA GPUs on Google Cloud Platform (GCP) allowed them to launch fast, but at massive scale, public cloud GPU markups and inter-node networking costs threatened to make unit economics impossible.
The Shift
Rather than continuing to rent on-demand cloud GPU clusters, Character.AI designed custom inference software stacks (such as INT8 quantization and custom KV-cache management) and shifted toward dedicated, long-term bare-metal GPU leases in colocation facilities.
The Outcome
- Reduced inference serving costs to less than 1/33rd of what standard commercial cloud APIs and on-demand instances would have cost at equivalent scale.
- Enabled sustainable unit economics while serving massive free-tier consumer traffic.
