# Cloudflare Workers

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

ID: Q1289 · Revision: 1337

Type: service · License: Hosted proprietary service with Free and metered paid plans[^wpricing] · Status: active

Website: https://workers.cloudflare.com/



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\.[^workers][^wassets][^wnode][^wpricing]

## 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\.[^workers][^wassets][^wnode]

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\.[^wassets][^cpmigrate]

## 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\.[^wnode]

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\.[^wnode]

## 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\.[^wpricing][^wlimits]

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\.[^wpricing][^wassetbilling]

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\.[^wlimits]

## Substitution considerations

Workers is Cloudflare's recommended replacement direction for new workloads that might previously have used [Cloudflare Pages](/cloudflarepages)\. Existing migrations still need attention to functions, routing and domains\. The guide notes that Workers custom domains require Cloudflare\-managed nameservers, unlike the broader domain setup possible with Pages\.[^cfpages][^cpmigrate]

It also overlaps [Vercel](/vercel) for frontend hosting and request\-driven application code\. Runtime APIs, framework integration, limits and billing differ, so this is a task\-level alternative rather than an assertion that every deployment can move unchanged\.[^workers][^wassets][^wnode][^vercel][^vlimits]

## Capabilities and substitutions

### Static plus dynamic hosting — supported

Assets and serverless request handlers can share a project\.[^workers][^wassets]

Use case: Build full\-stack sites · Platforms: Web · Region: Provider network, account plan and regional availability apply

### Node\.js packages — limited

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

Use case: Reuse Node\-oriented dependencies · Platforms: Web · Region: Provider network, account plan and regional availability apply

### Protected static routing — limited

Asset\-first routing must change when code must authenticate first\.[^wassets][^cpmigrate]

Use case: Protect frontend assets · Platforms: Web · Region: Provider network, account plan and regional availability apply

### Free runtime resources — limited

Daily requests, per\-invocation CPU and per\-isolate memory are bounded\.[^wpricing][^wlimits]

Use case: Estimate workload fit · Platforms: Web · Region: Provider network, account plan and regional availability apply

### Static billing — limited

Direct assets differ from Worker execution and Workers Caching requests\.[^wpricing][^wassetbilling]

Use case: Assess hosting cost model · Platforms: Web · Region: Provider network, account plan and regional availability apply

### [Substitute for Cloudflare Pages](/cloudflarepages) — limited

Recommended new\-project direction; functions, routes and custom domains need migration work\.[^wassets][^cpmigrate][^cfpages]

Use case: Deploy static frontends with dynamic request handling · Platforms: Web · Region: Provider network, account plan and regional availability apply

### [Substitute for Vercel](/vercel) — limited

Runtime compatibility, framework behavior, quotas and billing differ\.[^workers][^wnode][^vercel][^vlimits]

Use case: Host frontend applications and request\-driven APIs · Platforms: Web · Region: Provider network, account plan and regional availability apply

## References

[^workers]: [Cloudflare Workers overview](<https://developers.cloudflare.com/workers/>) — Serverless applications across Cloudflare network (vendor; retrieved 2026-10-06T15:50:47Z)

[^wassets]: [Workers static assets](<https://developers.cloudflare.com/workers/static-assets/>) — Assets and dynamic code, asset\-first or selective Worker\-first routing (vendor; retrieved 2026-10-06T15:49:28Z)

[^wnode]: [Workers Node\.js compatibility](<https://developers.cloudflare.com/workers/runtime-apis/nodejs/>) — Subset/stubs and compatibility\-date\-dependent defaults (vendor; retrieved 2026-10-06T15:49:18Z)

[^wpricing]: [Workers pricing](<https://developers.cloudflare.com/workers/platform/pricing/>) — Free/paying request and CPU models; Workers Caching exception for static request billing (vendor; retrieved 2026-10-06T15:49:28Z)

[^cpmigrate]: [Pages to Workers migration](<https://developers.cloudflare.com/workers/static-assets/migration-guides/migrate-from-pages/>) — Routing order, functions conversion, asset exposure and DNS distinctions (vendor; retrieved 2026-10-06T15:49:57Z)

[^wlimits]: [Workers limits](<https://developers.cloudflare.com/workers/platform/limits/>) — CPU versus wall duration, 128 MB isolate memory, assets file limits (vendor; retrieved 2026-10-06T15:50:47Z)

[^wassetbilling]: [Workers static\-asset billing](<https://developers.cloudflare.com/workers/static-assets/billing-and-limitations/>) — Worker\-first free\-limit 429 behavior instead of asset fallback (vendor; retrieved 2026-10-06T15:50:47Z)

[^cfpages]: [Cloudflare Pages overview](<https://developers.cloudflare.com/pages/>) — Git/direct deployment; Workers now recommended for new projects (vendor; retrieved 2026-10-06T15:48:36Z)

[^vercel]: [Vercel deployments](<https://vercel.com/docs/deployments>) — Git/CLI/API preview and production deployment workflow (vendor; retrieved 2026-10-06T15:50:16Z)

[^vlimits]: [Vercel Functions limits](<https://vercel.com/docs/functions/limitations>) — Current duration/memory limits and beta extended duration (vendor; retrieved 2026-10-06T15:49:28Z)

Source revision: https://substitutefor.net/entities/Q1289?revision=1337
