๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ
๐Ÿ’ก์•Œ์“ธ์‹ ์žก

์•Œ์“ธ์‹ ์žก(3) - ํ์‡„๋ง์—์„œ CloudFront ์‚ฌ์šฉ ํ•˜๊ธฐ

by YangsDev 2020. 7. 27.

์‹œ์ž‘ํ•˜๋ฉฐ 

์‚ฌ๋‚ด์—์„œ CloudFront๋ฅผ ์‚ฌ์šฉ ํ•˜๊ณ  ์žˆ๋‹ค. ์ด์ „์—๋Š” Invadliation์„ ๋‚ ๋ฆฌ์ง€ ์•Š๋Š” CF ์˜€๋Š”๋ฐ, ์ด๋ฒˆ์— ๋‚ด๋ถ€์ ์ธ ์‚ฌ์ •์œผ๋กœ ์ธํ•˜์—ฌ Invalidation ์š”์ฒญ์ด ํ•„์š”ํ•œ ์ƒํ™ฉ์ด๋‹ค.

์ด์ „ ๊ธ€์„ ๋ณด๋ฉด ์•Œ๊ฒ ์ง€๋งŒ, ๋‚˜๋Š” ํ์‡„๋ง ํ™˜๊ฒฝ์—์„œ ์„œ๋น„์Šค๋ฅผ ๊ฐœ๋ฐœํ•˜๊ณ  ์žˆ๋‹ค.

๊ทธ๋ž˜์„œ ์ด ์นดํ…Œ๊ณ ๋ฆฌ์˜ ์ทจ์ง€์— ๋งž๊ฒŒ, ํ•„์š”ํ•œ ๋„๋ฉ”์ธ ๋ฆฌ์ŠคํŠธ๋“ค์„ ๋‚จ๊ฒจ๋‘๋ ค๊ณ  ํ•œ๋‹ค.

 

 

์˜คํ”ˆ์ด ํ•„์š”ํ•œ ๋ฐฉํ™”๋ฒฝ ๋ฆฌ์ŠคํŠธ

๋„๋ฉ”์ธ ํฌํŠธ
cloudfront.amazonaws.com 443

 

์‚ฌ์‹ค ์ด๋ ‡๊ฒŒ ๊ธฐ์–ต ํ•˜๋ฉด ๋œ๋‹ค.

1. ๋ฆฌ์ „์„ ํƒ€๋Š” ์„œ๋น„์Šค์˜ ๊ฒฝ์šฐ (S3, Dynamodb, SQS ๋“ฑ)

์„œ๋น„์Šค๋ช….๋ฆฌ์ „.amazonaws.com

2. ๋ฆฌ์ „์„ ํƒ€์ง€ ์•Š๋Š” Global ์„œ๋น„์Šค์˜ ๊ฒฝ์šฐ (Cloudfront)

์„œ๋น„์Šค๋ช….amazonaws.com

์„œ๋น„์Šค๋ช….amazonaws.com

 

๋Œ“๊ธ€