Slide 1

Slide 1 text

Ϋϥ΢υαʔϏεͷ ར༻ίετΛ࡟ݮ͢Δٕज़ ʙԁ҆ͷਅೆ෩Λײͯ͡ʙ

Slide 2

Slide 2 text

ࢁԼ࿨඙!QZBNB (.0ϖύϘٕज़ج൫νʔϜ γχΞɾϓϦϯγύϧ ɹΩϟϯϓɺཱྀߦɺώϧτϯ८ΓɺιϫχΤ८Γ ػցֶशɺϦϦʔεΤϯδχΞϦϯά

Slide 3

Slide 3 text

ԭೄ޷͖͗͢Δ

Slide 4

Slide 4 text

ϗεςΟϯάࣄۀ &$ࢧԉࣄۀ ϋϯυϝΠυɾͦͷଞࣄۀ

Slide 5

Slide 5 text

΋ͬͱ͓΋͠Ζ͘Ͱ͖Δ

Slide 6

Slide 6 text

ࠓ೔࿩͢͜ͱ ͳͥΫϥ΢υαʔϏεͷίετ࡟ݮ͕ඞཁ͔ʁ Amazon CloudFront Amazon Simple Storage Service(S3) Amazon EC2

Slide 7

Slide 7 text

͓Θ͔ΓͩΖ͏͔ʁ ͳͥυϧΛങ͍ͬͯͳ͔ͬͨͷ͔… https:// fi nance.yahoo.co.jp/quote/USDJPY=FX ΑΓҾ༻

Slide 8

Slide 8 text

ۚJT.POFZ

Slide 9

Slide 9 text

Amazon CloudFront https://aws.amazon.com/jp/cloudfront/ ΑΓҾ༻

Slide 10

Slide 10 text

Contents Delivery Network CDN Origin User Client 1.OriginͷίϯςϯπΛΩϟογϡͯ͠Ԡ౴ 2. ੈքن໛Ͱ෼ࢄͯ͠ɺΑΓ͍ۙDC͔ΒԠ౴͢Δ 3. τϥϑΟοΫͷγΣʔϐϯάͳͲ΋Ͱ͖Δ΋ͷ΋͋Δ

Slide 11

Slide 11 text

Amazon CloudFrontͷओཁͳίετཁҼ Πϯλʔωοτ΁ͷϦʔδϣϯϨϕϧͷσʔλసૹ (OUT) ΦϦδϯ΁ͷϦʔδϣϯϨϕϧͷσʔλసૹ (OUT) HTTP ϝιουͷϦΫΤετྉۚ (1 ສ݅͋ͨΓ) ΤϯυϢʔβʔ΁ͷσʔλసૹ ΦϦδϯαʔό΁ͷσʔλసૹ(POSTϦΫΤετͷBodyͳͲ) HTTPϦΫΤετͷ਺

Slide 12

Slide 12 text

Amazon CloudFrontͷओཁͳίετཁҼ Πϯλʔωοτ΁ͷϦʔδϣϯϨϕϧͷσʔλసૹ (OUT) ΦϦδϯ΁ͷϦʔδϣϯϨϕϧͷσʔλసૹ (OUT) HTTP ϝιουͷϦΫΤετྉۚ (1 ສ݅͋ͨΓ) ΤϯυϢʔβʔ΁ͷσʔλసૹ ΦϦδϯαʔό΁ͷσʔλసૹ(POSTϦΫΤετͷBodyͳͲ) HTTPϦΫΤετͷ਺

Slide 13

Slide 13 text

• ը૾ͳͲͷΞηοτϑΝΠϧͷαΠζ࡟ݮ • ѹॖϑΥʔϚοτͰͷ഑৴Λߦ͏ • ίϯςϯπɾΩϟογϡίϯτϩʔϧ Πϯλʔωοτ΁ͷϦʔδϣϯϨϕϧͷσʔλసૹ (OUT)ͷ࡟ݮ ϦΫΤετΛͤ͞ͳ͍ɺ഑৴αΠζΛ࡟ݮ͢Δ

Slide 14

Slide 14 text

1. WebP΁ͷม׵ 2. αϜωΠϧαΠζ΁ͷม׵ 1. ϖύϘͰ͸GoͰαʔό࣮૷ 2. ϚωʔδυαʔϏεɾOSS※ ಈతม׵͸͍͍ͧ ※ https://github.com/imgproxy/imgproxy

Slide 15

Slide 15 text

ίϯςϯπɾΩϟογϡίϯτϩʔϧ • Etag/LastModi fi edϔομʔΛ෇༩͢Δ • ΩϟογϡίϯτϩʔϧϔομʔΛ෇༩͢Δ

Slide 16

Slide 16 text

HTTP Status 304

Slide 17

Slide 17 text

Etag/LastModi fi edϔομʔΛ෇༩͢Δ CDN Origin User Client 1. ॳճϦΫΤετ 2. ॳճϦΫΤετ 3. Ϩεϙϯε 4. Ωϟγϡ&Ϩεϙϯε 5. 2ճ໨ϦΫΤετ 6. Ωϟογϡ͔ΒϨεϙϯε ͔ͭεςʔλε304 ίϯςϯπͷLastModi fi ed͔EtagΛ ఻ൖ͢Δ͜ͱͰɺίϯςϯπͷมԽͷ ༗ແΛ൑அͯ͠ɺσʔλసૹΛ࡟ݮ͢Δɻ

Slide 18

Slide 18 text

Amazon Simple Storage Service(S3) https://aws.amazon.com/jp/s3/ ΑΓҾ༻

Slide 19

Slide 19 text

ετϨʔδΫϥε ؅ཧ͕͢΂ͯ

Slide 20

Slide 20 text

ετϨʔδΫϥε؅ཧ 1. අ༻͸ͦΕͳΓʹ͔͔Δ͕ɺ͙͢ʹऔΓग़ͤΔ 2. අ༻͸͍͕҆ɺσʔλͷऔΓग़͠ʹएׯ͕͔͔࣌ؒΔ 3. අ༻͸௒͍͕҆ɺऔΓग़͢ͷʹ͕͔࣌ؒͳΓֻ͔Δ͠ɺۚ΋͔͔Δ S3͸ෳ਺ͷετϨʔδΫϥε͕͋Γྉۚ΍ػೳ͕ҟͳΔ https://aws.amazon.com/jp/s3/storage-classes/

Slide 21

Slide 21 text

ϥΠϑαΠΫϧϙϦγʔ 1.࡞੒ޙ30೔ա͗ͨΒ͍҆ετϨʔδʹҠಈ 2.࡞੒ޙ60೔ա͗ͨΒ௒͍҆ετϨʔδʹҠಈ 3.࡞੒ޙ360೔ա͗ͨΒσʔλΛ࡟আ ࡞੒೔Λ΋ͱʹɺετϨʔδΫϥεΛࣗಈͰมߋՄೳ ྫ:

Slide 22

Slide 22 text

ϥΠϑαΠΫϧϙϦγʔ ࢥΘ͵ίετ૿͕ൃੜ͢Δࣄ͕͋Δ 1.ετϨʔδΦʔόʔϔουྉۚ 2. ҠߦϦΫΤετྉۚ Glacier/Glacier Deep ArchiveʹҠಈ͢ΔͱɺΦϒδΣΫτ͝ͱʹϝλσʔλ͕࡞੒͞ΕΔ ΦϒδΣΫτͷҠߦʹ͍ͭͯ͸ετϨʔδΫϥε͝ͱʹઃఆ͞ΕͨҠߦྉ͕͔͔ۚΔ Amazon S3 ϥΠϑαΠΫϧΛ࢖༻ͨ͠ΦϒδΣΫτͷҠߦ https://docs.aws.amazon.com/ja_jp/AmazonS3/latest/userguide/lifecycle-transition-general-considerations.html

Slide 23

Slide 23 text

͸͍ɺΘͨ͠ͷ͜ͱͰ͢ Զత࠷ڧϥΠϑαΠΫϧϙϦγʔΛ
 ౤ೖͨ͠Βίετ͕૿͑ͨ

Slide 24

Slide 24 text

Intelligent-Tiering͕͓͢͢Ί • ΞΫηεͷ܏޲Λݟͯɺ30೔ɺ90೔Λ͖͔͚ͬʹࣗಈͰ
 ετϨʔδΫϥεΛҠߦ • 128kҎԼͷΦϒδΣΫτ͸ແࢹͯ͘͠ΕΔ(αΠζ͸มߋՄೳ) • ΞΫηεͷ܏޲Λ෼ੳ͢Δ෼ɺΦϒδΣΫτ਺ʹԠͯ͡एׯඅ༻͕͔͔Δ • ࣮੷ͱͯ͠ը૾อଘ༻ͷόέοτͰ6ׂݮͨ͠

Slide 25

Slide 25 text

όέοτͷόʔδϣχϯάͷ᠘ • TeraformͷtfstateͷόέοτͳͲͰΑ͘ར༻͞ΕΔ • όʔδϣχϯά͞Ε͍ͯΔόέοτͷΦϒδΣΫτͷ࡟আ͸ೋஈ֊͋Δ Object ඇݱߦ όʔδϣϯ Object ࡟আ ڏແ ࡟আ ۚ is Money

Slide 26

Slide 26 text

͸͍ɺΘ̓

Slide 27

Slide 27 text

ਪଌ͢Δͳɺ؍ଌͤΑ Amazon S3 Storage Lens μογϡϘʔυʹ՝ۚ͢Δͷ͕͓͢͢Ί ແྉͷϝτϦΫε͚ͩͩͱɺ༰ྔ͘Β͍͔͠Θ͔Βͳ͍ GETϦΫΤετͷ਺ͳͲɺྉۚʹؔ࿈͢ΔϝτϦΫε͕
 όέοτ͝ͱʹ෼ੳͰ͖Δ

Slide 28

Slide 28 text

Amazon EC2 - Elastic Compute Cloud -

Slide 29

Slide 29 text

Amazon EC2 1. ϦβʔϒυΠϯελϯεΛങ͏ 2. ύϑΥʔϚϯενϡʔχϯάΛͻͨ͢Β΍ͬͯɺ୆਺Λ࡟Δ 3. ARMΞʔΩςΫνϟʹมߋ͢Δ ΍Ε͹ऴΘΔ࢓ࣄ͔͠ͳ͍ https://aws.amazon.com/jp/ec2/pricing/reserved-instances/

Slide 30

Slide 30 text

࣍ճ༧ࠂ Kaigi on Rails 2024ʹͯ EC2(k8s node)୆਺Λ0ʹͨ͠
 ࿩Λ͠·͢

Slide 31

Slide 31 text

ARMΞʔΩςΫνϟҠߦ ෳࡶͳԋࢉॲཧͰͳ͚Ε͹ɺARM͕
 ύϑΥʔϚϯεɺίετͱ΋ʹϝϦοτ͕༗Δ https://speakerdeck.com/pyama86/shi-jian-armakitekutiyayi-xing?slide=34

Slide 32

Slide 32 text

ۚΛ͔͚ͣʹτϨʔε΍ΔͳΒ opentelemetry-collector + Sentry Self Hosted͕ڧ͍ Sentry͸PostgreSQLͷαʔό1୆ + ΞϓϦ͸k8s + helmͰ͙͢ߏஙͰ͖Δ Մ༻ੑ͕ͦΜͳʹඞཁͳ͍͔Βɺܹ҆ߏ੒Ͱ͍͚Δ(΄Μͱʹʁ) ΤϥʔͷτϨʔεʹՃ͑ͯύϑΥʔϚϯεͷτϨʔε΋औΕΔ͓͠ಘ

Slide 33

Slide 33 text

ۚΛ͔͚ͣʹτϨʔε΍ΔͳΒ

Slide 34

Slide 34 text

࠷ޙʹ

Slide 35

Slide 35 text

ίετϞχλϦϯά͕ॳख 1. AWS Cost ExplorerͳΓΛि࣍ͷMTGͰݟΔ 2. ίετ૿ͷ͖͍͠஋؂ࢹΛ͢Δ 3. Cloud WatchͷμογϡϘʔυΛோΊΔ

Slide 36

Slide 36 text

ԭೄେ޷͖Ͱ͢ʂࠓ͙͢ॅΈ͍ͨ ࠷৽ͷ࠾༻৘ใΛνΣοΫˠ !QC@SFDSVJU