by woodylondon · 7mo ago · 0 comments
The problem is that once you're on the paid plan, you're exposed to unlimited risk if your worker goes crazy due to a stupid code bug or if you're hacked. As a solo dev, it's a risk I simply cannot take; I could wake to a bankruptcy bill from Cloudflare. Even as a company, an employee could sign you up and your accounts team would have no idea of the risk.
I am using Supabase at the moment, and see they have a hard cap now. and so does Vercel after they had some nightmare stories of large bills in the past.
I am not sure why / what CloudFlare think about this - or simply dont care.
I was reading the pricing page for workers and here is what it says there:
> To prevent accidental runaway bills or denial-of-wallet attacks, configure the maximum amount of CPU time that can be used per invocation by defining limits in your Worker's Wrangler file, or via the Cloudflare dashboard (Workers & Pages > Select your Worker > Settings > CPU Limits).
Link: end of example 4 section: https://developers.cloudflare.com/workers/platform/pricing/
For example 1 million requests to a Worker is only $0.30 and there's no bandwidth charge. Similar for R2, Pages, etc.
Also I believe their rate limiting rules have been completely free for one or two years now.
There are many services I wanted to use Workers for but ended up with some self hosted service simply because I can't properly limit my monetary risk here.
Source : post on x from an employee
Side note: the bills from cloudflare are much lower than the ones from AWS/Vercel when there's a mistake. The most I saw passing by was 150€, with Vercel and AWS > 10 k.