Amazon CloudFront

Rajesh Murali Nair
3 min readApr 2, 2023

--

Amazon CloudFront is a content delivery network (CDN) service offered by Amazon Web Services (AWS). It enables businesses and developers to securely and efficiently deliver static and dynamic web content, including videos, images, applications, and APIs, to their users worldwide.

In this blog, we will provide key points on components, origins, HTTP headers etc about CloudFront with Amazon documentation page links.

Overview

  • Improves read performance, content is cached at the edge
  • Edge Locations
    1. Serve content quickly/directly to users
    2. Cache more popular content
  • Regional Edge Caches
    1. Serve content to Edge Locations
    2. Cache less popular content that might suddenly find popularity
    3. Larger cache than Edge Location (objects remain longer)
    4. Improve performance, reduce the load on your origins
    5. Dynamic content doesn’t pass through it (directly to origin)
  • CloudFront Components
    1. Distributions — Tells CloudFront where you want content to be delivered from, and the details about how to track and manage content delivery
    2. Origin — Where content resides (S3 Bucket, ALB, HTTP Server, API Gateway, etc.)
    3. Cache Behaviour — Cache Configurations (eg: Object Expiration, TTL, Cache invalidations)
  • Various origins with CloudFront distributions are
    1. S3 Bucket
    2. Application Load Balancer
    3. Lambda function URL
    4. Amazon EC2 or other custom origin
    5. Amazon CloudFront origin groups
  • Can route to different kind of origins based on the content type and based on the path pattern

--

--

No responses yet