Posted On: Aug 14, 2018
Lambda@Edge provides you access to various HTTP attributes such as URI, headers and query strings to customize the content delivered to your end-users. Starting today, you can also access the HTTP request body in your Lambda functions enabling you to execute custom logic and generate a response directly from the edge.
Developers typically use Web/HTML forms or Web Beacons/Bugs as a mechanism to collect data from end users and then process that data at their origins servers. With access to request body from your Lambda functions, you can now offload this logic to the edge and improve end-user latency. For example, if you have a static website with a ‘contact us’ web form, you can make a network call to an Amazon DynamoDB global table to save the data from your Lambda function. Or, if you are collecting end user behavior data through a web beacon on your website, you can directly log it to an Amazon Kinesis Firehose endpoint from the Lambda function, thereby simplifying your origin infrastructure.
There’s no additional fee for using this feature. To learn more about Lambda@Edge, visit the product page. For more information on how to use this new feature, see the following resources: