@aly @harris @signalnerve @cscharff
This is extremely disappointing, No where it is mentioned that Cloudflare workers with KV are subjected to non HTML ToS violation bans. Even in the limits section of workers docs. https://developers.cloudflare.com/workers/about/limits/
The entire point of having workers is serverless and there is no way to turn off proxy by design. As this is 2020, the quality of images will only go up along with size, images and other media would always have disproportionate bandwidth by default. With the advent of new technologies the number of filetypes are dynamically increasing, that’s not necessarily under Cloudflare’s ToS.
The variables are already in place where maximum KV value is 10mb where storage and number of allowed KV requests are capped with overage charges. So it should be an easy calculation of bandwidth buffer that worker site can use and the more bandwidth the worker site uses, the more cost that’s going to incur. Developers shouldn’t have to worry about violating ToS and getting the site banned essentially destroying companies and clients especially when redeveloping worker sites to traditional deployment involves months of redevelopment of process. The answers here specified that “blogs are fine” doesn’t inspire confidence. Everyone wants their website to grow exponentially, it’s a troubling thought that website popularity means cloudflare ban for violating ToS. Why place more restrictions, ban clauses with Workers especially when it’s a paid service.
It’s not like someone would build an imgur.com clone with hotlinking for just $5. Let’s take an imaginary twitter clone with various filetypes deployed with cloudflare workers that’s rising in popularity. Below is cost analysis of extreme usage scenario for that worker site.
Cloudflare Workers with KV monthly cost: $5
KV Storage: 101 GB -> 1 GB included + 100*0.5 = $50
HTML/JS KV Reads: 20 million requests -> 10 million requests included + 10*0.5 = $5
Non-HTML media KV reads: 10 million * average of 5 MB requests -> 10*0.5 = $5 (50 TB bandwidth)
KV Writes: 6 million requests = 1 million included + 5*5 = $25
KV Deletes: 2 million kv requests = 1 million included + 1*5 = $5
Total: $95 per month
Comparing this to commercial CDN only service like BunnyCDN volume pricing: $250 per month for above bandwidth and requests/storage are included.
Obviously Cloudflare is significantly cheaper than commercial CDN, however it’s not a real world scenario where worker sites would overwhelm cloudflare servers because of non HTML content without incurring some kind of cost. Please either reduce free requests, or increase cost of requests, but do not implement ToS violation bans especially when variables like, number of requests, KV maximum filesize are well known.