Slide 1

Slide 1 text

αʔόϨεΞʔΩςΫνϟͷ ύϑΥʔϚϯενϡʔχϯά +"84 'FTUB ౦ւಓ (BNF4FSWFS4FSWJDFTגࣜձࣾ ୅දऔక໾ࣾ௕$&0୮Ӌ Ұஐ

Slide 2

Slide 2 text

ࣗݾ঺հ (BNF4FSWFS4FSWJDFTגࣜձࣾ ೥݄೔૑ۀ ୅දऔక໾ࣾ௕$&0୮Ӌ ҰஐʢʹΘ ͔ͣͱ΋ʣ ೥ גࣜձࣾηΨೖࣾ ܞଳి࿩޲͚ήʔϜɾαʔό։ൃʹैࣄ ೥ ೚ఱಊגࣜձࣾೖࣾ ϙέϞϯɾϚϦΦΧʔτΛ͸͡Ίͱͨ͠ ήʔϜαʔό։ൃɾӡ༻ʹैࣄ

Slide 3

Slide 3 text

Game Server Services(GS2) とは εϚϗήʔϜ΍ϒϥ΢βήʔϜͷඞཁͱ͢Δػೳͷ͏ͪɺ • ϚονϝΠΩϯά • ϥϯΩϯά • ϝʔϧϘοΫεʢϓϨθϯτϘοΫεʣ • ελϛφ؅ཧ ͱ͍ͬͨɺΑ͋͘ΔػೳΛ .JDSP4FSWJDFTԽ͠ɺ 4FSWFSMFTTͰઃܭɾ࣮૷͠ɺҰ࣌ؒ਺ԁʙͰར༻Ͱ͖Δͱ ͍͏"84ͷΑ͏ͳαʔϏεͰ͢ɻ

Slide 4

Slide 4 text

ςʔϚ αʔόϨεΞʔΩςΫνϟͰઃܭͨ͠8αʔόͰ Ͳ͜·ͰϨΠςϯγΛݮΒ͢͜ͱ͕ग़དྷΔ͔ɻ Λ௥ٻ͢Δ͜ͱͰɺͲ͕͜ϘτϧωοΫʹͳΔͷ͔ΛৄΒ͔ ʹ͠·͢ɻ

Slide 5

Slide 5 text

ཁ݅ • αʔόϨεΞʔΩςΫνϟ • "84Λ࢖͏ • %#ͷ஋Λॻ͖׵͑ͨΓಡΈࠐΜͩΓ͢Δ • ಠࣗυϝΠϯ • )5514ʢͳΔ΂҆͘͘ͳΒΜ͚ʁʣ

Slide 6

Slide 6 text

ΞʔΩςΫνϟ Amazon CloudFront ACM Amazon API Gateway AWS Lambda Amazon VPC Amazon RDS Amazon Route 53

Slide 7

Slide 7 text

ϓϩάϥϜ

Slide 8

Slide 8 text

ॳճΞΫηε࣌ ճࢼߦɻ্ԼΛ੾Γࣺͯ ճ෼Λ࠾༻ ɻ ฏۉ TFD தԝ஋TFD ճ໨Ҏ߱ ฏۉ TFD தԝ஋TFD

Slide 9

Slide 9 text

ඵ͸ͪΐͬͱʜ ճ໨ͷΞΫηε͸طʹىಈ͞ΕͨίϯςφΛ࢖͍·Θ͢ͷ Ͱɺൺֱతૣ͘Ԡ౴ͯ͘͠Ε·ͨ͠ɻ ճ໨ͷ NT͸৔߹ʹΑͬͯ͸·ͩڐ༰Ͱ͖Δ͔΋͠Ε ͳ͍͚ΕͲɺॳճͷ TFD͸ྲྀੴʹͪΐͬͱʜɻ

Slide 10

Slide 10 text

71$Λ૭͔Β౤ࣺ͛ͯΔ 71$಺ͷ3%4ʹΞΫηε͍ͯ͠Δ͕ɺ71$ͷׂ౰͸&/*ͷ࡞ ੒ͱׂ౰͕ඞཁͱͳΔͷͰɺ஗͍ɻ

Slide 11

Slide 11 text

ΞʔΩςΫνϟ Amazon CloudFront ACM Amazon API Gateway AWS Lambda Amazon RDS Amazon Route 53

Slide 12

Slide 12 text

ॳճΞΫηε࣌ ฏۉ TFD தԝ஋TFD ʊਓਓਓਓਓਓਓਓਓਓਓਓʊ ʼ ͋Μ·มΘΒΜ͔ͬͨ ʻ ʉ:?:?:?:?:?:?:?:?:?:ʉ ͜ͷ͋ͱग़ͯ͘Δ+BWBͷ7.ىಈͱ &/*ͷׂ౰͕ฒྻͰಈ͍ͯΔ͔Β͔΋

Slide 13

Slide 13 text

ηΩϡϦςΟతʹʜ -BNCEBͷ*1ΞυϨε͸ݻఆͰ͖ͳ͍ɻ .Z42-ͷύεϫʔυೝূ͚ͩͰ͸ͪΐͬͱෆ͔҆΋ɻ

Slide 14

Slide 14 text

ΞʔΩςΫνϟ Amazon CloudFront ACM Amazon API Gateway AWS Lambda Amazon DynamoDB Amazon Route 53

Slide 15

Slide 15 text

ϓϩάϥϜ

Slide 16

Slide 16 text

ॳճΞΫηε࣌ ฏۉ TFD தԝ஋ TFD %ZOBNP%# ʹͨ͜͠ͱͰɺ஗͘ͳͬͯ͠·ͬͨɻ ͜Ε͸ "844%,ͷॳظԽॲཧ͕ॏ͕͔͔ͯ࣌ؒ͘Δ͜ͱ ʹىҼ͍ͯ͠Δɻ ͳΜʹͯ͠΋ɺࠓͷ΍ΓํͰ͸ݫ͕͋͠͞Δɻ

Slide 17

Slide 17 text

+BWBΛ૭͔Β౤ࣺ͛ͯΔ +BWB͸7.ͷىಈʹ͕͔͔࣌ؒΔɻͦͷͨΊɺॳճΞΫηε ࣌ʹ͕͔͔࣌ؒͬͯ͠·͏ɻ

Slide 18

Slide 18 text

ΞʔΩςΫνϟ Amazon CloudFront ACM Amazon API Gateway AWS Lambda Amazon DynamoDB Amazon Route 53

Slide 19

Slide 19 text

ϓϩάϥϜ

Slide 20

Slide 20 text

ॳճΞΫηε࣌ ฏۉ TFD தԝ஋ TFD ճ໨Ҏ߱ ฏۉ TFD தԝ஋ TFD

Slide 21

Slide 21 text

ॳճͰ΋ඵʹ 1ZUIPOʹͨ͜͠ͱͰىಈͷΦʔόʔϔου͕ܹݮͯ͠ɺॳ ճΞΫηε࣌Ͱ΋ඵʹͳΓ·ͨ͠ɻ

Slide 22

Slide 22 text

$MPVE'SPOU "$. Λ૭͔Β౤ࣺ͛ͯΔ 4MBDLͷࣄྫ IUUQXXXTMJEFTIBSFOFU"NB[PO8FC4FSWJDFTTFDVSFEBQJBDDFMFSBUJPO XJUIFOHJOFFSTGSPNBNB[PODMPVEGSPOUBOETMBDL 1 ͷΑ͏ʹɺ୯ҰϦʔδϣ ϯͰϫʔϧυϫΠυʹαʔϏεΛల։͍ͯ͠Δ৔߹ɺւΛ௒ ͑ΔΑ͏ͳέʔεͰɺ$MPVE'SPOUˠΦϦδϯ &$ Ͱ"84 ͷଠ͍όοΫϘʔϯʹΑΔߴ଎௨৴ʹΑΓϨΠςϯγ͕վળ ͢Δ͜ͱ͕͋Γ·͢ɻ ࠓճͷϢʔεέʔεͰ͸Ωϟογϡώοτ΋ظ଴͠·ͤΜ͠ɺ ϗοϓ਺͕૿͑Δ͜ͱʹΑΔϨΠςϯγ૿ͷѱӨڹ͕େ͖͍ ͷͰɺ$MPVE'SPOU Λύʔδ͠·͢ɻ

Slide 23

Slide 23 text

ΧελϜυϝΠϯΛઃఆ ͨͩ $MPVE'SPOU Λ֎͚ͩͩ͢ͱɺυϝΠϯ͕ "1*(BUFXBZؙग़͠Ͱ͔ͬ͜ѱ͍ͷͰɺ-FUT`T &ODSZQUͰ औͬͨαʔόূ໌ॻΛ࢖ͬͯΧελϜυϝΠϯΛઃఆ͠·͢ɻ

Slide 24

Slide 24 text

ΞʔΩςΫνϟ Amazon API Gateway AWS Lambda Amazon DynamoDB Amazon Route 53

Slide 25

Slide 25 text

ॳճΞΫηε࣌ ฏۉ TFD தԝ஋ TFD ճ໨Ҏ߱ ฏۉ TFD தԝ஋ TFD

Slide 26

Slide 26 text

ʙNT୹ॖ $MPVE'SPOU Λ֎ͨ͜͠ͱͰɺʙNT୹͘ͳΓ·͠ ͨɻ "1*(BUFXBZ΋࣮ଶ͸ $MPVE'SPOUɻ ˠ$%/͕ஈߏ੒ʹɻ ˠΤοδϩʔέʔγϣϯ൑ఆ͕࢒೦ʹͳͬͯΔ͔΋ɻ

Slide 27

Slide 27 text

"844%,ͷॳظԽΛ GVODUJPOͷ֎ʹ "84 4%,ͷॳظԽ͸ΘΓͱ͕͔͔࣌ؒΔͷͰɺΞΫηε͢ Δ౓ʹ࣮ߦ͢ΔͷͰ͸ͳ͘ɺىಈ࣌ʹճ͚ͩ͢ΔΑ͏ʹ͢ Δɻ ͜ΕͰɺճ໨Ҏ߱ͷԠ౴଎౓͕޲্͢Δɻ

Slide 28

Slide 28 text

ϓϩάϥϜ

Slide 29

Slide 29 text

ॳճΞΫηε࣌ ฏۉ TFD தԝ஋ TFD ճ໨Ҏ߱ ฏۉ TFD தԝ஋ TFD

Slide 30

Slide 30 text

ʙNT୹ॖ "84 4%,ͷॳظԽΛϑΝϯΫγϣϯͷ࣮ߦຖʹߦΘͣɺॳ ճʹͷΈߦ͏Α͏ʹͨ͜͠ͱͰɺίϯςφͷ࢖͍ճ͚ͩ͠Ͱ ͳ͘ɺΫϥΠΞϯτΠϯελϯεͷ࢖͍ճ͠ͷޮՌͰճ໨ Ҏ߱ͷॲཧ͕࣌ؒૣ͘ͳΓ·ͨ͠ɻ ॳճ·Ͱ଎͘ͳͬͯΔͷ͸ϛεςϦʔͰ͢ɻ GVODUJPOݺͼग़͠·Ͱ͸ϝϞϦׂΓ౰ͯྔʹΑΒͣϑϧύϫ ʔͰىಈͯ͘͠ΕͯΔʁ ʢࠓճ͸+BWB͸.#1ZUIPO͸.#ͱ͍͏࠷খαΠζͰܭଌ͍ͯ͠·͢ʣ

Slide 31

Slide 31 text

༨ஊ AWS Lambda Amazon DynamoDB AWS SDK

Slide 32

Slide 32 text

༨ஊ ϓϩάϥϜ

Slide 33

Slide 33 text

ॳճΞΫηε࣌ ฏۉ TFD தԝ஋ TFD ճ໨Ҏ߱ ฏۉ TFD தԝ஋ TFD

Slide 34

Slide 34 text

NTΛ੾Δ݁Ռʹʢ͕ͩɺ΋͸΍8αʔόͰ͸ͳ͍ "1*(BUFXBZ΋࣮ଶ͸ $MPVE'SPOU ͳͷͰ ʢIUUQXXXTMJEFTIBSFOFULFJTVLFBXTMBNCEBBNB[POBQJHBUFXBZEFFQEJWF 1ʣ ɺ "1*(BUFXBZ΋ $MPVE'SPOU ͱಉ༷ͷ໰୊Λ๊͍͑ͯΔɻ ݁Ռɺ"1*(BUFXBZΛඈ͹͢͜ͱͰɺ͞Βʹ໿ʙ NTͷ୹ॖ͕Ͱ͖ͨɻ

Slide 35

Slide 35 text

·ͱΊ 100ms ~ 200ms 3000ms ~ 4000ms 3000ms ~ 4000ms 100ms 〜 300ms(割当メモリに左右) 100ms ~ 200ms Amazon CloudFront Amazon API Gateway Elastic Network Interface "844%, ॳظԽ

Slide 36

Slide 36 text

·ͱΊ +BWB ͸ىಈ͕஗͍ɻ ˠىಈͨ͋͠ͱ͸ര଎ͩΑʂ࢖͑ͳ͍ࢠͩͱצҧ͍͠ͳ͍Ͱʂ $MPVE'SPOU ΛڬΉͱ஗͘ͳͬͨɻ ˠ"84͞Μɻ"1*(BUFXBZͰ"$.࢖͑ΔΑ͏ʹ͍ͯͩ͘͠͞ɻ $MPVE'SPOU Λൈ͍ͯߴ଎Խͯ͠΋ "1*(BUFXBZ͕ʜɻ ˠ"84͞ΜɻͳΜͱ͔ߴ଎Խ͍ͯͩ͘͠͞ɻ "844%,ͷ"1*ΫϥΠΞϯτΠϯελϯεੜ੒͸ҙ֎ͱ஗͍ɻ

Slide 37

Slide 37 text

એ఻ (4 Ͱ͸͜ͷΑ͏ͳɺαʔόϨεΞʔΩςΫνϟಛ༗ͷಛੑ Λ೺Ѳ্ͨ͠ͰύϑΥʔϚϯενϡʔχϯάΛ֤ॴͰߦͬͯ ͍·͢ɻ (4 Λར༻͢Δ͜ͱͰɺࣗ͝਎Ͱ͜ͷΑ͏ͳνϡʔχϯάΛ ߦΘͳͯ͘΋࠷దԽ͞ΕͨαʔϏεΛ͝ར༻͍͚ͨͩ·͢ɻ ੋඇɺ(4ͷ࠾༻΋͝ݕ౼͍ͩ͘͞ɻ

Slide 38

Slide 38 text

͝ਗ਼ௌ͋Γ͕ͱ͏͍͟͝·ͨ͠ IUUQTHTJP ϕʔλςετࢀՃऀืूதʂ