Các loại origin của CloudFront
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.
- 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:
Custom origin có thể là HTTP server ngoài AWS, không yêu cầu di chuyển backend.
CloudFront origin types
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.
- 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:
A custom origin can be an HTTP server outside AWS, so the backend does not need to move.