AWS services
This architecture uses four new services. In this section, you will learn what these new services do, and why they address your requirements.
Other services, such as S3 or CloudFront, were already deployed previously. Refer to the previous chapters for an in-depth explanation of their functionality.
Lambda@Edge
You already learned about Lambda in other chapters, but Lambda@Edge is different. Instead of running in an AWS region, these special lambdas run at AWS edge locations when you associate them with CloudFront distributions.
The main idea behind Lambda@Edge is to bring compute capabilities closer to your users, enabling operations such as modifying requests or responses at the edge, exactly what you want to do.
Lambda@Edge functions are tightly integrated with CloudFront. The functions can be triggered in response to four types of events:
- Viewer request: This event is triggered when a viewer requests content from your CloudFront distribution...