Interview Prep/AWS/DNS, CDN and Messaging

CloudFront Functions vs Lambda@Edge?

AdvancedConceptDNS, CDN and Messaging
Answer

CloudFront Functions: JavaScript, run at the edge location itself, sub-millisecond, viewer request/response events only, no network or file access; for header manipulation, redirects, URL rewrites, simple auth. Lambda@Edge: Node.js/Python, runs in regional edge caches, supports all four events (viewer and origin request/response), network access and longer execution; created in us-east-1 and replicated.

Use Functions by default; Lambda@Edge when you need to call out or manipulate bodies.

aws All AWS questions Roadmap: AWS core services

More on DNS, CDN and Messaging