Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
AmazonCloudFrontで始めるお手軽簡単CDN
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
濱田孝治
April 19, 2018
Technology
2
2.5k
AmazonCloudFrontで始めるお手軽簡単CDN
あなたのWebサイトも月◯◯円で爆速化できちゃうかも?
濱田孝治
April 19, 2018
Tweet
Share
More Decks by 濱田孝治
See All by 濱田孝治
ExpoのインダストリーブースでみたAWSが見せる製造業の未来
hamadakoji
0
250
AWS re:Invent 2025で見たGrafana最新機能の紹介
hamadakoji
0
550
re:Inventにおける製造業のこれまでとこれから
hamadakoji
0
570
クラウドとリアルの融合により、製造業はどう変わるのか?〜クラスメソッドの製造業への取組と共に〜
hamadakoji
0
550
ハノーファーメッセ2025で見た生成AI活用ユースケース.pdf
hamadakoji
1
580
OTとITが手を取り合って進める製造業DXの進め方〜食品製造業でのDX事例を元に〜
hamadakoji
2
520
Grafana MCPサーバーによるAIエージェント経由でのGrafanaダッシュボード動的生成
hamadakoji
1
2.3k
製造業における生成AI活用のユースケースと関連技術要素(RAG,MCP)の解説
hamadakoji
0
240
MCPを利用して自然言語で3Dプリントしてみよう!
hamadakoji
0
2.6k
Other Decks in Technology
See All in Technology
CDK対応したAWS DevOps Agentを試そう_20260201
masakiokuda
1
380
データの整合性を保ちたいだけなんだ
shoheimitani
8
3.2k
Kiro IDEのドキュメントを全部読んだので地味だけどちょっと嬉しい機能を紹介する
khmoryz
0
210
Embedded SREの終わりを設計する 「なんとなく」から計画的な自立支援へ
sansantech
PRO
3
2.6k
コンテナセキュリティの最新事情 ~ 2026年版 ~
kyohmizu
5
920
20260204_Midosuji_Tech
takuyay0ne
1
160
小さく始めるBCP ― 多プロダクト環境で始める最初の一歩
kekke_n
1
530
AI駆動開発を事業のコアに置く
tasukuonizawa
1
340
学生・新卒・ジュニアから目指すSRE
hiroyaonoe
2
730
22nd ACRi Webinar - NTT Kawahara-san's slide
nao_sumikawa
0
100
SRE Enabling戦記 - 急成長する組織にSREを浸透させる戦いの歴史
markie1009
0
160
Oracle Cloud Observability and Management Platform - OCI 運用監視サービス概要 -
oracle4engineer
PRO
2
14k
Featured
See All Featured
Mobile First: as difficult as doing things right
swwweet
225
10k
ラッコキーワード サービス紹介資料
rakko
1
2.3M
Building Better People: How to give real-time feedback that sticks.
wjessup
370
20k
Keith and Marios Guide to Fast Websites
keithpitt
413
23k
Bash Introduction
62gerente
615
210k
Neural Spatial Audio Processing for Sound Field Analysis and Control
skoyamalab
0
170
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
234
17k
Fireside Chat
paigeccino
41
3.8k
Raft: Consensus for Rubyists
vanstee
141
7.3k
Pawsitive SEO: Lessons from My Dog (and Many Mistakes) on Thriving as a Consultant in the Age of AI
davidcarrasco
0
67
Reflections from 52 weeks, 52 projects
jeffersonlam
356
21k
Rebuilding a faster, lazier Slack
samanthasiow
85
9.4k
Transcript
1 2 A 4 41 8/0 9 A
2 70 • 1 • 9 I • @ 2
•
4
5 1 → 3 32 ↑
6 1 → 3 1 → 5
1 → 6 32 ↑ 90 ↑ 106%↑
7 1 → 3 1 → 5
1 → 6 1 → 7 1 → 10 32 ↑ 90 ↑ 106%↑ 113%↑ 123%↑
8 Web X Y New
Industry Benchmarks for Mobile Page Speed - Think With Google https://www.thinkwithgoogle.com/marketing-resources/data-measurement/mobile-page-speed-new-industry-benchmarks/
9 1 3 32%
1 5 90% 1 6 106% 1 7 113% 1 10 123%
10
10 " !
11 ! Web
12 C F D
13 l C l l CA l F l
C l C
14 Web
15 Web 1.
16 Web 1.
17 Web 1. 2.
18 Web 1. 2.
19 Web 1. 2.
3.
21 Web 1. 2.
3.
22 Web 1. 2.
3. ! !
23
24 Web Client Internet Web App Database
25 Client Internet Web App Database •
• Akamai •CloudFront •Cloud Flare • Nginx • Apache mod_cache • APCphp • API Gateway response cache • Amazon ElastiCache • redis • Memcached • Amazon DynamoDB Accelerator DAX
26 AWSConsole Amazon CloudFront Edge
27 CDN CloudFront
28 CDN CloudFront
29 CDN ! $"% # CloudFront
&
30 Web 1. 2.
3. ! !
31 Web 1. 2.
3. ! ! AmazonCloudFront
32 Amazon CloudFront
33 Amazon Cloud Front + Contents Delivery Network)CDN* % %
( ! "# $' &
34 %"Contents Delivery Network • Akamai • &
CDN $ • CloudFlare • !CDN WordPress# • Google Cloud CDN • GCP CDN
35 AmazonCloudFront41 .:2 '7( 36*58=;%%<),9 CloudFront #%&
ClientA ClientB ②%%+0 ③<) ①# ④# ⑤ ! <) '7($&"%/-
36 AmazonCloudFront&" ClientA ① DNS )$ DB '%+ *!
②IP ,xxx.cloudfront.net- )$ DB DNS ③%+Edge #( ④%+Edge CloudFront
37 AmazonCloudFront 2456 114
38
39 CloudFront ① EC2 ② EC21RDS
③ EC2RDS
40 ① ①EC2
41 ① CloudFront Client Route 53 www.example.com EC2
ELB
42 4-)① CloudFront4-5B+2C Client Route 53 www.example.com A<(#(" EC2 ELB
CloudFront '( 3 (#(". CloudFront %!& → D1*@ CloudFront!%!&) $A<(#("?, /;67> EC2D0:8 10 9=
43 ;52#① CloudFront;5<QH8R Client Route 53 www.example.com OG 1(1' CloudFront
CloudFront OG 1(1' .&"/:B !$ AN6E>P S3OG+0,#(17? @9 S3 OG+06E>PS3 IL *+2-1#MD Q3F4%# !)R=JCloudFront;5CK
44 ② ②EC2RDS
45 ② CloudFront Client Route 53 www.example.com ELB
EC2 RDS
46 0)%② CloudFront0)1 Client Route 53 www.example.com +7$$ ELB EC2
RDS CloudFront=7%+7% &; ! !8/ .5 >1:? CloudFront #%"$4( 2< 329CloudFront %$4-*6 ',
47 ③ ③EC2RDS
48 ③ CloudFront Client Route 53 www.example.com
ELB App RDS App App img wp- content/uploads/ NFS EC2
49 0)&③ CloudFront0)1 CloudFront Client :6%% *6%% ELB EC2 RDS
php jpg png js css Route 53 www.example.com S3 :6%% 5( $ S337 #&!%- 2 + *6%% " & 9/8. 4 ,'
50 ③ • WordPress& S3 #(!"$ • % )StaticPress
S3 WP Offload S3 Lite* • goofys'Linux→S3 %
51 '! ③ CloudFront'!( CloudFront Client /, $, ELB EC2
RDS S3 Route 53 www.example.com 2 S3Bucket + UploadsC S S JavaScript ◯ /wp-includes /wp-content Custom Origin WordPress*) $, HTML △0.#,1 /login.php /wp-admin Default(*) CloudFront-%"&
52
53 • CDN $%C 9 />KH • GET/HEAD/OPTION (<I •
URLB $%@L=;8F • +-!&,AF 6E"- J08F • Header / Cookie / Query Strings URL ?57 +-!&,AF '#-1 :2.G $%34D $%,*-)AF
54 %#&"*-31,%%4 • + 2 0 TTL
/( • HTTP& !!% & $& • . ')/( OK
55 *+2"03/BHO8F2!2 P • .23$ ; HeaderCookie Query Strings&13# 8F(3
M5 ;> • URL%C G *+2"03/: H • Whitelist6E '.3,284 = I %-)3&13# * +@7DE • *+ 2!2 .2 J 5?L9 M5NK9A<
56 )-1 ,2 • + . - Amazon CloudFront
• https://aws.amazon.com/jp/cloudfront/dynamic- content/ • CloudFront # %/$!1'(02 • https://docs.aws.amazon.com/ja_jp/AmazonCloudFro nt/latest/DeveloperGuide/Expiration.html • Amazon CloudFront (/ (2015"6&*) • https://dev.classmethod.jp/cloud/cloudfront-cache- control/
57
58 5;4627>-=71? 5;8/ CloudFront< IP"' *< .,CloudFront
CloudFront Client +9(!( ELB EC2 RDS CloudFront$%!&)#:0 CloudFront IP"'*<13
59 $ &#"1' CloudFront CloudFrontAWS WAF IP % ELB
EC2 RDS WAF IP % Client WAF !
60 4<3 526A.@6CB CloudFront Client CloudFront IP%9/1 ELB+ !#$(
;0 ELB EC2 RDS )7* &("'=: IP%9/1 WAF ELB !#$( IP %,>? -8''
61 1;0 3/5=928?> CloudFront( ! $:,. WAF ! $
ELB < :, CloudFront Client *6## ELB EC2 RDS CloudFront( &) +27- ! $" ' % WAF WAF &) +4! $'%" ELB < WAF
62 CloudFront
63 https://aws.amazon.com/jp/cloudfront-cdn/
64 https://aws.amazon.com/jp/cloudfront-cdn/
65 https://classmethod.jp/services/members/
66 https://classmethod.jp/services/members/
66 https://classmethod.jp/services/members/
67
68 • CDNCContents Delivery NetworkDWeb &?84/A7:<9; • Amazon
CloudFront2< @=- % -$ 3=-%-$*#+ 6> • , )"#')-(.!1 CloudFront 50 B