SlideShare a Scribd company logo
CloudFront CDN로 동적 컨텐츠를 사용하는 4가지
이유
김일호 | Solutions Architect
Do you know CloudFront support
Dynamic content acceleration?
No reasons not to use~
1. Simple configuration
2. DDoS Mitigation + WAF
3. Cost Saving
4. Speed up
Configure multiple origins
Elastic Load Balan
cing
Dynamic content
Amazon EC2
Static content
Amazon S3
* (default)
/error/*
/assets/*
Amazon CloudFront
example.com
CloudFront Behaviors
CloudFront
Customer	Location
www.mysite.com
Path	Pattern	Matching
/*.jpg;	/*.php etc.
GET	http://mysite.com/images/1.jpg	to	ORIGIN	A
GET	http://mysite.com/index.phpto	ORIGIN	B
GET	http://mysite.com/web/home.css	to	ORIGIN	C
GET	http://mysite.com/*	(DEFAULT)	to	ORIGIN	D
Origin	A:	S3	bucket
Origin	B:	www.mysite
.com
Origin	C:	S3	Bucket
Origin	D:	www.mysite
.com
Path	Pattern	Matching
/*.php
/images/*.jpg
/web/*.css
/*.*	(DEFAULT)
CloudFront Behaviors at console
1. Simple configuration
2. DDoS Mitigation + WAF
3. Cost Saving
4. Speed up
AWS Global Presence and Redundancy
Route A
Route B
Route C
CloudFront
Country	B
Country	A
Country	C
CloudFront
Valid
Object	Request
Invalid
Protocol
Invalid
Object	Request
Internet
Connection	C
Internet
Connection A
Internet
Connection	B
Your VPC only has to deal with layer 7 traffic
CloudFront
DDoS
HTTP
SYN	/	UDP
HTTP Customer
Solution
80%	of	DDoS traffic	is	
L3/L4	flood	attack
20%	is	DDoS attack	is	
valid	HTTP	requests.
WAF(Web Application Firewall)
Match any part of the web request
Host:	www.example.com
User-Agent:	Mozilla/5.0	(Macintosh;	…
Accept:	image/png,image/*;q=0.8,*/*;q=0.5
Accept-Language:	en-US,en;q=0.5
Accept-Encoding:	gzip,	deflate
Referrer:	http://www.example.com/
Connection:	keep-alive
AWS
WAF
RAW request headers
CloudFront
Check:	Header	“Referrer”
Match	Type:	Contains
Match:	“example.com”
Action:	ALLOW
Rule
String match condition
Good users
WAF(Web Application Firewall)
Use transforms to stop evasion
Host:	www.example.com
User-Agent:	badbot
Accept:	image/png,image/*;q=0.8,*/*;q=0.5
Accept-Language:	en-US,en;q=0.5
Accept-Encoding:	gzip,	deflate
Referrer:	http://www.example.com/
Connection:	keep-alive
AWS
WAF
RAW request headers
CloudFront
Check:	Header	“User-Agent”
Match	Type:	Contains
Match:	“badbot”
Action:	BLOCK
Rule
String match condition
Scraper bot
WAF(Web Application Firewall)
Use transforms to stop evasion
Host:	www.example.com
User-Agent:	bAdBoT
Accept:	image/png,image/*;q=0.8,*/*;q=0.5
Accept-Language:	en-US,en;q=0.5
Accept-Encoding:	gzip,	deflate
Referrer:	http://www.InTeRnEtkItTiEs.com/
Connection:	keep-alive
RAW request headers
Check:	Header	“User-Agent”
Transform:	To	lower
Match	Type:	Contains
Match:	“badbot”
Action:	BLOCK
Rule
String match condition
AWS
WAF
CloudFrontScraper bot
1. Simple configuration
2. DDoS Mitigation + WAF
3. Cost Saving
4. Speed up
Lower traffic cost
Amazon CloudFront
Region
Amazon S3
bucket
Custom origin
$$
$$
$ Free
Note:	Cost	will	vary	depending	on	CFRC(CloudFront Reserved	Capacity)
1. Simple configuration
2. DDoS Mitigation + WAF
3. Cost Saving
4. Speed up
example.com
Clients
Clients
Clients
Clients
Clients
Clients
Two Users without CloudFront
SYN
SYN-ACK
ACK
GET	/index.jsp
ACK
SYN-ACK
GET	/index.jsp
2nd User
Region
SYN
90ms
360ms
360ms
Without Keep-Alive Connections
• Load	on	your	web	server	increases	the	time	
to	first	byte
TTFB(Time to First Byte)DNS Lookup
Connection ContentDownload
SYN
SYN-ACK
ACK
GET	/index.jsp
GET	/index.jsp
Keep Alive Connections
2nd Request
CloudFront Keep Alive
SYN
SYN-ACK
ACK
GET	/index.jsp
ACK
SYN-ACK
GET	/index.jsp
Region
SYN
30ms
SYN
SYN-ACK
ACK
GET	/index.jsp
GET	/index.jsp
60ms
2nd User
360ms
180ms
5. Shield Origin contents
Access control: Restricting origin access
§Amazon S3
§Origin Access Identify (OAI)
• Prevents direct access to your Amazon
S3 bucket
• Ensure performance benefits to all
customers
§Custom origin
§Block by IP address
• Whitelist only the Amazon CloudFront
IP Range
• Protects origin from overload
• Ensure performance benefits to all
customers
Object Access Identity (OAI)
• Ensure only Amazon CloudFront
can access Amazon S3 bucket
• We make it simple for you
Amazon CloudFront
Region
Amazon S3
bucket
Custom origin
Object Access Identity (OAI)
• Ensure only Amazon CloudFront
can access Amazon S3 bucket
• We make it simple for you
Amazon CloudFront
Region
Amazon S3
bucket
Custom origin
Shield custom origin
• Shield your custom origin
• Whitelist Amazon CloudFront IP range
Amazon CloudFront
Region
Amazon S3
bucket
Custom Origin
Shield custom origin
• Shield your custom origin
• Whitelist Amazon CloudFront IP range
Amazon CloudFront
Region
Amazon S3
bucket
Custom origin
Shield custom origin
• Subscribe to Amazon SNS notifications on changes to
IP ranges
• Automatically update security groups
AWS Lambda
Amazon CloudFront
Amazon SNS
Security group
Web app
server
Web app
server
AWS IP ranges
Update IP range
SNS message

