One of the best new features of Cloudlare Workers recently announced revamp was the Free Tier:
We’re excited to announce that starting today, Cloudflare Workers® gets a CLI, new and improved docs, multiple scripts for everyone, the ability to run applications on workers.dev without bringing your own domain, and a free tier to make experimentation easier than ever.
However, as it is currently implemented, as soon as the account reaches one of its limits, not only does Workers stop running, but your visitors start getting a nasty 1025/1015 error page:
To the best of my knowledge, this is the only CF feature that can break a site mid-flight when a limit is reached. The only possible remedy appears to be turning the worker route off for the whole site and wait the time-out. And that can only be done, of course, when and if the site owner is aware of the limit being reached, which can happen during testing/debugging, but may as well happen only after one leaves the worker running for a period of time.
I for instance was testing a worker that applies to all files of the website, which means it runs about 45 times every time a page is requested. But after only a few refreshes, perhaps 5 in total, I was rate limited and had to turn the worker route off, lest visitors get that error page instead of my site. (There’s a limit of 100,000 requests/day for the account, and 1,000 requests/minute. Since I was far from either limit, I’m really not sure I understand how CF applies the rate limiting)
I suggest that Workers stop running for the remainder of the period after the Free Tier limit is reached, instead of breaking the site without warning. A message on the Workers tab could then let the admin know it didn’t run for the whole period due to limits being reached at times. This could lead many users testing Workers to finally adopt it on a permanent, paid basis. As it stands, the block / error message could instead alienate many potential users of the service.
Or, otherwise, it could instead be called Trial Tier. Since all other free services CF provides (and there are plenty) are not limited in a way that could make the site stop working, at least by changing the label to “Trial” it could perhaps become clearer for customers that there’s something rather different with this special tier for Workers.