News for hackers. Stuff that matters.
Re:Unpacking Cloudflare Workers CPU Performance Benchmarks by csomar on Wednesday October 15, 2025 @05:52AM (#45590128)
I didn't find it hard to migrate. Pages are workers, so might as well just use a worker.
Re:Unpacking Cloudflare Workers CPU Performance Benchmarks by __jonas on Wednesday October 15, 2025 @07:31AM (#45590836)
Just to note because I was confused by this:

I was under the impression that workers are just lambda functions, and therefore would fall under different billing rules than pages which serve static files (with unlimited bandwidth).

But workers apparently have a 'Static Assets' feature that just serves static assets (like pages) and comes with free unlimited requests, unlike worker function invocations, so as you say it seems to be essentially the same as pages.

https://developers.cloudflare.com/workers/static-assets/

Re:Unpacking Cloudflare Workers CPU Performance Benchmarks by csomar on Wednesday October 15, 2025 @07:40AM (#45590902)
What I meant the same as worker, is that under the hood, pages are just workers. The Static Assets feature was probably added because the by-request billing wouldn't make any sense for static assets.
Re:Unpacking Cloudflare Workers CPU Performance Benchmarks by kelvinjps10 on Wednesday October 15, 2025 @06:16AM (#45590280)
It's hard if you don't use a JavaScript based SSG, well I didn't find how to do it with Hugo so I'll stay in cloudfare pages
Re:Unpacking Cloudflare Workers CPU Performance Benchmarks by csomar on Wednesday October 15, 2025 @06:45AM (#45590479)
Generate the files locally and then push them to the worker? Even with a JS based SSG that's the only way to do it and the difference between worker and pages. (workers have no build step)