More Related Content

PDF
AWS 클라우드 비용 최적화를 위한 TIP - 임성은 AWS 매니저
PDF
Amazon DocumentDB vs MongoDB 의 내부 아키텍쳐 와 장단점 비교
PDF
데이터 분석가를 위한 신규 분석 서비스 - 김기영, AWS 분석 솔루션즈 아키텍트 / 변규현, 당근마켓 소프트웨어 엔지니어 :: AWS r...
PDF
내 서비스에는 어떤 데이터베이스가 맞는걸까? - 이혁 AWS 솔루션즈 아키텍트 :: AWS Summit Seoul 2021
PDF
Amazon DynamoDB 키 디자인 패턴
PDF
7. 게임 스트리밍 서비스를 위한 아키텍처 - 언리얼 엔진을 중심으로! [레벨 300] - 발표자: 하흥수, 솔루션즈 아키텍트, AWS :...
PDF
아마존의 관리형 게임 플랫폼 활용하기: GameLift (Deep Dive) :: 구승모 솔루션즈 아키텍트 :: Gaming on AWS ...
PPTX
OpsNow를 활용한 AWS Cloud 비용 최적화 전략
AWS 클라우드 비용 최적화를 위한 TIP - 임성은 AWS 매니저
Amazon DocumentDB vs MongoDB 의 내부 아키텍쳐 와 장단점 비교
데이터 분석가를 위한 신규 분석 서비스 - 김기영, AWS 분석 솔루션즈 아키텍트 / 변규현, 당근마켓 소프트웨어 엔지니어 :: AWS r...
내 서비스에는 어떤 데이터베이스가 맞는걸까? - 이혁 AWS 솔루션즈 아키텍트 :: AWS Summit Seoul 2021
Amazon DynamoDB 키 디자인 패턴
7. 게임 스트리밍 서비스를 위한 아키텍처 - 언리얼 엔진을 중심으로! [레벨 300] - 발표자: 하흥수, 솔루션즈 아키텍트, AWS :...
아마존의 관리형 게임 플랫폼 활용하기: GameLift (Deep Dive) :: 구승모 솔루션즈 아키텍트 :: Gaming on AWS ...
OpsNow를 활용한 AWS Cloud 비용 최적화 전략

