by NicoJuicy · 3y ago · 0 comments
- 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...
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.
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...