Deploy serverless functions globally in seconds

Cloudflare Workers are fast, elastic, and serverless functions that scale automatically from zero to millions of requests.

Only pay for what you use

Pay only for execution time (CPU time), not idle time spent waiting on I/O.

Near your users, or your data

Deploy once, run in Cloudflare's 330+ cities by default, or use Smart Placement to run near your data, to minimize end-to-end latency.

No cold starts

Don't keep users waiting, or spend your time on prewarming rube-goldberg machines.

Infinite concurrency without the markup

No need to pay for pre-provisioned concurrency. Just scale up based on demand on your big launch days, no matter how many concurrent users you get.

First-class local development

Workers allows you to fully test your changes locally and allow you to get in the flow, ahead of pushing your changes with workerd, our open-source runtime.

Write in JS, TS, Python or Rust

Choose from a template in your language to kickstart building an app.

Serverless architecture, from the ground up: Isolates vs. Containers

Workers are built on unique architecture called isolates. Isolates are an order of magnitude more lightweight, which means they can easily and quickly scale up and down to meet your needs.

Traditional
architecture
Workers v8
isolates
User code
Process overhead
Background Pattern
Workers

You can use Workers to:

See real-world examples of Cloudflare Workers