37signals: The $10 Million Cloud Exit

How the creators of Basecamp and HEY saved millions by leaving the cloud

Industry Example: This case study showcases 37signals' public cloud exit story to demonstrate the potential savings achievable through strategic infrastructure decisions. This represents the type of results we help our clients achieve.

$10M+ Total Savings Over 5 years
$300K → <$30K Monthly Cloud Spend 90%+ reduction
6 months Payback Period Including hardware
30% faster Performance Response times

Background

37signals, the company behind Basecamp and HEY, had been running on AWS since 2006. By 2022, their cloud bills had grown to over $3.2 million annually, despite their relatively stable and predictable workloads.[1]

David Heinemeier Hansson (DHH), the company's CTO and creator of Ruby on Rails, began questioning whether the cloud premium was worth it for their use case. What followed was a carefully planned migration that would become a landmark case study in cloud repatriation.

The Challenge

  • Annual AWS spend exceeding $3.2 million
  • Mostly predictable workloads that didn't need elastic scaling
  • Paying premium prices for commodity hardware
  • Growing concerns about vendor lock-in
  • Desire for more control over infrastructure

The Solution

Hardware Investment

37signals invested approximately $600,000 in hardware:[2]

  • Dell servers for compute workloads
  • High-performance NVMe storage arrays
  • Redundant networking equipment
  • Colocation in two geographically distributed data centers

Migration Strategy

The migration was executed in phases over 6 months:

  1. 1. Started with non-critical applications for testing
  2. 2. Built parallel infrastructure while maintaining AWS
  3. 3. Migrated databases with real-time replication
  4. 4. Gradually shifted traffic using DNS and load balancers
  5. 5. Maintained AWS as backup during transition

Technology Choices

  • KVM for virtualization instead of EC2
  • ZFS for storage instead of EBS
  • Open-source alternatives for managed services
  • Kamal (their open-source deployment tool) for orchestration

Results

Cost Savings

Reduced infrastructure costs from ~$300K/month to under $30K/month - a 90%+ reduction. The $600K hardware investment was recouped in about 6 months.[3]

Performance Gains

30% improvement in application response times due to dedicated hardware and elimination of virtualization overhead.

Operational Simplicity

Fewer moving parts, no complex AWS services to manage, and complete control over the stack.

Team Empowerment

The existing ops team managed the transition without additional hires, gaining valuable skills in the process.

Key Lessons

"The cloud is great for startups and variable workloads, but once you have predictable patterns, you're just paying a massive premium for flexibility you don't need."

- David Heinemeier Hansson, CTO[4]

What They Learned

  • Predictable workloads don't need elastic infrastructure - Their traffic patterns were stable enough to capacity plan effectively
  • Modern hardware is incredibly powerful - A single modern server can replace dozens of cloud instances
  • Complexity has a cost - Simpler infrastructure is easier to debug and maintain
  • Skills are transferable - Their team adapted quickly to managing physical infrastructure

Migration Timeline

January 2022

Initial analysis and business case development

March 2022

Hardware procurement and data center contracts

May 2022

Infrastructure setup and initial application migrations

August 2022

Database migrations and traffic shifting

October 2022

Full cutover and AWS shutdown

June 2023

Updated projection: $10M+ savings over 5 years

Industry Impact

37signals' transparent sharing of their cloud exit journey has inspired thousands of companies to reconsider their cloud strategies. Their blog posts, conference talks, and open-source tools have made cloud repatriation accessible to companies of all sizes.

The success has led to:

  • Development of Kamal, their open-source deployment tool
  • Widespread media coverage questioning cloud economics
  • A movement of companies sharing their own repatriation stories
  • Renewed interest in bare metal and hybrid strategies

Key Takeaways for Your Business

Analyze Your Workloads

If your traffic is predictable and doesn't need instant elastic scaling, you're likely overpaying for cloud.

Do the Math

Calculate the TCO including hardware, colocation, and staff time. The savings often exceed 50%.

Start Small

Begin with non-critical workloads to build confidence and expertise before tackling core systems.

Plan for Success

With proper planning and gradual migration, the risks are minimal and the rewards substantial.

Sources

  1. [1] Heinemeier Hansson, David. "Why we're leaving the cloud." HEY World, October 19, 2022. https://world.hey.com/dhh/why-we-re-leaving-the-cloud-654b47e0
  2. [2] "37signals' cloud exit savings calculated: $1.5M over 5 years, with 33% spend in 2 years." The Register, February 22, 2023.
  3. [3] Heinemeier Hansson, David. "We have left the cloud." HEY World, June 23, 2023. https://world.hey.com/dhh/we-have-left-the-cloud-251760fb
  4. [4] "Leaving the Cloud: The Finale." REWORK Podcast, Episode 66, July 12, 2023. https://37signals.com/podcast/leaving-the-cloud-the-finale/

Ready to Follow 37signals' Lead?

See how much you could save with your own cloud exit strategy