4 ms·
Edge functions are cost effective, the problem is that they are comparing from Vercel. Vercel is basically a dev friendly wrapper for tier 1 services: https:/
by NicoJuicy 3y ago
Edge functions are cost effective, the problem is that they are comparing from Vercel.
Vercel is basically a dev friendly wrapper for tier 1 services: https://news.ycombinator.com/item?id=35774730 https://news.ycombinator.com/item?id=35774730
Eg. Vercel is 25x more expensive than eg. Cloudflare Workers. Raw guess would be that their 150$ bill would have become 6$.
https://news.ycombinator.com/item?id=37891412 https://news.ycombinator.com/item?id=37891412
Eg. Image resizing
> Vercel : 5$ / 1000 requests
> Cloudflare : 9$ / 50.000 requests
Edit for comment below:
That's a blog post. I got my info from here:
https://www.cloudflare.com/plans/ https://www.cloudflare.com/plans/
See: image resizing
> 50,000 monthly resizing requests included with Pro, Business. $9 per additional 50,000 resizing requests
- danpalmer 3y ago$5 / 1k requests... wow. That's like, entirely unworkable for almost all use-cases surely? Even coming from a backend-heavy world where one request does a lot of work, that's got to be an order of magnitude off the mark at least. If you go for a frontend-heavy setup where there are more smaller requests (in my experience, common, when using things like Lambda), this could be another order of magnitude off again!
- NicoJuicy 3y agoSorry about that. The pricing was about Image Resizing requests ( updated my comment). On http requests itselve. Vercel is 2 $ per million requests. Cloudflare is 0,15$ per million requests. So Cloudflare in this case is > 13 x cheaper.
- junon 3y agoWorkers are also free for the first 100k every month I believe.
- NicoJuicy 3y ago10 million included per month. On the free plan, it's 100 k. per day included - https://blog.cloudflare.com/workers-pricing-scale-to-zero/ https://blog.cloudflare.com/workers-pricing-scale-to-zero/
- junon 3y agoOh, even better. Thanks :)
- vlakreeh 3y agoThe free tier gets 100k requests per day, not month. And then for $5 you get 10M or 1M free a month depending on your settings and then you get charged for additional usage.
- shrubble 3y agoAccording to this page at Cloudflare, their pricing is 50 cents per 1000, is that correct? Or is it a different product... https://blog.cloudflare.com/merging-images-and-image-resizing/ https://blog.cloudflare.com/merging-images-and-image-resizin...
- NicoJuicy 3y ago50,000 monthly resizing requests included with Pro, Business. $9 per additional 50,000 resizing requests https://www.cloudflare.com/plans/ https://www.cloudflare.com/plans/ - section: image resizing