#Billing limits on worker

1 messages · Page 1 of 1 (latest)

dull atlas
#

We just set up a cloudflare worker for generating og images.

Is there any way we could force a limit of set $ per month (or something similar).

Don't want to go bankrupt if someone ddos-es the worker endpoint.

hearty delta
#

Cloudflare has free rate limiting built in if you run the worker under a custom domain of a website, can configure that to help, as well as other security controls

dull atlas
#

Alright, figured you'd have a better solution for spend caps. Will look into creating a custom solution then.

hearty delta
dull atlas
#

Yeah I'm constantly hearing about people on platforms like Vercel getting ddossed and having super large bills.

Can't wrap my head around why such an essential feature is not implemented tho. You've got infinitely scaling workers, but what's the point of that scalability if you're going to be bankrupt xd.

Seems like these kinds of limits should be easily configurable from a dashboard or smth.

Anyway, gonna look into creating a custom solution then.

hearty delta
# dull atlas Yeah I'm constantly hearing about people on platforms like Vercel getting ddosse...

Can't wrap my head around why such an essential feature is not implemented tho.
If I had to guess, probably a fair amount of engineering work and reliance on separate analytics stuff to get a pipeline working like that, and then implementing some shutdown feature, and not very high priority over lots of other feature improvements. Only CF would be able to answer
what's the point of that scalability if you're going to be bankrupt xd.
The one nice thing here that helps them is Workers are ridiculously cheap compared to other platforms

dull atlas
#

Haha fair enough about the pricing point.

#

the pricing is really awesome

hearty delta
#

It's going to depend on your cpu time a lot but $100 dollars of usage is some ~300 million requests (in per request cost, you'd have to then calculate your cpu time)

dull atlas
#

Yeah will have to do some math on my end

#

It's annoying that there are no notifications for a specific $ amount reached.

hearty delta
#

yea, probably because all the billing stuff/generation is completely separate

dull atlas
#

yea makes sense