CloudFront

Amazon CloudFront 筆記。

Overview

  • 低延遲內容交付網路
  • Content Delivery Network, CDN

Purpose

Solve Latency issue

Flow

  flowchart LR
	U[User]
	App[Application]
	CF[AWS CloudFront]
	EL[Edge Location]
	WS[Web Server]

	U <==> |Step.1| App <==> |Step.2| CF <==> |Step.3| EL <==> |if not found cached file| WS
  • Step.1: The Client requests an object (such as file) to download
  • Step.2: CloudFront connects to its nearest edge location in order to serve the user request
  • Step.3: At edge location, CloudFront looks for its requested cached file, if found the cached file, then return to client, if not, request to web server, then responds by sending the files back to CloudFront edge location

Use Case

CloudFront Use Case