Skip to content
Cloudflare Workers logo

Cloudflare Workers

Run code at the edge in over 300 cities, with no servers to manage.

14 votes

About Cloudflare Workers

What Cloudflare Workers is

Cloudflare Workers runs your code on Cloudflare's network rather than in a datacentre you choose. A request is handled in the city closest to the person who made it, and there is no server, container or region for you to provision.

The isolate model

The technical choice underneath everything else is that Workers uses V8 isolates rather than containers. An isolate is the same sandbox a browser tab runs JavaScript in, and starting one takes roughly five milliseconds instead of the hundreds a container needs. That is why there is no cold start problem in the usual sense, and why Cloudflare can afford to run your code in hundreds of locations instead of one.

The trade is that an isolate is not a small virtual machine. There is no filesystem, no long-lived process, and no conventional database connection pool. Code written for a server needs adapting, and libraries that reach for native modules will not load.

Storage and the wider platform

Workers on its own is compute. The surrounding products supply state: KV for eventually consistent key-value data, R2 for object storage with no egress fees, D1 for SQLite, Durable Objects for strongly consistent coordination, and Queues for asynchronous work. These attach to a Worker as bindings declared in configuration rather than as connection strings in environment variables, so a service is granted rather than discovered.

Local development

Wrangler runs the same runtime locally, which matters more than it sounds. Serverless platforms that emulate production with a different runtime produce a class of bug that only appears after deployment; here the local process is workerd, the same engine that serves the request in production.

Who it suits

Teams serving a global audience who want latency handled by the platform, and anybody building a site or API that fits the request-response shape. Applications with long-running processes, heavy per-request computation, or a hard dependency on Node internals are a poor fit.

The limit worth knowing before you start

The free plan allows 10 milliseconds of CPU per request. That is enough for routing, caching and light transformation, and it is not enough to render a substantial page. Model your real workload before committing, because the gap between the free and paid plans is the gap between a toy and a product.

Cloudflare Workers interface

Key features

  • Code runs in V8 isolates rather than containers, so a cold start is measured in milliseconds
  • Deployed to Cloudflare's network, executing in the city nearest the visitor
  • KV, R2, D1 and Durable Objects for storage, queues and coordination alongside the code
  • Wrangler for local development against the same runtime that runs in production
  • Bindings rather than connection strings, so a service is attached rather than configured
  • A free tier with a daily request allowance, useful well past a toy project

What people use it for

  • Serving a site or API close to users without running servers in each region
  • Putting logic in front of an origin: auth checks, rewrites, A/B splits
  • Building a small full-stack application with storage on one platform

Key facts

Key facts about Cloudflare Workers
CategoryDeveloper tools
PricingFreemium
Free tierYes
Upvotes14
Listed14 September 2026

Questions

What are the real limits of the free plan?

A daily request allowance and, more importantly, 10 milliseconds of CPU time per request. That second one catches people out: an application doing meaningful work per request will exceed it and return errors under load, and no amount of optimisation fixes a render that genuinely costs 90 milliseconds. The paid plan raises the CPU ceiling substantially and is the point at which Workers becomes viable for a real application.

Can I run any Node.js code on it?

Not quite. The runtime is V8 with a growing Node compatibility layer rather than Node itself, so packages that reach for native modules, the filesystem or long-lived TCP connections need alternatives. Most web frameworks now have adapters, and the compatibility flags cover the common cases, but check anything that talks to a database directly.

How does it connect to a normal database?

Through Hyperdrive, which pools and caches connections at the edge, or through a database with an HTTP API. A Worker cannot hold a conventional connection pool because instances are short-lived and numerous, which is the main architectural difference from a long-running server.

Summarise with AI

Is this your product?

Claim the listing to correct anything wrong with it, add features and a changelog, and answer questions from people deciding whether to try it. Free, and it stays yours.

Claim this listing
  • Errors with the stack trace, the release and the user who hit them.

    Freemium
  • Autocomplete and chat wherever you already write code.

    Paid
  • Deploy a frontend by pushing to a branch, and get a URL per pull request.

    Freemium
  • Postgres with auth, storage and realtime attached, and no lock-in.

    Freemium

Best developer tools, ranked

Nobody from Cloudflare Workers has claimed this listing. We wrote it from their own website. Work there? Claim it.