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

vuls-serverless-architecture.pdf

 vuls-serverless-architecture.pdf

E8ac626646da35420ffba5da02f4787d?s=128

Shuichi Ohsawa

March 24, 2017
Tweet

Transcript

  1. αʔόϨεͰ7VMTεΩϟϯ PO"84 7VMTࡇΓ !PITBXB

  2. େᖒलҰ!TIV@ #MPHIUUQCMPHKJDPNBOJOGP IUUQTHJUIVCDPNPITBXB 4BOTBOגࣜձࣾ ໊ࢗσʔλԽγεςϜΛ͓कΓ͢Δ*5ΠϯϑϥΤϯδχΞ ݄ʹୈҰࢠ஀ੜ༧ఆʂ ࣗݾ঺հ

  3. ΞδΣϯμ 7VMTΛαʔόϨεͰಈ͔͖͔͚ͬ͢ αʔόϨεͰಈ͔ͨ͢ΊͷΞʔΩςΫνϟ ΞʔΩςΫνϟͷ֤ཁૉʹ͍ͭͯ '"2 Α͋͘Δ࣭໰  ·ͱΊ ͕࣌ؒ༨Ε͹ ίϚϯυ࣮ߦྫͷ঺հ

  4. ࿩͞ͳ͍͜ͱ αʔόϨεͱ͸Կ͔ ৄ͍͠ਓʹฉ͍͍ͯͩ͘͞ŋŋŋ "84ͷ֤αʔϏεͷઆ໌ ؆୯ͳઆ໌͚ͩ͠·͢ ৄ͘͠ฉ͖͍ͨਓ͸ޙͰ੠Λ͔͚͍ͯͩ͘͞ େ׻ܴʂ

  5. 7VMTΛαʔόϨεͰಈ͔͢ ͖͔͚ͬ

  6. 7VMTΛαʔόϨεͰಈ͔͖͔͚ͬ͢ ೥݄ʹΞυϕϯτΧϨϯμʔͷهࣄΛॻ͍ͨ ʮ"84-BNCEBͰ7VMTΛ࢖͓͏ͱࢼΈͨ࿩ʯ IUUQCMPHKJDPNBOJOGPWVMT@MBNCEB ωλ͕ࢥ͍͔ͭͳ͔ͬͨͷͰ ൒෼ ۤ͠ฆΕʹॻ͍ͨ Ͱ΋αʔόϨεͰ7VMTͰಈ͔ͤͨΒ͍͍ͳͱࢥͬͨͷ͸ϗϯτ هࣄެ։ͨ͠Β7VMT࡞ऀͷਆށ͞ΜΑΓ͓੠͕͔͔ͬͨ ౰࣌ࢥ͏Α͏ʹ͍͔ͳ͔ͬͨͱ͜Ζ΋௚ͯ͠΋ΒͬͨͷͰຊ֨తʹ࢖ͬ

    ͯΈΔ͜ͱʹ
  7. αʔόϨεͰಈ͔͢͜ͱͷϝϦοτ ࣮ߦαʔό &$ ͕ෆཁʹͳΔ ࣮ߦ؀ڥͷηοτΞοϓ͕ෆཁ αʔόͷ͓कΓΛ͠ͳͯ͘΋͍͍ ͓ۚͷઅ໿ ࣮ߦͨ࣌ؒ͠ͱϦιʔε෼͚ͩ੥ٻ͞ΕΔ 7VMT͸εΩϟϯ࣌Ҏ֎͸ಈ͔͢ඞཁ͕ͳ͍ͷͰαʔόϨεͱ૬ੑ͕͍͍

  8. αʔόϨεͰಈ͔ͨ͢Ίͷ
 ΞʔΩςΫνϟ

  9. ΞʔΩςΫνϟ

  10. ΞʔΩςΫνϟͷ֤ཁૉʹ
 ͍ͭͯ

  11. "84-BNCEB αʔόϨεͰίʔυΛ࣮ߦ ࢖ͬͨ࣌ؒɾϦιʔε෼͚ͩ੥ٻ͞ΕΔ ࣗಈతʹεέʔϧͯ͘͠ΕΔ ଞͷ"84αʔϏεͱ࿈ܞ͕Ͱ͖Δ ྫ 4ʹϑΝΠϧΛ165ͨ͠ΒΠϕϯτൃՐͯ͠-BNCEB࣮ߦ ແྉ࿮͕͋Δ ແظݶʂ 

    ສ݄͓݅ΑͼສඵͷίϯϐϡʔςΟϯά݄࣌ؒ
  12. "84-BNCEBͷ࣮ߦ੍໿ Ұ࣌σΟεΫ༰ྔ UNQεϖʔε .# -BNCEBϑΝϯΫγϣϯ಺ͰϑΝΠϧΛஔ͚Δ৔ॴ͸UNQͷΈ ϦΫΤετ͋ͨΓͷ࠷େ࣮ߦ࣌ؒඵ ճͷॲཧΛඵ ෼ Ҏ಺Ͱ׬ྃͤ͞Δඞཁ͕͋Δ ϥϯλΠϜ+BWB

    /PEFKT W W 
 1ZUIPO /&5$PSF $  IUUQEPDTBXTBNB[PODPNKB@KQMBNCEBMBUFTUEHMJNJUTIUNM ࣌఺
  13. "84-BNCEBͰ7VMTΛ࣮ߦ͢ΔͨΊʹ 7VMT΍HPDWFEJDUJPOBSZ͸(Pݴޠ੡ͳͷͰͦͷ··ͩͱಈ͔ͳ͍ όΠφϦͰϏϧυͯ͠-BNCEB্ͰίϚϯυ࣮ߦ
 ࣮ߦεΫϦϓτͱҰॹʹಉࠝ͢Δ ύοέʔδԽ  ੬ऑੑ৘ใσʔλϕʔεΛ42-JUF σϑΥϧτ Ͱอଘ͢Δͷ͸ݫ͍͠ $7&औಘ͢Δͱ.#Ҏ্Λ௒͑ͯ͠·͏

    "NB[PO3%4GPS.Z42-ΛόοΫΤϯυ%#ͱͯ͠࢖͏ 7VMT͸.Z42-ʹ΋ରԠ͍ͯ͠Δ 3%4͸ϚωʔδυαʔϏεͳͷͰӡ༻΋ָ
  14. "84-BNCEBͰ7VMTΛ࣮ߦ͢ΔͨΊʹ -BNCEB͔Βαʔόʹ44)͢Δඞཁ͕͋Δ -BNCEBͷ71$αϙʔτ 71$಺ʹ-BNCEBΛ഑ஔͯ͠αʔόʹ44) ൿີ伴ͷ؅ཧΛͲ͏͠Α͏ŋŋŋద౰ͳॴʹ͸ஔ͚ͳ͍ "84,FZ.BOBHFNFOU4FSWJDF ,.4 Λ࢖͏ ൿີ伴Λ,.4Ͱ҉߸Խ͓͍ͯͯ͠ɺ-BNCEB࣮ߦ࣌ͷΈ෮߸͢Δ .Z42-ͷ%#ύεϫʔυ΋҉߸Խ͢Δ

  15. "NB[PO4 ετϨʔδαʔϏε ༰ྔແ੍ݶ ߴ͍ݎ࿚ੑ   εΩϟϯ݁ՌΛอଘ͢Δͷʹ࢖༻

  16. "844UFQ'VODUJPOT ࢹ֮తͳϫʔΫϑϩʔΛ࢖༻ͯ͠෼ࢄΞϓϦέʔγϣϯΛ
 ؆୯ʹߏஙͰ͖Δɻ"84-BNCEBͱͷ࿈ܞ΋Մೳ ฒྻ࣮ߦɺ৚݅෼ذ΍Τϥʔ࣌ͷ࠶ࢼߦͳͲΛఆٛͰ͖Δ -BNCEB͔Β-BNCEB͔Βͷݺͼग़͠ΛίʔυଆͰ੍ޚ͠ͳͯ͘΋ྑ͍ HPDWFEJDUJPOBSZͰ$7&৘ใΛ%#ʹૠೖ͢Δ࣌ʹ࢖༻ 3%4 .Z42- ʹσʔλΛೖΕΔͷʹ͕͔͔࣌ؒΓɺ਺೥෼ͷऔಘ͚ͩͰ
 ࣮ߦ࣌ؒͷ্ݶ

    ෼ Λ௒͑ͯ͠·͏ ೥୯ҐͰ࣮ߦ͢ΔΑ͏ʹ੍ޚ͢Δ
  17. "844UFQ'VODUJPOT

  18. "NB[PO$MPVE8BUDI&WFOUT ΠϕϯτۦಈͰॲཧΛ࣮ߦͰ͖Δ "84Ϧιʔεͷมߋ &$ىಈఀࢭFUD ɺ"1*ίʔϧɺεέδϡʔϧ౳ ʹΑͬͯݺͼग़͞ΕΔ εέδϡʔϧΛ$SPOܗࣜͰఆٛͰ͖Δ 7VMTεΩϟϯͷ࣮ߦλΠϛϯάΛઃఆ͢ΔͨΊʹ༻͍Δ ྫ ຖ೔65$

    ʹ࣮ߦ
  19. "NB[PO$MPVE8BUDI-PHT ϩάϑΝΠϧΛอଘɺΞΫηεɺ؂ࢹ͕Ͱ͖Δ -BNCEBϑΝϯΫγϣϯͷ࣮ߦ݁Ռ΋ϩάͱͯ͠อ؅͞ΕΔ 7VMTεΩϟϯͷ࣮ߦʹࣦഊͨ͠৔߹ʹϩάΛݟΔͷʹ༻͍Δ

  20. /"5(BUFXBZ "84-BNCEBΛ71$಺Ͱಈ͔ͨ͢Ίʹඞཁɻ͜Ε͕ͳ͍ͱ71$಺͔Β 8"/ʹग़͍͚ͯͳ͍ ϚωʔδυαʔϏεͳͷͰӡ༻ཁΒ͕ͣͩߴ͍ /"5Πϯελϯε &$ Ͱ΋୅ସՄೳ͕ͩɺ৑௕ߏ੒ʹ͢ΔͳͲख͕ؒ ͔͔Δ ༧ࢉ࣍ୈ

  21. "NB[PO&$ εΩϟϯର৅ͷαʔό FDWVMTDPOpH ੿࡞Ͱ͕͢ŋŋŋ  IUUQTHJUIVCDPNPITBXBFDWVMTDPOpH &$ͷλάͰεΩϟϯର৅ΛϑΟϧλͯ͠7VMTͷઃఆϑΝΠϧΛॻ͖׵͑Δ ઃఆϑΝΠϧΛ-BNCEBͷύοέʔδʹಉࠝ͞ΕΔͨΊɺ
 εΩϟϯର৅͕มΘΔ౓ʹઃఆϑΝΠϧΛमਖ਼ͨ͘͠ͳ͍৔߹ʹ༗ޮ

  22. "84$MPVE'PSNBUJPO ςϯϓϨʔτΛఆٛͯͦ͠ͷ௨Γʹ"84ϦιʔεΛߏஙͯ͘͠ΕΔ ࠓ·Ͱͷઃఆ΋$MPVE'PSNBUJPOͰ࡞੒͢Ε͹Ұൃ ຊ೔ͷ7VMTࡇΓ·Ͱʹ$MPVE'PSNBUJPOςϯϓϨʔτΛެ։͔ͨͬͨ͠ ͷͰ͕͢ɺؒʹ߹͍·ͤΜͰͨ͠ ޙ೔ͳΔૣͰެ։༧ఆŋŋŋ

  23. '"2 Α͋͘Δ࣭໰

  24. 2Ͳͷ͙Β͍͓͕͔͔ۚΔͷʁ ೔ճεΩϟϯͯ͠ɺ4ʹεΩϟϯ݁ՌΛΞοϓϩʔυ͢Δ৔߹ "84-BNCEB ແྉ࿮಺  3%4GPS.Z42- 44%(# ݄ ECUNJDSP 4JOHMF";

     4݄ ໿(# 165ճ݄  /"5(BUFXBZ݄ /"5Πϯελϯεͷํ͕͍҆ ৽نͰ"84ΞΧ΢ϯτΛ࡞Δͱແྉ࿮ͰUNJDSP͕࢖͑Δ ˞౦ژϦʔδϣϯɺσʔλసૹྉۚ͸ؚΊ͍ͯͳ͍
  25. 23%4͕ߴ͍ "84-BNCEB͸࣮ߦ࣌ͷΈ՝ۚ͞ΕΔ͕ɺ3%4͸ৗ࣌ՔಇʹͳΔͷͰ
 ׂߴʹͳͬͯ͠·͏ εφοϓγϣοτͰอଘ͓͍ͯͯ͠ɺεΩϟϯલʹ෮ݩ͢Δͱྑ͍

  26. 2εΩϟϯͷ࣮ߦ͕෼ͰऴΘΒͳ͍ -BNCEBϑΝϯΫγϣϯͷϝϞϦΛ."9  .#  ݱࡏ ੬ऑੑ͕ཷ·Γ͗͢Δͱ͕͔͔࣌ؒΔͷͰ͜·ΊʹΞοϓσʔτ αʔόʹTTIͯ͠ίϚϯυଧͬͯΔͷͰεΩϟϯର৅αʔόଆ͕Ϙτϧ ωοΫʹͳͬͯΔ͔΋ -BNCEBͷ࣮ߦՄೳ͕࣌ؒ৳ͼΔͷΛ଴ͭʂΞοϓσʔτ଴ͪ

  27. 2$7&৘ใͷऔಘ͕෼Ͱ͸ऴΘΒͳ͍ ೥͝ͱʹऔಘͯ͠΋෼ͰऴΘΒͳ͍Մೳੑ͕ʜ ύϥϝʔλνϡʔχϯάΛؤுΔ *0͕ϘτϧωοΫʹͳ͍ͬͯΔ৔߹͕ଟ͍ ECUNJDSPͰ΋Ϧιʔε $16ɺϝϞϦ ͕ΧπΧπʹͳΔ͜ͱ͕͋·Γͳ͍ ࡳଋͰղܾ͢Δ ༰ྔ૿΍ͯ͠*014Λ্͛Δ 44%ͷ৔߹

     1SPWJTJPOFE*014ରԠΠϯελϯεʹεέʔϧΞοϓ -BNCEBͷ࣮ߦՄೳ͕࣌ؒ৳ͼΔͷΛ଴ͭʂΞοϓσʔτ଴ͪ
  28. 2εΩϟϯ݁ՌΛ௨஌͍ͨ͠ -BNCEB͔Β"NB[PO4&4Λݺͼग़ͯ͠εΩϟϯ݁ՌΛఴ෇ͨ͠
 ϝʔϧΛૹ৴ 4MBDL௨஌͸WVMTSFQPSUUPTMBDLͰͰ͖ΔͷͰָ

  29. 2εΩϟϯ݁ՌΛՄࢹԽ͍ͨ͠  4ʹ͋ΔϨϙʔτΛμ΢ϯϩʔυͯ͠7VMTSFQPͰ֬ೝ  "NB[PO&MBTUJDTFBSDI4FSWJDFʹऔΓࠐΜͰ,JCBOBͰ֬ೝ 4ʹϨϙʔτ͕165͞ΕͨΒΠϕϯτϑοΫͯ͠-BNCEBͰ &MBTUJDTFBSDIʹσʔλϩʔυ͢Δ

  30. ·ͱΊ 7VMTΛαʔόϨεͰ࣮ߦ͢ΔΞʔΩςΫνϟΛ঺հ Ұ౓࡞ͬͯ͠·͑͹ɺ΄΅์ஔͰεΩϟϯͯ͘͠ΕΔ ϚωʔδυαʔϏεΛ͏·͘׆༻ͯ͠ӡ༻ͷखؒΛݮΒͦ͏ ͍͟ͱͳͬͨΒࡳଋΛୟ͍ͯղܾ͠Α͏ ௨஌΍ՄࢹԽ͸΍ΓΑ͏͸͍͘ΒͰ΋͋Δ ࣗ෼ୡͱ૬ੑ͕͍͍πʔϧΛબఆ͢Δ

  31. ίϚϯυ࣮ߦྫ

  32. $7&৘ใͷऔಘ MPHEJSΛUNQҎԼͷσΟϨΫτϦʹࢦఆ͢Δ σϑΥϧτ WBSMPHWVMT ͩͱॻ͖ࠐΊͳ͍ .Z42-ͷϗετ໊͸3%4ͷΤϯυϙΠϯτ໊Λࢦఆ

  33. DPOpHUFTU TDBO SFTVMUEJSΛUNQҎԼͷσΟϨΫτϦʹࢦఆ͢Δ σϑΥϧτ 18%SFTVMUT ͩͱॻ͖ࠐΊͳ͍

  34. SFQPSU 4ʹΞοϓϩʔυ -BNCEBʹ4όέοτʹॻ͖ࠐΊΔݖݶΛ*".ϩʔϧͱͯ͠෇༩͢Δ "84ΞΫηεΩʔɺγʔΫϨοτΩʔΛࢦఆ͠ͳͯ͘΋Α͍