substitutefor

service · Q1289

Cloudflare Workers

Serverless application platform with static assets, constrained runtimes and request/CPU-based usage accounting.

Suggest a correction

Overview

Cloudflare Workers is a serverless platform for application code and static frontend assets on Cloudflare's network. It supports full-stack workflows without a customer-managed server, but runtime compatibility, routing order and resource limits matter. Static delivery and code execution can have different billing and availability behavior.[1][2][3][4]

Serverless code and static assets

Cloudflare Workers is a serverless application platform operating across Cloudflare's network. It can deliver static frontend assets alongside dynamic request handling, rather than requiring a separate static-hosting product for every application. This is a managed execution model, not unrestricted access to a conventional server operating system.[1][2][3]

Static assets normally take precedence over Worker code when a matching asset exists. Selective or universal Worker-first routing can change that order. The distinction is important for authentication and logging: putting a check in code does not protect an asset if requests reach the asset before that code runs.[2][5]

Runtime compatibility

Workers provides a subset of Node.js APIs, combining native implementations with compatibility shims. Some shimmed modules can be imported but throw errors when their methods are called. An npm package that installs or imports successfully is therefore not proof that its complete runtime behavior is supported.[3]

The Node.js compatibility defaults depend on the configured compatibility date. Current documentation enables the compatibility behavior by default for dates from August 4, 2026, while older supported dates can require explicit flags. Migration should consider the project's actual date and dependencies rather than applying an old setup rule to every Worker.[3]

Resource and billing model

Workers separates request usage and CPU time from wall-clock duration. The Free plan lists 100,000 requests per day and a 10-millisecond CPU allowance per invocation. The runtime's 128 MB memory limit is per isolate, which can handle multiple requests, rather than an independent allocation for each incoming request.[4][6]

Direct static-asset requests are ordinarily free, while requests that invoke the Worker use its billing model. The pricing guide separately qualifies traffic served through Workers Caching as billable requests, including applicable static-asset traffic. On the Free plan, Worker-first routes that exceed request quota return an error instead of automatically falling back to the static asset.[4][7]

Static-asset limits include 20,000 files per Worker version on Free and 100,000 on paid plans, with a 25 MiB individual-file limit. A higher request allowance or paid compute plan should not be treated as removing all packaging and runtime constraints.[6]

Substitution considerations

Capabilities & limitations

Static plus dynamic hosting

supported

Assets and serverless request handlers can share a project.[1][2]

Build full-stack sites · Web · Provider network, account plan and regional availability apply

2 sources · check evidence
https://developers.cloudflare.com/workers/

Serverless applications across Cloudflare network

vendor · checked 2026-10-06
https://developers.cloudflare.com/workers/static-assets/

Assets and dynamic code, asset-first or selective Worker-first routing

vendor · checked 2026-10-06

Node.js packages

limited

Some APIs are partial or throwing shims; defaults depend on compatibility date.[3]

Reuse Node-oriented dependencies · Web · Provider network, account plan and regional availability apply

1 source · check evidence
https://developers.cloudflare.com/workers/runtime-apis/nodejs/

Subset/stubs and compatibility-date-dependent defaults

vendor · checked 2026-10-06

Protected static routing

limited

Asset-first routing must change when code must authenticate first.[2][5]

Protect frontend assets · Web · Provider network, account plan and regional availability apply

2 sources · check evidence
https://developers.cloudflare.com/workers/static-assets/

Assets and dynamic code, asset-first or selective Worker-first routing

vendor · checked 2026-10-06
https://developers.cloudflare.com/workers/static-assets/migration-guides/migrate-from-pages/

Routing order, functions conversion, asset exposure and DNS distinctions

vendor · checked 2026-10-06

Free runtime resources

limited

Daily requests, per-invocation CPU and per-isolate memory are bounded.[4][6]

Estimate workload fit · Web · Provider network, account plan and regional availability apply

2 sources · check evidence
https://developers.cloudflare.com/workers/platform/limits/

CPU versus wall duration, 128 MB isolate memory, assets file limits

vendor · checked 2026-10-06
https://developers.cloudflare.com/workers/platform/pricing/

Free/paying request and CPU models; Workers Caching exception for static request billing

vendor · checked 2026-10-06

Static billing

limited

Direct assets differ from Worker execution and Workers Caching requests.[4][7]

Assess hosting cost model · Web · Provider network, account plan and regional availability apply

2 sources · check evidence
https://developers.cloudflare.com/workers/platform/pricing/

Free/paying request and CPU models; Workers Caching exception for static request billing

vendor · checked 2026-10-06
https://developers.cloudflare.com/workers/static-assets/billing-and-limitations/

Worker-first free-limit 429 behavior instead of asset fallback

vendor · checked 2026-10-06

Can substitute for

These are products or services this entry can replace. Check the task and limitations for each comparison.

Cloudflare Pages for Deploy static frontends with dynamic request handling

limited

Recommended new-project direction; functions, routes and custom domains need migration work.[2][5][8]

Web · Provider network, account plan and regional availability apply

Vercel for Host frontend applications and request-driven APIs

limited

Runtime compatibility, framework behavior, quotas and billing differ.[1][3][9][10]

Web · Provider network, account plan and regional availability apply

References

  1. Cloudflare Workers overview

    Serverless applications across Cloudflare network

    vendor · retrieved 2026-10-06
  2. Workers static assets

    Assets and dynamic code, asset-first or selective Worker-first routing

    vendor · retrieved 2026-10-06
  3. Workers Node.js compatibility

    Subset/stubs and compatibility-date-dependent defaults

    vendor · retrieved 2026-10-06
  4. Workers pricing

    Free/paying request and CPU models; Workers Caching exception for static request billing

    vendor · retrieved 2026-10-06
  5. Pages to Workers migration

    Routing order, functions conversion, asset exposure and DNS distinctions

    vendor · retrieved 2026-10-06
  6. Workers limits

    CPU versus wall duration, 128 MB isolate memory, assets file limits

    vendor · retrieved 2026-10-06
  7. Workers static-asset billing

    Worker-first free-limit 429 behavior instead of asset fallback

    vendor · retrieved 2026-10-06
  8. Cloudflare Pages overview

    Git/direct deployment; Workers now recommended for new projects

    vendor · retrieved 2026-10-06
  9. Vercel deployments

    Git/CLI/API preview and production deployment workflow

    vendor · retrieved 2026-10-06
  10. Vercel Functions limits

    Current duration/memory limits and beta extended duration

    vendor · retrieved 2026-10-06

Discussion & disputes

Ask about unclear claims or explain a concern with supporting sources. If you have a specific fix, suggest a correction.

No discussion yet.

Sign in with an active account to join the discussion.

Revision history

Open a revision to read an earlier version of this article.

RevisionTimestampEdit summary
13372026-10-14 02:19:57/* wbeditentity-create-item:0| */ sf:b710d377-d7fa-4513-9b71-d4eec663d3de:v1 | Add Workers with Node compatibility-date behavior, asset-first routing, shared limits and static-cache billing qualifications. | attribution: /proposals/b710d377-d7fa-4513-9b71-d4eec663d3de