Learn how to employ caching with AWS CloudFront to improve the performance of your websites, web applications, or ecommerce applications.
Overview
Syllabus
Introduction
- Increase your serverless site's performance with CloudFront
- The power of performance and caching
- Using the exercise files
- A few helpful videos to watch first
- Set up an S3 bucket for website hosting
- Deploy a website to an S3 bucket
- Verify the origin of the website files you access
- Create a CloudFront web distribution
- Verify cache usage with Chrome network monitor
- Update your DNS records to point to CloudFront
- Web applications are just interactive websites
- Setting up hosting with Amplify is setting up CloudFront
- Examine an Amplify-generated hosting setup
- Use the console and the CLI to configure your distribution
- Remember to keep verifying caching
- Remove your CloudFront distribution when you don't need it
- Cache requests to API endpoints
- Mock a GET endpoint in an API gateway
- Deploy your API and test with curl
- Create a CloudFront distribution
- Test your distribution with curl and CloudWatch
- Visualize authentication and authorization in your flow
- Create a new lambda function
- Add a lambda function to AWS
- Set up a new trust relationship for your lambda function
- Instruct CloudFront to invoke your lambda function
- Test out authentication on your CloudFront distribution
- Go further with caching
Taught by
Brett McLaughlin