Skill 1.1.11
Design edge architectures to meet latency requirements (for example, by using Amazon CloudFront Functions, Lambda@Edge).
Key Concepts
CloudFront Functions run lightweight JavaScript in every edge location on viewer request and viewer response events, with sub-millisecond execution and very low cost. They suit header manipulation, URL rewrites and redirects, cache key normalisation and simple token validation, and can read CloudFront KeyValueStore data. They have no network access and limited execution time.
Lambda@Edge runs Node.js or Python functions in Regional edge caches on viewer and origin events, with network access, larger packages and longer execution times. It suits authentication that calls an identity provider, origin selection, generating responses and image transformation. A common design combines both: CloudFront Functions for every request and Lambda@Edge only on origin events, which run only on cache misses.