The new mantra with the cloud champions in my company is that cloud was never meant to save money. It’s a premium experience that’s about saving time. This did not sound right so I dug into the emails our leadership sent us between 6-3 years ago upping our “cloud transformation”. And yup, saving money was a part of it. It’s only over the last year or so where it’s become obvious we didn’t save any money and in fact s…
Ahrefs Saved US$400M in 3 Years by Not Going to the Cloud (2023)
31–40 of 66 posts
Re: Ahrefs Saved US$400M in 3 Years by Not Going to the Cloud (2023)
#32Re: Ahrefs Saved US$400M in 3 Years by Not Going to the Cloud (2023)
#33Earlier quoted context omitted.
In a much smaller scale, I'm working on a web crawler as well, and renting a dedicated server at Hetzner with unlimited traffic is cheaper than any VPS, or cloud offering. 8 cores, 32 GB RAM, 2x 500 GB SSD for ~€40/month — it's an older CPU but web crawlers don't spend too much time crunching numbers anyway.
What crawling framework you using?
20% of a crawler is fetching and parsing pages, the remaining 80% is dealing with misconfigured, broken and non-standard web servers and HTML. Dealing with Cloudflare, Akamai and random bot-busting tools that cause more false positives than a chaos monkey. It's better to write one yourself that you can control, monitor and operate as you need, instead of relying on third-party logic. Makes sense for my business, at least.
Re: Ahrefs Saved US$400M in 3 Years by Not Going to the Cloud (2023)
#34The new mantra with the cloud champions in my company is that cloud was never meant to save money. It’s a premium experience that’s about saving time. This did not sound right so I dug into the emails our leadership sent us between 6-3 years ago upping our “cloud transformation”. And yup, saving money was a part of it. It’s only over the last year or so where it’s become obvious we didn’t save any money and in fact s…
But that's true, AWS really took off when people were developping Facebook apps and seeing exponential growth over a few days.
They wanted servers right now, but their supplier had 1 week of lead time to get a new machine, + setup time. On the other hand you could spin up a new EC2 machine in a few seconds.
Re: Ahrefs Saved US$400M in 3 Years by Not Going to the Cloud (2023)
#35>by not going to the cloud ...in the worst way imaginable Doing a direct lift and shift with 1:1 replacement of instances is, intentionally, prohibitibely expensive, so you stop and think .
Do you mean to imply that cloud services at higher levels of abstraction are cheaper per unit of compute than simple VMs? I believe you’ll find that the opposite is true. At the scale discussed here, there are no free lunches.
Managing VMs with dedicated resources directly means you have to distribute the load manually, leading to unused and wasted resources.
Re: Ahrefs Saved US$400M in 3 Years by Not Going to the Cloud (2023)
#36They crawl all the time, their instances could go down and no problem, there are still hundreds doing the same task. They consume waaaay too much traffic for the cloud to make sense financially. Hybrid approach is best in cases like this. Use the cloud for client facing interfaces and rent dedicated servers for the spiders. edit: even better, build your own data center instead of renting.
In a much smaller scale, I'm working on a web crawler as well, and renting a dedicated server at Hetzner with unlimited traffic is cheaper than any VPS, or cloud offering. 8 cores, 32 GB RAM, 2x 500 GB SSD for ~€40/month — it's an older CPU but web crawlers don't spend too much time crunching numbers anyway.
Re: Ahrefs Saved US$400M in 3 Years by Not Going to the Cloud (2023)
#37Re: Ahrefs Saved US$400M in 3 Years by Not Going to the Cloud (2023)
#38Which makes me scratch my head at the concluding statement:
> A cloud is convenient and locked in.
Everything is a lock-in. But in the case they've described, which is just shifting from VMs to EC2s, it is the exact same thing, there is no lock-in from their perspective other than to use the phrase as a boogeyman.
Re: Ahrefs Saved US$400M in 3 Years by Not Going to the Cloud (2023)
#39first of all, ahrefs discounts the "people" cost, but that's a huge cost to ignore!
the biggest advantage that AWS and the like confer is being able to reduce interactions with literally every piece of infra you consume from them down to APIs.
having physical hardware means you need a team who knows how to rack/provision/configure/update hardware *along with* administrating operating systems and everything that comes with *along with* the automation needed to hold everything together.
finding people who had all of those skillsets was super challenging before The Cloud appeared, and is especially hard now since everyone who would have those skillsets prefers to work with cloudy things (because everything's an API).
second of all, they made the classic mistake of doing a one-to-one comparison of running their business on EC2. ofc that's going to cost a ton! you're basically just renting VMs from them at a huge premium. that can be done anywhere else (Hetzner is popular) for much cheaper.
that's not why you move to the cloud.
when AWS or Azure says they help companies save money, they usually mean taking an app that runs really well on-premise on a fixed set of compute that's a whole process to scale and making it run even better on smaller, but more distributed, compute that should be less expensive due to economies of scale.
Do web crawlers like these _need_ to run entirely on huge EC2 instances that run hot all of the time? Could they take advantage of more fractional compute from things like EC2 spot autoscaling groups or "serverless" compute? Ahrefs uses local NVMe storage for everything, which is definitely cheaper than EBS. Could they use data archival pipelines to compact and move less-used data onto slow networked storage? Could they benefit from using more aggressive caching for sites that don't change very often?
finally, for every company like Ahrefs who runs lots of compute hot 24x7, there are at least 20,000 companies who spend big money operating datacenters for apps that don't justify the cost. they _could_ save significant amounts of money by moving to the cloud AND re-architecting their apps to spend compute more efficiently.
Re: Ahrefs Saved US$400M in 3 Years by Not Going to the Cloud (2023)
#40Not directly related, but how much energy is being wasted by thousands of companies scraping the internet continuously and storing roughly the same information as everyone else, and then storing that in their own datacenters? I understand the commercial reasons for it, but this all seems very inefficient.