IT Pro is supported by its audience. When you purchase through links on our site, we may earn an affiliate commission. Learn more

AWS makes CloudFront Functions generally available

The serverless scripting platform allows users to run lightweight Javascript code at the edge at any scale

Edge computing connecting software and applications

CloudFront Functions, Amazon Web Service’s (AWS) new serverless scripting platform for running lightweight JavaScript code at the edge, is now generally available.

Amazon CloudFront provides customers with the ability to deliver content, such as data, videos, and APIs, securely with low latency and high speed.

To help ease complex and compute-heavy operations and customizations, AWS introduced Lambda@Edge functionality as part of Amazon CloudFront in 2017. Due to faster processing power in data centers, Lambda@Edge functions are typically executed from regional data center cache instead of edge locations.

“When you’re streaming video or audio, you can use Lambda@Edge to create and serve the right segments on-the-fly reducing the need for origin scalability,” explained Amazon.

CloudFront's second category of use cases involves handling simple HTTP(S) request/ response manipulations via short-lived functions.

The new CloudFront Functions from AWS offer the performance and speed required to process millions of requests per second. A process-based isolation model combined with specific network and file system access restrictions enables scalability. This is in stark contrast to Lamda@Edge, which relies on virtual machine-based (VM-based) isolation.

According to AWS, CloudFront Functions are best-suited for lightweight web request processing, including cache-key manipulations and normalization; URL rewrites and redirects; HTTP header manipulation; access authorization; and more.

Related Resource

Transforming business operations with AI, IoT data, and edge computing

A Pathfinder report on the ROI of AI, IoT, and edge computing

Transforming business operations with AI, IoT data, and edge computingDownload now

CloudFront Functions, like Lambda@Edge, respond to events generated by CloudFront. In particular, CloudFront Functions can be triggered upon receiving a viewer request or delivering a viewer response.

“Lambda@Edge can also be triggered before CloudFront forwards the request to the origin (origin request) and after CloudFront receives the response from the origin (origin response). You can use CloudFront Functions and Lambda@Edge together, depending on whether you need to manipulate content before, or after, being cached,” said Amazon.

Using Lambda@Edge before or after CloudFront caches content is an option if you need certain features of Lambda@Edge that aren't available in CloudFront Functions.

Featured Resources

AI for customer service

IBM Watson Assistant solves customer problems the first time

View now

Solve cyber resilience challenges with storage solutions

Fundamental capabilities of cyber-resilient IT infrastructure

Free Download

IBM FlashSystem 5000 and 5200 for mid-market enterprises

Manage rapid data growth within limited IT budgets

Free download

Leverage automated APM to accelerate CI/CD and boost application performance

Constant change to meet fast-evolving application functionality

Free Download

Recommended

2022 IBM's Security X-Force cloud threat landscape report
Whitepaper

2022 IBM's Security X-Force cloud threat landscape report

22 Nov 2022
The Total Economic Impact™ Of Turbonomic Application Resource Management
Whitepaper

The Total Economic Impact™ Of Turbonomic Application Resource Management

22 Nov 2022
Build innovation, intelligence and sustainability into your industrial processes, with the cloud
Whitepaper

Build innovation, intelligence and sustainability into your industrial processes, with the cloud

9 Nov 2022
Hybrid cloud for video surveillance
Whitepaper

Hybrid cloud for video surveillance

9 Nov 2022

Most Popular

How to boot Windows 11 in Safe Mode
Microsoft Windows

How to boot Windows 11 in Safe Mode

15 Nov 2022
The top 12 password-cracking techniques used by hackers
Security

The top 12 password-cracking techniques used by hackers

14 Nov 2022
Windows users now able to run Linux apps and distros natively
Microsoft Windows

Windows users now able to run Linux apps and distros natively

24 Nov 2022