Live data from Hacker News

Ahrefs Saved US$400M in 3 Years by Not Going to the Cloud (2023)

tech.ahrefs.com

31–40 of 66 posts

Re: Ahrefs Saved US$400M in 3 Years by Not Going to the Cloud (2023)

#31

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…

Whether or not using a cloud for a given workload today makes sense, the original mantra was absolutely around cost. The basic narrative was that computing was a utility and--especially before local solar was really a thing--how could an individual company compute/generate electricity competitively when they could just consume it off a grid?

Re: Ahrefs Saved US$400M in 3 Years by Not Going to the Cloud (2023)

#33
post #11

Earlier 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?

In-house made in Elixir.

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)

#34

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…

> 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.

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
post #2

>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.

It depends on the scale, but running containers over a k8s clusters means your load will be distributed among the nodes according to capacity.

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)

#36
post #11

They 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.

[deleted]

Re: Ahrefs Saved US$400M in 3 Years by Not Going to the Cloud (2023)

#37
I just realised that (ignoring other weird price calculation aspects), they compare the processing power 1:1 for AWS... Does that mean they have no second site / failover? They keep referring to just one datacentre, but missing the "x% chance of a thermal event wiping the company for (colocation+hardware lead time)" is not something you can swipe under the rug.

Re: Ahrefs Saved US$400M in 3 Years by Not Going to the Cloud (2023)

#38
This is a weird read. The analysis makes the classic mistake of assuming a lift-and-shift calculation. Of course that's going to be more expensive. You save money by re-architecting and using more managed services.

Which 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)

#39
i don't buy it.

first 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)

#40
post #17

Not 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.

Easy enough to fix if there's enough demand, just sell crawl logs. But maybe there's too much diversity amongst potential customers to make that business viable.
Post reply on HN