talira

Cloudflare Workers

Fast, elastic, serverless functions that scale automatically from zero to millions of requests

open coreApache-2.0self-hostablefreeMCP

Cloudflare Workers runs JavaScript, TypeScript, Python, Rust and WebAssembly on Cloudflare's network in 330+ cities, in V8 isolates with no cold starts, billed for CPU time rather than wall-clock time. Bindings connect a Worker to Cloudflare's storage and compute: KV, D1 (SQL), R2, Durable Objects, Queues, Workflows, Workers AI, Vectorize and Hyperdrive for external databases. Full-stack apps (Next.js, Astro, React Router and others) deploy with the Wrangler CLI, and the runtime, workerd, is open source.

Ways to install

Package managers

Problems it solves

  • run code at the edge close to users without managing servers
  • my serverless functions have slow cold starts
  • rewrite or redirect requests before they reach my origin server
  • a cheap API backend that scales from zero without paying for idle time
  • I don't want to pay egress fees for serving data to users
  • keep per-user state or a websocket room consistent without running a server
  • run scheduled jobs and background queues on a serverless platform
  • deploy a full-stack React or Next.js app to a global network
  • run AI inference close to users without managing GPUs
  • add auth checks or A/B tests in front of an existing site
  • test my serverless code locally with the same runtime as production
  • a free tier generous enough for a hobby API

Features

  • V8 isolates with no cold starts
  • 330+ city network
  • CPU-time billing
  • Cron Triggers
  • gradual rollouts and instant rollbacks
  • KV, D1, R2, Durable Objects, Queues bindings
  • Workflows
  • Workers AI
  • static assets
  • local dev with workerd

Ways to run it

Cloudflare Workers

Hosted by Cloudflare

Workers Free: 100,000 requests/day, 10 ms CPU per invocation; Workers Paid: $5/month minimum per account including 10M requests and 30M CPU ms, then $0.30 per million requests and $0.02 per million CPU ms; Enterprise by contract

Only in this edition

  • Cloudflare's global network
  • bindings to KV, D1, R2, Durable Objects, Queues, Workflows, Workers AI, Vectorize and Hyperdrive
  • isolation layers beyond workerd's
  • up to 5 minutes CPU per invocation on Paid

Pricing

workerd

You run it, Apache-2.0

free

Only in this edition

  • the same runtime code that powers Cloudflare Workers
  • serves a Wrangler config directly

Not included

  • a hardened sandbox: untrusted code needs your own VM or sandbox
  • most of Wrangler's config: vars, Durable Objects and migrations work, KV, cron triggers, queues and workflows only experimentally
  • Cloudflare's managed products (D1, R2, Workers AI, Vectorize, Hyperdrive) and global network

You arrange

  • your own servers (Linux with glibc 2.35 or later, macOS 13.5 or later, or Windows)
  • a process manager such as systemd
  • a VM or other sandbox if you run code you don't trust
  • storage and databases in place of KV, D1 and R2
  • load balancing across machines, and upgrades

Self-hosting docs

Capabilities

Has an APIplan not known
Has a command line toolplan not known
Has an MCP serverplan not known
Has official SDKsplan not known

Alternatives

The same job

These do what Cloudflare Workers does.

  1. AWS Lambda Serverless compute for every workload
  2. Netlify Push your ideas to the web
  3. Vercel Agentic infrastructure for shipping apps and agents
  4. Fly.io Run full-stack apps and databases close to users around the world
  5. Google Cloud Run Build apps or websites quickly on a fully managed platform
  6. Azure Functions Event-driven serverless functions on Microsoft Azure

Compare Cloudflare Workers with the top 3