Amazon Cloudfront Functions compared to Cloudflare Workers

Amazon Cloudfront Functions
Versus
Cloudflare Workers

Features

Edge Features of Amazon Cloudfront Functions compared to Cloudflare Workers
Amazon Cloudfront FunctionsFeaturesCloudflare Workers
Functions / Serverless
JavaScript, Go, C/++, .NET, Node.js, PHP, Python, RubyFunctions supported languagesjavascript, rust, C/++
Worker.js Environment
Yes, through EC2 Container Registry (ECR)Docker support
Docker private registry
Kubernetes support
Managed Kubernetes
All POPs connected to your Cloudfront propertyAvailability regions200 pops
128Default Memory (MB)128
3008Maximum Memory (MB)128
3,000Execution Time (ms)10
900,000Maximum Execution Time (ms)50
6Request Payload (MB)
6Response Payload (MB)
Unsupported Paid Feature Supported Unknown

Descriptions


Amazon Cloudfront Functions


Amazon Cloudfront Function introduces cloud computing to every CloudFront pop around the globe.

Amazon Cloudfront Functions differs from Amazon’s Lambda@Edge because CloudFront’s servers have been located traditionally at the edges of Amazon’s gigantic global network of servers. This means CloudFront functions will run closer to the end-user than traditional Lambda’s, which usually run within customers' own VPN or behind loadbalancers.

With this change in approach, Amazon hopes to even further play into the serverless space that is to become the future of IaaS or Serverless as a Service.

Given Amazon’s massive reach and the tremendously popular CloudFront product, this will surely be a success going forward. Perhaps even replacing Amazon’s Lambda@Edge in the long term?


Cloudflare Workers


Continuing their ongoing efforts to improve the internets global state, Cloudflare started to allow compute at their edge, eventually and essentially becoming a serverless/edge compute provider.

Cloudflare has an impressive global network presence and an even more impressive rate of pushing (open source or free) products to the market.

Unique about Workers is Key Value storage. Cloudflare’s low latency KV data store, optimized for high reads, low writes.

With a rich amount of example code to start out in your code of preference right away!