Skip to main content
Comparison

Amazon CloudFront Functions vs AWS Lambda@Edge

Compare categories, runtimes, pricing, regions, infrastructure, and platform trade-offs.

Comparison space

Updated

Comparison facts

Platform

Hosting model
Managed
Supported
Managed
Supported
Services
CDN
Supported
CDN
Supported
Edge Functions
Supported
Edge Functions
Supported
Key-Value Store
Supported
Key-Value Store
Not supported
Workloads
Edge Request Processing
Supported
Edge Request Processing
Supported
Capabilities
Compute Autoscaling
Supported
Compute Autoscaling
Supported

Development & Execution

Runtimes
Node.js
Not supported
Node.js
Supported
V8 Isolates
Supported
V8 Isolates
Not supported
Languages
JavaScript
Supported
JavaScript
Supported
Python
Not supported
Python
Supported
TypeScript
Not supported
TypeScript
Supported
Triggers
Edge Events
Supported
Edge Events
Supported
HTTP Requests
Supported
HTTP Requests
Supported

Pricing

Billing basis
Resource based Amazon CloudFront Functions Usage
Resource based AWS Lambda@Edge Usage
Requests / executions
  • CloudFront Functions invocations — $0.10 · per 1 million invocations
  • Lambda@Edge requests — $0.60 · per 1 million requests
Compute
Unknown
  • Lambda@Edge duration — $0.00000625125 · per 128 MB-second
Free entry / commitment
Recurring free allowances
Lambda@Edge is billed by request and execution duration CloudFront distribution, request, and data-transfer charges remain separate.

Infrastructure & Availability

Execution & locality
  • Execution: Edge
  • Scope: Global
  • Execution: Edge
  • Scope: Global
Provider / network
  • Amazon Web Services
  • Amazon Web Services
Availability footprint
  • 750+ PoPs
Unknown

Resource & Execution Limits

CPU / execution time
Submillisecond Per invocation
30 seconds Per invocation
Memory
2 MB Per function
128 MB / 10,240 MB Viewer events / origin events
Code / package size
Unknown
50 MB compressed Per function

Security & Compliance

Access & identity
Access Control
AWS IAM for function management
IAM permissions, execution roles, and service-linked roles Lambda@Edge
Audit Logging
CloudTrail management events and CloudWatch function logs Edge request logs are best effort
CloudTrail management events and CloudWatch edge logs Edge logs are best effort
Encryption & secrets
Encryption
Function code, configuration, and key-value data at rest and in transit CloudFront Functions and KVS
Unknown
Network isolation & protection
Network Isolation
Dedicated process and CPU; data cleared between executions Per edge location
Unknown
Assurances & programs
HIPAA
HIPAA-eligible service AWS BAA and customer controls required
Unknown
SOC Reports
SOC 1, SOC 2, SOC 3 Amazon CloudFront service scope
Unknown