Bỏ qua tới nội dung
CloudDojo
Phần 2/6 · 3 phút

Các loại origin của CloudFront

0/15
Từ khóa của phần nàyChọn một từ để xem nghĩa trước khi đọc

CloudFront không lưu bản gốc của nội dung; CloudFront lấy object từ origin rồi lưu bản sao trong cache tại edge location gần người dùng.

Cơ chế cache tại edge: request đầu tiên (cache miss) được chuyển tới origin; các request tiếp theo trong thời gian TTL (cache hit) được phục vụ trực tiếp tại edge location.

gần, vài trăm kmxa hơn, tới RegionNgười dùngTP.HCMEdge location (CloudFront)cache: trốngS3 bucketSingaporeorigin
  • sẵn sàngCache tại edge location đang trống. Chọn "Người dùng mở ảnh sản phẩm".

Ngoài S3, CloudFront hỗ trợ custom origin bao gồm Application Load Balancer, EC2 instance và HTTP server on-premises. Chọn từng yêu cầu để xem kiến trúc phù hợp:

Giải pháp đề xuấtCloudFront với custom origin trỏ về on-premises

Custom origin có thể là HTTP server ngoài AWS, không yêu cầu di chuyển backend.

Ghi nhớ:
CloudFront hỗ trợ origin là S3, ALB, EC2 instance và HTTP server on-premises; ngoài việc giảm độ trễ, CloudFront giảm tải và chi phí data transfer của origin.
Part 2/6 · 3 phút

CloudFront origin types

0/15
Từ khóa của phần nàyChọn một từ để xem nghĩa trước khi đọc

CloudFront does not store the original content; it fetches objects from the origin and stores copies in the cache at edge locations near users.

How the edge cache works: the first request (cache miss) is forwarded to the origin; later requests within the TTL (cache hit) are served directly at the edge location.

gần, vài trăm kmxa hơn, tới RegionNgười dùngTP.HCMEdge location (CloudFront)cache: trốngS3 bucketSingaporeorigin
  • sẵn sàngCache tại edge location đang trống. Chọn "Người dùng mở ảnh sản phẩm".

Besides S3, CloudFront supports custom origins, including an Application Load Balancer, EC2 instances and on-premises HTTP servers. Select each requirement to see the matching architecture:

Giải pháp đề xuấtCloudFront with a custom origin pointing to on premises

A custom origin can be an HTTP server outside AWS, so the backend does not need to move.

Ghi nhớ:
CloudFront supports S3, ALB, EC2 instances and on-premises HTTP servers as origins; besides reducing latency, CloudFront reduces the load on the origin and its data transfer costs.

Kiểm tra nhanh

Trả lời để ghi nhận đã đọc phần này. Câu trả lời sai sẽ được nhắc ôn lại vào những ngày sau.

MFTECH còn một HTTP server tại data center on-premises. CloudFront có dùng server này làm origin được không?
Ngoài việc giảm độ trễ, CloudFront mang lại lợi ích gì cho origin của MFTECH?

Đã trả lời 0/2 câu