What's hot (20)

PDF
AWS 클라우드 기반 게임 아키텍처 사례 - AWS Summit Seoul 2017
PDF
ビッグデータサービス群のおさらい & AWS Data Pipeline
PDF
AWS 클라우드 서비스 소개 및 사례 (방희란) - AWS 101 세미나
PDF
Amazon EKS로 간단한 웹 애플리케이션 구축하기 - 김주영 (AWS) :: AWS Community Day Online 2021
PDF
Amazon Redshift로 데이터웨어하우스(DW) 구축하기
PDF
CloudWatch 성능 모니터링과 신속한 대응을 위한 노하우 - 박선용 솔루션즈 아키텍트:: AWS Cloud Track 3 Gaming
PPTX
[DevGround] 린하게 구축하는 스타트업 데이터파이프라인
PDF
20200811 AWS Black Belt Online Seminar CloudEndure
PDF
Developing .NET 6 Blazor WebAssemby apps with Radzen Blazor component library...
PDF
実録Blue-Green Deployment導入記
PDF
KINX와 함께 하는 AWS Direct Connect 도입 - 남시우 매니저, KINX :: AWS Summit Seoul 2019
PDF
효과적인 NoSQL (Elasticahe / DynamoDB) 디자인 및 활용 방안 (최유정 & 최홍식, AWS 솔루션즈 아키텍트) :: ...
PDF
20190129 AWS Black Belt Online Seminar AWS Identity and Access Management (AW...
PPTX
PDF
AWS 기반 클라우드 아키텍처 모범사례 - 삼성전자 개발자 포털/개발자 워크스페이스 - 정영준 솔루션즈 아키텍트, AWS / 유현성 수석,...
PDF
아키텍처 현대화 분야 신규 서비스 - 주성식, AWS 솔루션즈 아키텍트 :: AWS re:Invent re:Cap 2021
PDF
[AWS Hero 스페셜] Amazon Personalize를 통한 개인화/추천 서비스 개발 노하우 - 소성운(크로키닷컴) :: AWS C...
PDF
Internal Architecture of Amazon Aurora (Level 400) - 발표자: 정달영, APAC RDS Speci...
PDF
20190130 AWS Black Belt Online Seminar AWS Identity and Access Management (AW...
PDF
20190911 AWS Black Belt Online Seminar AWS Batch
AWS 클라우드 기반 게임 아키텍처 사례 - AWS Summit Seoul 2017
ビッグデータサービス群のおさらい & AWS Data Pipeline
AWS 클라우드 서비스 소개 및 사례 (방희란) - AWS 101 세미나
Amazon EKS로 간단한 웹 애플리케이션 구축하기 - 김주영 (AWS) :: AWS Community Day Online 2021
Amazon Redshift로 데이터웨어하우스(DW) 구축하기
CloudWatch 성능 모니터링과 신속한 대응을 위한 노하우 - 박선용 솔루션즈 아키텍트:: AWS Cloud Track 3 Gaming
[DevGround] 린하게 구축하는 스타트업 데이터파이프라인
20200811 AWS Black Belt Online Seminar CloudEndure
Developing .NET 6 Blazor WebAssemby apps with Radzen Blazor component library...
実録Blue-Green Deployment導入記
KINX와 함께 하는 AWS Direct Connect 도입 - 남시우 매니저, KINX :: AWS Summit Seoul 2019
효과적인 NoSQL (Elasticahe / DynamoDB) 디자인 및 활용 방안 (최유정 & 최홍식, AWS 솔루션즈 아키텍트) :: ...
20190129 AWS Black Belt Online Seminar AWS Identity and Access Management (AW...
AWS 기반 클라우드 아키텍처 모범사례 - 삼성전자 개발자 포털/개발자 워크스페이스 - 정영준 솔루션즈 아키텍트, AWS / 유현성 수석,...
아키텍처 현대화 분야 신규 서비스 - 주성식, AWS 솔루션즈 아키텍트 :: AWS re:Invent re:Cap 2021
[AWS Hero 스페셜] Amazon Personalize를 통한 개인화/추천 서비스 개발 노하우 - 소성운(크로키닷컴) :: AWS C...
Internal Architecture of Amazon Aurora (Level 400) - 발표자: 정달영, APAC RDS Speci...
20190130 AWS Black Belt Online Seminar AWS Identity and Access Management (AW...
20190911 AWS Black Belt Online Seminar AWS Batch
Ad

Similar to CloudFront로 동적 컨텐츠를 전송하는 네가지 이유 - 김일호 솔루션즈 아키텍트:: AWS Cloud Track 3 Gaming (20)

PDF
CloudFront 소개 및 데모 – 이수형 수석 (Solutions Architect), 아마존웹서비스코리아
PPTX
Aws object storage and cdn(s3, glacier and cloud front) part 2
PPTX
AWS를 활용한 미디어 스트리밍 서비스
PPTX
Journey through Cloud front AWS
DOCX
Configure Amazon cloud front
PPTX
Amazon CloudFront
PPTX
AWS Cloudfront Fundamentals
PDF
Amazon Web Services Amazon: Amazon Content Delivery.pdf
PPTX
Content Delivery Using Amazon CloudFront
PDF
AWS webinar - optimize your aws data transfer out for cost and performance.
PDF
Improve Page Render Time with Amazon Cloudfront
PPTX
Using Amazon CloudFront for Improved Response Time
PPTX
Aws object storage and cdn(s3, glacier and cloud front) part 3
PDF
Amazon CloudFront Complete with Blazeclan's Media Solution Stack
PDF
AWS Pop-up Loft Berlin: Cache is King - Running Lean Architectures: Optimizin...
PPTX
Speeding up delivery of web content using Amazon Route 53, Elastic Load Balan...
PDF
Cloud CDN User Manual Guide
PPT
Cloud CDN Hosting
PDF
AWS Edge Media Services
PPTX
Aws overview part 1(iam and storage services)
CloudFront 소개 및 데모 – 이수형 수석 (Solutions Architect), 아마존웹서비스코리아
Aws object storage and cdn(s3, glacier and cloud front) part 2
AWS를 활용한 미디어 스트리밍 서비스
Journey through Cloud front AWS
Configure Amazon cloud front
Amazon CloudFront
AWS Cloudfront Fundamentals
Amazon Web Services Amazon: Amazon Content Delivery.pdf
Content Delivery Using Amazon CloudFront
AWS webinar - optimize your aws data transfer out for cost and performance.
Improve Page Render Time with Amazon Cloudfront
Using Amazon CloudFront for Improved Response Time
Aws object storage and cdn(s3, glacier and cloud front) part 3
Amazon CloudFront Complete with Blazeclan's Media Solution Stack
AWS Pop-up Loft Berlin: Cache is King - Running Lean Architectures: Optimizin...
Speeding up delivery of web content using Amazon Route 53, Elastic Load Balan...
Cloud CDN User Manual Guide
Cloud CDN Hosting
AWS Edge Media Services
Aws overview part 1(iam and storage services)
Ad

More from Amazon Web Services Korea (20)

PDF
[D3T1S01] Gen AI를 위한 Amazon Aurora 활용 사례 방법
PDF
[D3T1S06] Neptune Analytics with Vector Similarity Search
PDF
[D3T1S03] Amazon DynamoDB design puzzlers
PDF
[D3T1S04] Aurora PostgreSQL performance monitoring and troubleshooting by use...
PDF
[D3T1S07] AWS S3 - 클라우드 환경에서 데이터베이스 보호하기
PDF
[D3T1S05] Aurora 혼합 구성 아키텍처를 사용하여 예상치 못한 트래픽 급증 대응하기
PDF
[D3T1S02] Aurora Limitless Database Introduction
PDF
[D3T2S01] Amazon Aurora MySQL 메이저 버전 업그레이드 및 Amazon B/G Deployments 실습
PDF
[D3T2S03] Data&AI Roadshow 2024 - Amazon DocumentDB 실습
PDF
AWS Modern Infra with Storage Roadshow 2023 - Day 2
PDF
AWS Modern Infra with Storage Roadshow 2023 - Day 1
PDF
사례로 알아보는 Database Migration Service : 데이터베이스 및 데이터 이관, 통합, 분리, 분석의 도구 - 발표자: ...
PDF
Amazon DocumentDB - Architecture 및 Best Practice (Level 200) - 발표자: 장동훈, Sr. ...
PDF
Amazon Elasticache - Fully managed, Redis & Memcached Compatible Service (Lev...
PDF
[Keynote] 슬기로운 AWS 데이터베이스 선택하기 - 발표자: 강민석, Korea Database SA Manager, WWSO, A...
PDF
Demystify Streaming on AWS - 발표자: 이종혁, Sr Analytics Specialist, WWSO, AWS :::...
PDF
Amazon EMR - Enhancements on Cost/Performance, Serverless - 발표자: 김기영, Sr Anal...
PDF
Amazon OpenSearch - Use Cases, Security/Observability, Serverless and Enhance...
PDF
Enabling Agility with Data Governance - 발표자: 김성연, Analytics Specialist, WWSO,...
PDF
Amazon Redshift Deep Dive - Serverless, Streaming, ML, Auto Copy (New feature...
[D3T1S01] Gen AI를 위한 Amazon Aurora 활용 사례 방법
[D3T1S06] Neptune Analytics with Vector Similarity Search
[D3T1S03] Amazon DynamoDB design puzzlers
[D3T1S04] Aurora PostgreSQL performance monitoring and troubleshooting by use...
[D3T1S07] AWS S3 - 클라우드 환경에서 데이터베이스 보호하기
[D3T1S05] Aurora 혼합 구성 아키텍처를 사용하여 예상치 못한 트래픽 급증 대응하기
[D3T1S02] Aurora Limitless Database Introduction
[D3T2S01] Amazon Aurora MySQL 메이저 버전 업그레이드 및 Amazon B/G Deployments 실습
[D3T2S03] Data&AI Roadshow 2024 - Amazon DocumentDB 실습
AWS Modern Infra with Storage Roadshow 2023 - Day 2
AWS Modern Infra with Storage Roadshow 2023 - Day 1
사례로 알아보는 Database Migration Service : 데이터베이스 및 데이터 이관, 통합, 분리, 분석의 도구 - 발표자: ...
Amazon DocumentDB - Architecture 및 Best Practice (Level 200) - 발표자: 장동훈, Sr. ...
Amazon Elasticache - Fully managed, Redis & Memcached Compatible Service (Lev...
[Keynote] 슬기로운 AWS 데이터베이스 선택하기 - 발표자: 강민석, Korea Database SA Manager, WWSO, A...
Demystify Streaming on AWS - 발표자: 이종혁, Sr Analytics Specialist, WWSO, AWS :::...
Amazon EMR - Enhancements on Cost/Performance, Serverless - 발표자: 김기영, Sr Anal...
Amazon OpenSearch - Use Cases, Security/Observability, Serverless and Enhance...
Enabling Agility with Data Governance - 발표자: 김성연, Analytics Specialist, WWSO,...
Amazon Redshift Deep Dive - Serverless, Streaming, ML, Auto Copy (New feature...

Recently uploaded (20)

PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PDF
Modernizing your data center with Dell and AMD
PDF
Empathic Computing: Creating Shared Understanding
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
DOCX
The AUB Centre for AI in Media Proposal.docx
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
Review of recent advances in non-invasive hemoglobin estimation
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PPTX
Big Data Technologies - Introduction.pptx
Advanced methodologies resolving dimensionality complications for autism neur...
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Dropbox Q2 2025 Financial Results & Investor Presentation
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
Modernizing your data center with Dell and AMD
Empathic Computing: Creating Shared Understanding
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Unlocking AI with Model Context Protocol (MCP)
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
The AUB Centre for AI in Media Proposal.docx
Chapter 3 Spatial Domain Image Processing.pdf
Building Integrated photovoltaic BIPV_UPV.pdf
Review of recent advances in non-invasive hemoglobin estimation
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
20250228 LYD VKU AI Blended-Learning.pptx
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
The Rise and Fall of 3GPP – Time for a Sabbatical?
Big Data Technologies - Introduction.pptx

CloudFront로 동적 컨텐츠를 전송하는 네가지 이유 - 김일호 솔루션즈 아키텍트:: AWS Cloud Track 3 Gaming