Hacker News new | ask | show | jobs
by NicoJuicy 970 days ago
TLDR: They could have done it cheaper, quicker and without adding DevOps to their workload with just migrating to Cloudflare.

- Vercel: 150$/m.

- Fly: 23$/m ( + managing servers and devops)

- Cloudflare: 11 $/m.

--- (original comment)

They could have gone from Vercel to Cloudflare to reduce their costs.

But that would have been almost no work to create a blog post about :p

https://developers.cloudflare.com/pages/framework-guides/dep...

Did some raw math.

Cloudflare is 0,15$ per million requests and Vercel is 2$ per million requests.

Their calculation for Vercel was: 77,600 * (2/1,000,000) = 0.15c per monitor monthly

So that's ~0,011c per monitor monthly on Cloudflare. That would be a bill of 11€ per month ( vs 150 € per month on Vercel ). Probably less, since Cloudflare doesn't count idle CPU time, which is very relevant in this use-case ( outbound http calls) ... - https://blog.cloudflare.com/workers-pricing-scale-to-zero/

Which is cheaper than their VPS of 23.34$ / month.

And would have avoided managing servers + security to their workload...

3 comments

It is beyond me why anyone but the most pre-revenue bootstrapped projects would spend $150k+/yr eng hours into saving $100 month on infra. Projects like this are trying to make $1m+/yr in revenue.
This was done in a weekend fyi ( mentioned in the blog post)
Founder of OpenStatus here: We can't use Cloudflare because there's no way to execute in a specific region, if you know how to do it let me know
That was an interesting rabbit hole, thanks :p

Found this to be the best resource:

https://community.cloudflare.com/t/how-to-force-region-in-cl...

Guess it's a bit more work than originally expected.

An alternative would be to use proxy ip's to hint regions, which would resolve to other locations. And then parse the Colo from the request.

Can you deploy 700MB Dockerfiles to Cloudflare, as they mention as a minimum requirement in the article?
Why would they need that on Cloudflare?

Since they didn't had to change much of their original functions to docker, if they would have switched to Cloudflare from Vercel directly.

That would have been a lot quicker for them to do...

Alternatively, Cloudflare supports hono which they moved too.

https://developers.cloudflare.com/pages/framework-guides/dep...

Didn't they only need the 700MB dockerfile due to Fly.io requiring it?
Fly.io supports up to 8GB docker images
Cool. By the sounds of it, they needed the docker image in the first place because they chose fly.io. This guy is saying that Cloudflare wouldn't support it, but if they went the cloudflare route (which I'm not saying whether or not it's actually possible), they wouldn't have needed the docker image in the first place.
Correct. Which was actually already in my tldr

> TLDR: They could have done it cheaper, quicker and without adding DevOps to their workload with just migrating to Cloudflare.

See: quicker= less changes required to migrate...