Cloud Computing 11 min read

How X Cut Cloud Costs by 60%: Inside the ‘CloudExit’ Strategy

X's engineering team achieved a 60% reduction in monthly cloud costs through a comprehensive CloudExit strategy that moved media and blob storage on‑premises, cut code lines, closed data centers, built a GPU super‑computer, and optimized networking, saving over $60 million annually.

21CTO
21CTO
21CTO
How X Cut Cloud Costs by 60%: Inside the ‘CloudExit’ Strategy

In late October, X's engineering team announced a "CloudExit" initiative that reduced the platform's monthly cloud spend by 60%, delivering a striking cost‑saving result that reignited the debate on the necessity of cloud adoption.

The company’s five‑and‑a‑half‑year contract with AWS was valued at $5.1 billion, averaging $7.73 million per month in cloud expenses, and Elon Musk demanded a $1 billion reduction in cloud infrastructure costs.

The "CloudExit" measures included moving media and blob artifacts out of the cloud, which cut overall cloud storage size by 60%, and reducing cloud data‑processing costs by 75%.

Integrated the product framework for "For You", "Following", "Search", "Profiles", "Lists", "Communities" and "Explore" into a unified tech stack.

Rebuilt the "For You" recommendation service, shrinking code from 700 K lines to 70 K (a 90% reduction) and halving compute usage, which increased post‑throughput by 80%.

Unified recommendation, video personalization and ranking models, markedly improving video recommendation quality.

Refactored the API middleware layer, deleting over 100 K lines of code and thousands of unused internal endpoints.

Reduced post‑metadata latency by 50% and cut global API timeout errors by 90%.

Blocked bots and crawlers 37% faster than in 2022, preventing over a million daily registration attacks and reducing spam messages by 95%.

Closed the Sacramento data center, re‑allocating 5 200 racks and 148 000 servers, saving more than $100 million annually and freeing 48 MW of capacity.

Optimized the partnership with cloud providers by shifting more workloads to on‑premises, achieving the 60% cloud‑cost reduction and the 75% data‑processing cost cut.

Built a private GPU super‑computing cluster with a 43.2 Tbps network architecture to support the cluster.

Expanded network backbone capacity and redundancy, saving $13.9 million per year.

Launched automated high‑traffic failover testing to continuously verify platform scalability and availability.

Overall, the monthly cloud cost fell by 60% primarily due to removing media/blob assets from the cloud, which alone reduced storage by 60%; data‑processing costs were cut by an additional 75%.

To enable the "CloudExit", X also optimized its hardware stack: it shut down the Sacramento data center, repurposed 5 200 racks and 148 000 servers (saving $100 million), built a proprietary on‑premises GPU super‑computer, and upgraded network capacity, yielding further annual savings of $13.9 million.

Based on the announced 60% monthly cloud‑cost reduction, X could save over $60 million per year.

In June, Ruby on Rails creator David Heinemeier Hansson reported that his company 37Signals completed a similar "cloud exit" within six months, migrating all applications to on‑premises hardware and projecting $7 million in cloud‑cost savings over five years.

David highlighted that "CloudExit" may soon become mainstream, emphasizing that large enterprises can achieve substantial savings by reducing reliance on cloud services.

These results demonstrate that even with a workforce reduced to a quarter of its original size, X achieved remarkable cost efficiencies through disciplined engineering and strategic on‑premises investments.

Original Source

Signed-in readers can open the original source through BestHub's protected redirect.

Sign in to view source
Republication Notice

This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactadmin@besthub.devand we will review it promptly.

cloud migrationEngineering OptimizationCloud Cost Reductiondata center closureon-premise infrastructure
21CTO
Written by

21CTO

21CTO (21CTO.com) offers developers community, training, and services, making it your go‑to learning and service platform.

0 followers
Reader feedback

How this landed with the community

Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.