Introduction
There’s an intense debate on whether you should host your app on the cloud or on-premises. More importantly, which option is the most affordable? Today, we’ll delve into this topic, examining cases where cloud hosting shines and others where on-premises might be the better choice.
Find out all the details about this subject here:
The Growing Trend of Cloud Hosting
Let’s start with a brief context on the cloud and its trend. Gartner analysis shows that cloud adoption is on a steep rise from 2023 to 2025. By 2024 and 2025, the growth rate is expected to be even higher than in previous years. Major cloud providers like AWS, Microsoft, and Google are leading the market, indicating that more businesses are moving to the cloud. But why is this trend important?
Case Study: Ahrefs' On-Premises Success
Cost Comparison: On-Premises vs. AWS
Ahrefs invested around $20 million in their on-premises infrastructure, covering electricity, maintenance, equipment, and cooling. When compared to the equivalent computing power and storage on AWS, the costs were staggering. Using AWS EC2 instances on demand would have cost them approximately $1.267 billion, and even with a three-year reservation, the cost would still be around $1.1 billion. The difference between these options is about $1 billion.
Why is it so expensive to host on AWS? Should we use EC2 instances instead of serverless or cloud-native solutions? It depends on your business and how you plan to scale and maintain it. For Ahrefs, a monolithic architecture made more sense financially.
The Implications of $1 Billion in Savings
To put this $1 billion savings into perspective, consider that Instagram was sold to Facebook for the same amount. With this money, you could buy a private island or launch a space mission. If Ahrefs had to bear the additional $1 billion cost, they might not exist today, or they would have had to pass the cost onto their users, making their services much more expensive.
Making the Right Choice: Cloud or On-Premises?
So, how do you decide between cloud and on-premises? Here are some key points to consider: