Appearance
Lambda Function
Lambda function, as of AWS cloud naming, is a serverless approach to run code into infrastructure and manipulate data, flows, provisioning, video process and ton more.
In our cache, lambdas work as a solution to add Cache-Control headers.
Lambda Resources
Check our lambda sources in AWS Console.
CDN Lambdas will be prefixed as
CDN--xxxxx. Getting started with AWS Lambda
When to use it?
Amazon Lambda can be used for a lot of resources, and with the Lambda@Edge capability you can manage multiple CDN and multiple regions distributions with a single Function.
It can be used to modify and/or add behavior to content (body an/or header).
Example cases:
- Add
Cache-Controlheader to all origin-response requests to the CDN (so it will act in the request sent form the website and before it reaches the CDN it can be intercepted and modified to add/remove headers and content data). - Create a certificate in serverless infrastructure (run python/node code) and return final image to serve to member.
- High-scale analytics (so you dont need to build a data center to process a huge amount of data one time in the month)
- Anything you can do with code that handle content, resources (server, network) that you need. — Check out some case studies form AWS