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
Near your users, or your data
No cold starts
Infinite concurrency without the markup
First-class local development
Write in JS, TS, Python or Rust
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.
architecture
isolates
Workers You can use Workers to:
See real-world examples of Cloudflare Workers
Build scalable APIs
Deploy complete web applications
Run serverless functions at the edge
Run business logic and background jobs
Hello World to full-stack on a single integrated platform
Go beyond hello world by connecting to any resources you need — database, storage, browser rendering, images and more with a simple binding.
export default { async fetch(request, env) { const stmt = env.DB.prepare('SELECT * FROM comments LIMIT 3'); const { results } = await stmt.all();
return new Response(renderHtml(JSON.stringify(results, null, 2)), { headers: { 'content-type': 'text/html', }, }); },} satisfies ExportedHandler<Env>;