How to set a max limit on requests & CPU time to prevent pay-as-you-go charges and unexpected bills?

I have developed a SaaS called Webleadr, where my users e.g. web designers can find businesses without websites across the world and contact them easily with just one click. The URL is https://webleadr.com and it is deployed on Cloudflare Pages. I have subscribed to the Paid Plan for Workers & Pages, but I want to set a maximum limit to control the bills and prevent unexpected charges.
Webleadr
Find leads and businesses without websites | Webleadr
Find leads and businesses without websites around the world and contact them with ease! Create an account to get started.
No description
3 Replies
Chaika
Chaika6mo ago
You can set the cpu limit per request under Settings -> Functions -> CPU Limit (it's a soft limit though, a few requests can go over). You can set USage Based Billing Alerts for Standard Requests under Notifications -> billing, "CF Workers Standard Requests" product. You can't set caps/limits on requests
1chbinamin
1chbinaminOP6mo ago
Then would it be risky to use a subscription based tier since there might be DDOS attacks going on? Or is this something that Cloudflare can take care of?
Chaika
Chaika6mo ago
CF has automatic ddos protections, and if an attack is missed you can contact billing
Want results from more Discord servers?
Add your server