Amazon CloudFront Functions is ideal for lightweight CloudFront content delivery network customization. It can run on every request to enable high scale and latency sensitive operations like HTTP header manipulations, URL rewrites/redirects, and cache key normalization. For example, you can use CloudFront Functions to rewrite requests to language specific versions of your site based on the Accept-Language header of the incoming request. You can also use CloudFront Functions to validate custom tokens to authorize incoming requests.
As these functions run at all of CloudFront’s edge locations, they can scale instantly to millions of requests per second with minimal latency overhead. It is built for lightweight HTTP(S) transformations and manipulations, allowing you to deliver richer, more personalized content with low latency to your customers.
CloudFront Functions is natively built-in to CloudFront, allowing you to easily build, test, and deploy viewer request and viewer response functions entirely within CloudFront.
Few useful sample code repository is available at https://github.com/aws-samples/amazon-cloudfront-functions
Thursday, May 13, 2021
CloudFront functions
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment