Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Serverless Single Page Apps -DMM CM AWARDS-

DMM.com
August 02, 2017

Serverless Single Page Apps -DMM CM AWARDS-

2017/08/01に開催した #DMMmeetup 『DMMにおけるサーバーレス構築の今と未来』にて発表したスライドです!
https://dmmcj.connpass.com/event/60992/

DMM.com

August 02, 2017
Tweet

More Decks by DMM.com

Other Decks in Technology

Transcript

  1. 2 Copyright © since 1998 DMM All Rights Reserved. "HFOEB

    ΞδΣϯμ w ࣗݾ঺հ w $."8"3%4ͷ঺հ w 4FSWFSMFTT"SDIJUFDUVSFΛબ୒ͨ͠ཧ༝ w γεςϜߏ੒ w ৼΓฦΓ w ·ͱΊ
  2. 3 Copyright © since 1998 DMM All Rights Reserved. "HFOEB

    ΞδΣϯμ w ࣗݾ঺հ w $."8"3%4ͷ঺հ w 4FSWFSMFTT"SDIJUFDUVSFΛબ୒ͨ͠ཧ༝ w γεςϜߏ੒ w ৼΓฦΓ w ·ͱΊ
  3. 4 Copyright © since 1998 DMM All Rights Reserved. ࣗݾ঺հ

    ౻઒߁೭ʢ:BTVZVLJ'VKJLBXBʣ w લ৬ɿ4*FSۈ຿ w ॴଐɿ0LBO։ൃ෦ w ݱࡏɿೝఆεΫϥϜϚελʔ
 ɹɹɹͱͯ͠νʔϜΛࢧԉத w 5XJUUFSɿ!:@'VKJLBXB w ϒϩάɿIUUQGVKJZBTVIBUFOBCMPHDPN
  4. 5 Copyright © since 1998 DMM All Rights Reserved. "HFOEB

    ΞδΣϯμ w ࣗݾ঺հ w %..$."8"3%4ͷ঺հ w 4FSWFSMFTT"SDIJUFDUVSFΛબ୒ͨ͠ཧ༝ w γεςϜߏ੒ w ৼΓฦΓ w ·ͱΊ
  5. 6 Copyright © since 1998 DMM All Rights Reserved. %..$."8"3%4ͷ঺հ

    w %..ͷαʔϏεΛର৅ͱͨ͠$.ίϯϖςΟγϣϯͰࡢ೥ୈճΛ։࠵ɻ
 ࠓ೥΋߽՚ήετ৹ࠪһ͕Ԡื࡞඼ͷ৹ࠪΛߦ͍·͢ɻ w ୈճʹ͍ͭͯ͸ͪ͜Β⾣IUUQTDNBXBSETENNDPN
  6. 7 Copyright © since 1998 DMM All Rights Reserved. "HFOEB

    ΞδΣϯμ w ࣗݾ঺հ w $."8"3%4ͷ঺հ w 4FSWFSMFTT"SDIJUFDUVSFΛબ୒ͨ͠ཧ༝ w γεςϜߏ੒ w ৼΓฦΓ w ·ͱΊ
  7. 8 Copyright © since 1998 DMM All Rights Reserved. 4FSWFSMFTT"SDIJUFDUVSFΛબ୒ͨ͠ཧ༝

    w "84-BNCEB͕੝Γ্͕͖ͬͯͯ
 ࣄྫ΋ग़͖ͯͨͷͰ࢖ͬͯΈ͍ͨ w ΤϯδχΞ͸গ਺ਓ਺ʢΠϯϑϥΤϯδχΞͳ͠ʣ w ΩϟϯϖʔϯαΠτͷҝͳΔ΂͘ϥϯχϯάίετΛ҆͘͢Δ
  8. 9 Copyright © since 1998 DMM All Rights Reserved. "HFOEB

    ΞδΣϯμ w ࣗݾ঺հ w $."8"3%4ͷ঺հ w 4FSWFSMFTT"SDIJUFDUVSFΛબ୒ͨ͠ཧ༝ w γεςϜߏ੒ w ৼΓฦΓ w ·ͱΊ
  9. 10 Copyright © since 1998 DMM All Rights Reserved. γεςϜߏ੒

    w γεςϜߏ੒ w γεςϜશମͷΞʔΩςΫνϟਤ w ԠืϑΣʔζ w ౤ථϑΣʔζ w ίετʢඅ༻ʣ w ߏஙӡ༻อक
  10. 11 Copyright © since 1998 DMM All Rights Reserved. γεςϜߏ੒

    w γεςϜߏ੒ w γεςϜશମͷΞʔΩςΫνϟਤ w ԠืϑΣʔζ w ౤ථϑΣʔζ w ίετʢඅ༻ʣ w ߏஙӡ༻อक
  11. 12 Copyright © since 1998 DMM All Rights Reserved. Elastic

    Load Balancing "WBJMBCJMJUZ;POF Amazon EC2 "WBJMBCJMJUZ;POF Amazon EC2 Web Browser Amazon API Gateway Amazon S3 AWS Lambda Amazon CloudWatch Amazon DynamoDB AWS Lambda Dynamo DB Streams 8FC
  12. 13 Copyright © since 1998 DMM All Rights Reserved. γεςϜશମͷΞʔΩςΫνϟਤ

    αʔϏε໊ ֓ཁ &$ )5.- +4 $44Λઃஔ "1*(BUFXBZ "1*શମͷ؅ཧ -BNCEB αʔόʔαΠυॲཧͱͯ͠࢖༻ %ZOBNP%# ೖྗ͞ΕͨϑΥʔϜ಺༰Λอଘ 4 Ξοϓϩʔυ͞ΕͨಈըͷαϜωΠϧը૾ϑΝΠϧͷอଘ ΞʔΩςΫνϟͷৄࡉ
  13. 14 Copyright © since 1998 DMM All Rights Reserved. γεςϜશମͷΞʔΩςΫνϟਤ

    ֓ཁ 4XBHHFS +40/ܗࣜͷઃఆϑΝΠϧɻ "1*(BUFXBZͷઃఆΛهड़͢Δɻ /PEFKT -BNCEBͰͷ࣮૷͸ɺ/PEFKT ݴޠͳͲ
  14. 15 Copyright © since 1998 DMM All Rights Reserved. Elastic

    Load Balancing "WBJMBCJMJUZ;POF Amazon EC2 "WBJMBCJMJUZ;POF Amazon EC2 Web Browser Amazon API Gateway Amazon S3 AWS Lambda Amazon CloudWatch Amazon DynamoDB AWS Lambda Dynamo DB Streams 8FC
  15. 16 Copyright © since 1998 DMM All Rights Reserved. 4FSWFSMFTT"SDIJUFDUVSF

    ϑϧ׆༻ͷ͸͕ͣɺ&$Λ࢖͏ʁ γεςϜશମͷΞʔΩςΫνϟਤ
  16. 17 Copyright © since 1998 DMM All Rights Reserved. w

    6TFS"HFOUΛ΋ͱʹ
 3FEJSFDU 3FXSJUFॲཧΛॊೈʹ͢ΔͨΊ&$Λબ୒
 ˠ8FCαʔόʔͱͯ͠ɺ/HJOYΛઃஔͯ͠ॲཧΛ͢Δ w ຊ౰͸ɺ͢΂ͯ4ʹஔ͖͔ͨͬͨ w ϨεϙϯγϒͩͬͨΒ&$Ͱͳͯ͘΋Α͔ͬͨ γεςϜશମͷΞʔΩςΫνϟਤ
  17. 18 Copyright © since 1998 DMM All Rights Reserved. MPDBUJPOTQ\

    JG JT@TQIPOF \ SFXSJUF?TQ  IUUQTIPTUSFEJSFDU ^ CSFBL ^ MPDBUJPO\ JG JT@TQIPOF \ SFXSJUF?  IUUQTIPTUTQSFEJSFDU ^ CSFBL ^ MPDBUJPOd?FOUSZ DPOpSNcFSSPScDPNQMFUF  \ SFUVSOIUUQTIPTUFOUSZ ^ MPDBUJPOd?TQFOUSZ DPOpSNcFSSPScDPNQMFUF  \ SFUVSOIUUQTIPTUTQFOUSZ ^ γεςϜશମͷΞʔΩςΫνϟਤ %PDVNFOU3PPU KT DTT pMF TQ FSSPS EFUBJM BXBSE WPUF JNH BSDIJWF JOEFYIUNM )5.- $44 +4ͳͲ ൈਮ OHJOYDPOG ൈਮ
  18. 19 Copyright © since 1998 DMM All Rights Reserved. Amazon

    S3 Amazon CloudFront Amazon S3 Amazon API Gateway AWS Lambda Amazon CloudWatch Amazon DynamoDB AWS WAF Web Browser ؅ཧը໘
  19. 20 Copyright © since 1998 DMM All Rights Reserved. γεςϜશମͷΞʔΩςΫνϟਤ

    αʔϏε໊ ֓ཁ 8"' *1੍ݶ $MPVE'SPOU ίϯςϯπ഑৴αʔϏε $%/ ΞʔΩςΫνϟͷৄࡉ
  20. 21 Copyright © since 1998 DMM All Rights Reserved. γεςϜશମͷΞʔΩςΫνϟਤ

    ֓ཁ 4XBHHFS +40/ܗࣜͷઃఆϑΝΠϧɻ "1*(BUFXBZͷઃఆΛهड़͢Δɻ +BWB ؅ཧը໘ͷ-BNCEBͰͷ࣮૷͸ɺ+BWB .BWFO +BWBͷϥΠϒϥϦ؅ཧ ϓϩάϥϜ
  21. 22 Copyright © since 1998 DMM All Rights Reserved. γεςϜߏ੒

    ࠂ஌ϑΣʔζ ։ൃϑΣʔζ ԠืϑΣʔζ ౤ථϑΣʔζ ൃදϑΣʔζ
  22. 23 Copyright © since 1998 DMM All Rights Reserved. γεςϜߏ੒

    ࠂ஌ϑΣʔζ ։ൃϑΣʔζ ԠืϑΣʔζ ౤ථϑΣʔζ ൃදϑΣʔζ ࠓճ࿩͢ͱ͜Ζ
  23. 24 Copyright © since 1998 DMM All Rights Reserved. w

    γεςϜߏ੒ w γεςϜશମͷΞʔΩςΫνϟਤ w ԠืϑΣʔζ w ౤ථϑΣʔζ w ίετʢඅ༻ʣ w ߏஙӡ༻อक γεςϜߏ੒
  24. 25 Copyright © since 1998 DMM All Rights Reserved. γεςϜߏ੒

    8FCαΠτ಺Ͱೖྗ ϑΥʔϜ͔ΒԠื ϑϩϯτ ؅ཧը໘ ܝࡌ0, /(൑ఆ ܝࡌ0, ԠืϑΣʔζ Ԡื׬ྃ ϩάΠϯ 4MBDL௨஌
  25. 26 Copyright © since 1998 DMM All Rights Reserved. γεςϜߏ੒

    8FCαΠτ಺Ͱೖྗ ϑΥʔϜ͔ΒԠื ϑϩϯτ ؅ཧը໘ ܝࡌ0, /(൑ఆ ܝࡌ0, ԠืϑΣʔζ Ԡื׬ྃ ϩάΠϯ 4MBDL௨஌
  26. 27 Copyright © since 1998 DMM All Rights Reserved. γεςϜߏ੒

    8FCαΠτ಺Ͱೖྗ ϑΥʔϜ͔ΒԠื ϑϩϯτ ؅ཧը໘ ܝࡌ0, /(൑ఆ ܝࡌ0, ԠืϑΣʔζ Ԡื׬ྃ ϩάΠϯ Ԡื"1* ϩάΠϯ"1* ެ։"1* 4MBDL௨஌ ௨஌"1*
  27. 28 Copyright © since 1998 DMM All Rights Reserved. γεςϜߏ੒

    ֓ཁ Ԡื"1* ԠืϑΥʔϜʹೖྗ͞Εͨ΋ͷΛ%ZOBNP%#ʹอଘ͢Δ ը૾ϑΝΠϧ͸4ʹอଘ͢Δ ௨஌"1* %ZOBNP%#4USFBNTΛτϦΨʔʹ -BNCEB͔ΒԠื಺༰Λ4MBDLʹ௨஌͢Δ 8FCɿ֤"1*ͷ໾ׂ
  28. 29 Copyright © since 1998 DMM All Rights Reserved. γεςϜߏ੒

    ֓ཁ ϩάΠϯ"1* ؅ཧը໘ʹϩάΠϯ͢Δ"1* ެ։"1* Ԡืͨ͠࡞඼Λެ։͢Δ͔
 ֬ೝ͢Δ"1* ؅ཧը໘ɿ֤"1*ͷ໾ׂ
  29. 30 Copyright © since 1998 DMM All Rights Reserved. w

    γεςϜߏ੒ w γεςϜશମͷΞʔΩςΫνϟਤ w ԠืϑΣʔζ w ౤ථϑΣʔζ w ίετʢඅ༻ʣ w ߏஙӡ༻อक γεςϜߏ੒
  30. 31 Copyright © since 1998 DMM All Rights Reserved. γεςϜߏ੒

    ࡞඼ʹΞΫηεͯ͠ ౤ථϘλϯΛԡԼ 5XJUUFS·ͨ͸ 'BDFCPPLͷ ϩάΠϯϘλϯԡԼ ϑϩϯτ ֤4/4ೝূϖʔδ ౤ථ׬ྃϖʔδʹ ભҠ ౤ථϑΣʔζ 4/4ͱΞϓϦͷ ࿈ܞڐՄ
  31. 32 Copyright © since 1998 DMM All Rights Reserved. γεςϜߏ੒

    ࡞඼ʹΞΫηεͯ͠ ౤ථϘλϯΛԡԼ 5XJUUFS·ͨ͸ 'BDFCPPLͷ ϩάΠϯϘλϯԡԼ ϑϩϯτ ֤4/4ೝূϖʔδ ౤ථ׬ྃϖʔδʹ ભҠ ౤ථϑΣʔζ 4/4ͱΞϓϦͷ ࿈ܞڐՄ
  32. 33 Copyright © since 1998 DMM All Rights Reserved. γεςϜߏ੒

    ࡞඼ʹΞΫηεͯ͠ ౤ථϘλϯΛԡԼ 5XJUUFS·ͨ͸ 'BDFCPPLͷ ϩάΠϯϘλϯԡԼ ϑϩϯτ ֤4/4ೝূϖʔδ ౤ථ׬ྃϖʔδʹ ભҠ ౤ථϑΣʔζ 4/4ͱΞϓϦͷ ࿈ܞڐՄ ౤ථ"1* "VUI"1* ϩάΠϯ"1* w࡞඼Ϧετऔಘ"1* w࡞඼ৄࡉऔಘ"1*
  33. 34 Copyright © since 1998 DMM All Rights Reserved. γεςϜߏ੒

    ֓ཁ ࡞඼Ϧετऔಘ"1* ࡞඼ৄࡉऔಘ"1* %ZOBNP%#͔ΒԠื͞Εͨ࡞඼Λऔಘ͢Δ 8FCɿ֤"1*ͷ໾ׂ
  34. 35 Copyright © since 1998 DMM All Rights Reserved. γεςϜߏ੒

    ֓ཁ ౤ථ"1* ֤࡞඼ʹ౤ථ͢Δ"1* ˞֤4/4ͱ࿈ܞࡁΈͷ৔߹ɺ"VUI"1*͸࣮ߦ͞Εͣ౤ථ͢Δ "VUI"1* ֤4/4ͷೝূը໘ʹϦμΠϨΫτͤ͞Δ"1* ϩάΠϯ"1* ֤4/4ೝূը໘ͷDBMMCBDLઌͱͯ͠ઃఆ͞ΕΔ"1* ˞֤4/4ͱ࿈ܞͱಉ࣌ͷ৔߹ɺ͜͜Ͱ౤ථ͢Δ 8FCɿ֤"1*ͷ໾ׂ
  35. 36 Copyright © since 1998 DMM All Rights Reserved. w

    γεςϜߏ੒ w γεςϜશମͷΞʔΩςΫνϟਤ w ԠืϑΣʔζ w ౤ථϑΣʔζ w ίετʢඅ༻ʣ w ߏஙӡ༻อक γεςϜߏ੒
  36. 37 Copyright © since 1998 DMM All Rights Reserved. γεςϜߏ੒

    w ίετͷߴ͍ॱ
 &$%ZOBNP%#&-#ͦͷଞ w "1*(BUFXBZ -BNCEB͸߹Θͤͯ΋݄࢖͍ͬͯͳ͍ w ؔ࿈͢Δඅ༻͸࠷ॳͷࢼࢉ͚ͩͰ͸ݟ͑ͳ͍ͷ͕ݱ࣮
 ӡ༻Λͯ͠ৗʹվળΛ܁Γฦ͢ͷ͕൪ྑ͍
  37. 38 Copyright © since 1998 DMM All Rights Reserved. w

    γεςϜߏ੒ w γεςϜશମͷΞʔΩςΫνϟਤ w ԠืϑΣʔζ w ౤ථϑΣʔζ w ίετʢඅ༻ʣ w ߏஙӡ༻อक γεςϜߏ੒
  38. 39 Copyright © since 1998 DMM All Rights Reserved. ͲΜͳߏ੒Ͱ࡞͍ͬͯΔʁ

    w ߏஙʹ͍ͭͯ w શࣗಈԽΛߦΘͣɺ൒ࣗಈԽΛߦͬͨ w "1*(BUFXBZɺ-BNCEBͷσϓϩΠ͸ࣗಈ w %ZOBNP%#ͷઃఆ͸"84ίϯιʔϧͰखಈ
 w ӡ༻อकʹ͍ͭͯ w 4BB4ͷ؂ࢹαʔϏεΛ࢖Θͣɺ$MPVE8BUDIͷΈͷ؂ࢹ
 ˠখن໛ͳαΠτͰ͋Γ؂ࢹ͸ॏཁͳՕॴͰ͸ͳ͍
  39. 40 Copyright © since 1998 DMM All Rights Reserved. "HFOEB

    ΞδΣϯμ w ࣗݾ঺հ w $."8"3%4ͷ঺հ w 4FSWFSMFTT"SDIJUFDUVSFΛબ୒ͨ͠ཧ༝ w γεςϜߏ੒ w ৼΓฦΓ w ·ͱΊ
  40. 41 Copyright © since 1998 DMM All Rights Reserved. ྑ͔ͬͨ࿩

    w Կͱ͔ܗʹͳͬͨ
 w αʔϏεఏڙͰ͖ͳ͘ͳΔ͙Β͍ͷόά͕ൃੜͤͣ
 ໰୊ͳ͘ӡ༻Ͱ͖ͨ
 w 4FSWFSMFTT"SDIJUFDUVSFͷ஌ݟ͸ಘΒΕͨ
  41. 42 Copyright © since 1998 DMM All Rights Reserved. ۤ࿑ͨ͠࿩

    w 4FSWFSMFTT"SDIJUFDUVSFͰߏஙͰ͖Δͷ͔ʁ
 ͱ͍͏ٙ໰ͱෆ͕҆ৗʹ͋ͬͨ
 ˠϓϩτλΠϓ։ൃ͔Βख୳Γঢ়ଶ͕ଓ͘
 w /PEFKTWT+BWBͲͪΒ͕ૣ͍͔໰୊
 ˠ࠷ॳɺ؅ཧը໘͔Β࡞͍͕ͬͯͨ
 ɹ͍Ζ͍Ζͱௐ΂ͨ݁Ռɺ8FC͸/PEFKTʹ
 ɹམͪண͍ͨ
  42. 43 Copyright © since 1998 DMM All Rights Reserved. ۤ࿑ͨ͠࿩

    w ࣮૷தͰ΋"1*(BUFXBZ -BNCEBͷ
 όʔδϣϯΞοϓ͕͋Γʮ͜ͷػೳ࢖͍͍͚ͨͲɾɾɾʯ
 ͱ͍͏͜ͱ͕Կճ͔͋ͬͨ
 ˠӡ༻్தͰ΋ಋೖͰ͖ΔΑ͏ʹ͢Δ
 w ߏ੒؅ཧͷϑϨʔϜϫʔΫʢ4FSWFSMFTT'SBNFXPSLͳͲʣ
 Λ࢖͑͹΋ͬͱޮ཰Α͘؅ཧͰ͖ͨ
 ˠ΋͏গ͠ϓϩτλΠϓ։ൃظ͕ؒ͋Ε͹࠾༻Ͱ͖ͨ
  43. 44 Copyright © since 1998 DMM All Rights Reserved. "HFOEB

    ΞδΣϯμ w ࣗݾ঺հ w $."8"3%4ͷ঺հ w 4FSWFSMFTT"SDIJUFDUVSFΛબ୒ͨ͠ཧ༝ w γεςϜߏ੒ w ৼΓฦΓ w ·ͱΊ
  44. 45 Copyright © since 1998 DMM All Rights Reserved. ·ͱΊ

    w ΩϟϯϖʔϯαΠτͳͷͰɺཁ݅ʹϚονͨ͠ΞʔΩςΫνϟͰ
 ͋ΓεϞʔϧελʔτͱͯ͠ྑ͍γεςϜͩͬͨ
 w ʮ&$Λ࢖ͬͯͷ8FCαʔϏεஔ͖׵͑ʹͳΔʯͱ͸ݴ͍ʹ͍͘ w ཁ݅ʹ߹ΘͤͯΞʔΩςΫνϟΛબ୒Ͱ͖Δ෯͕૿͑ͨͱ͍͏͜ͱ
 w 4FSWFSMFTTͰ΍ΕΔ͜ͱ͕૿͖͍͑ͯͯΔͱײ͍ͯ͡ΔͷͰ
 ࢖͑Δͱ͜Ζ͕͋Ε͹࢖ͬͯΈΑ͏ͱ͍͏ؾ͕࣋ͪྑ͍