🔶
Cloudfront Functions & Lambda@Edge
AWS – Customization at the Edge
- Runs part of the application logic close to the end user to minimize latency.
- Uses CloudFront distributions to deploy small functions globally.
- No infrastructure management and serverless pricing (pay per invocation).
Options in CloudFront
- CloudFront Functions – lightweight JavaScript functions for high-scale, short-duration tasks.
- Lambda@Edge – full Lambda runtime support for more complex processing at the edge.
Typical Use Cases
- Website security and privacy enforcement.
- Dynamic web application behavior at the edge.
- SEO improvements through dynamic content changes.
- Intelligent routing between origins and data centers.
- Bot mitigation and request filtering.
- Real-time image manipulation and transformation.
- A/B testing and feature rollouts.
- Authentication and authorization checks.
- User prioritization based on profile or region.
- Analytics and user behavior tracking at the edge.
🔷
AWS – CloudFront Functions🔷
AWS – Lambda@Edge🔷
CloudFront Functions vs. Lambda@Edge