Compare Serverless Products

Estimates based on serverless:talent research team. Source: Product's Website

Topic
About Product

A "Cloudflare Worker" is JavaScript you write that runs on Cloudflare's edge. A "Cloudflare Service Worker" is specifically a worker which handles HTTP traffic and is written against the Service Worker API. Currently, this is the only kind of worker we've implemented, but in the future we may introduce other worker types for certain specialized tasks.

It can do anything and everything. You're writing code, so the possibilities are infinite. Your Service Worker will intercept all HTTP requests destined for your domain, and can return any valid HTTP response. Your worker can make outgoing HTTP requests to any server on the public internet.

Cloud Run is a managed compute platform that enables you to run containers that are invocable via requests or events. Cloud Run is serverless: it abstracts away all infrastructure management, so you can focus on what matters most — building great applications.

Pricing

1. Free plan
The Workers Free plan makes it easy to experience the Workers ecosystem without a commitment. The Free plan provides access to Workers and Worker KV, giving you the tools to start building your service. Learn about the Free plan limits.

2. Paid plan
To avoid the Free plan limits, you can subscribe to the Workers Paid plan for a minimum $5 USD per month for an account.

Google Cloud Run has it's own pricing calculator with a variety of options for those who are interested. Here.

Three different tiers, including a Free Tier, which includes:

  • ​First 180,000 vCPU-seconds free per month
  • First 360,000 GiB-seconds free per month
  • 2 million requests free per month
  • 1 GiB free egress within North America per month


Performance

Cloudflare Workers respond very quickly, typically in under 200 milliseconds, when cold starting. In contrast, both Lambda and Lambda@Edge functions can take over a second to respond from a cold start. The differences are largely due to the fact that Cloudflare Workers run on Chrome V8 rather than Node.

Onboarding

Great tutorials and accessibility, you can quickly go into production with this.

Scalability

Automatic scalability.

Regions

Servers available currently on Asia, North America and Europe. Each Cloud Run service resides in a region. Customer data associated with this service is stored in the selected region. You can serve traffic from multiple regions by configuring external HTTP(S) Load Balancing.

Backups

Includes automatic and on-demand back-ups.

Security

Includes authentication overview,, access management, ingress restriction, encryption keys and more. Mount secrets from Secret Manager. Only deploy trusted container images with Binary Authorization. Bring your own encryption keys. Container instances run in a secure sandbox isolated from other resources, with dedicated identities and permissions.

Technical Details

Cloudflare Workers are written in JavaScript, executed using the V8 JavaScript engine (from Google Chrome). It choosed JavaScript and V8 for two main reasons.

1. Security

The V8 JavaScript engine is arguably the most scrutinized code sandbox in the history of computing, and the Chrome security team is one of the best in the world. Moreover, Google pays massive bug bounties to anyone who can find a vulnerability. (That said, we have added additional layers of our own sandboxing on top of V8.)

2. Ubiquity

JavaScript is everywhere. Anyone building a web application already needs to know it: whereas their server could be written in a variety of languages, the client has to be JavaScript, because that's what browsers run.

  • Use the programming language of your choice, any language or operating system libraries, or even bring your own binaries.
  • Leverage container workflows and standards
  • Pay‐per‐use
  • Fully managed
  • Fast autoscaling
  • Integrated logging and monitoring
  • Process web traffic
  • Process asynchronous events
Supported Languages
Javascript,Python,TypeScript
Rust,Ruby on Rails,TypeScript,PHP,Javascript,Python,Go,Java