Microservicesにおけるサーバレスの使いどころ

 Microservicesにおけるサーバレスの使いどころ

C952d9f90c7ec6cb1b5513c05d3db536?s=128

yoshiyoshifujii

August 25, 2017
Tweet

Transcript

  1. .JDSPTFSWJDFTʹ͓͚Δ αʔόϨεͷ࢖͍Ͳ͜Ζ  'SJ !ZPTIJZPTIJGVKJJ

  2. ͜Μʹͪ͸ w:PTIJUBLB'VKJJ !ZPTIJZPTIJGVKJJ w4PGUXBSF&OHJOFFS w4DBMB+BWB1ZUIPO 5ZQFTDSJQU w4DBMBؔ੢4VNNJU4UB⒎ w4FSWFSMFTT0TBLB4UB⒎

  3. None
  4. None
  5. None
  6. ձ৔εϙϯαʔ΍ͬͯ·͢ ʮ੢ͷ੟஍ʯ ͱݺ͹Εͯ·͢

  7. ି͠ग़͠Ͱ͖Δ෦԰ w ηϛφʔϗʔϧ ໊  w ձٞࣨ ໊͔Β໊  w

    ΧϑΣεϖʔε ໊  w ϏΞόογϡͳͲͷ࠙਌ձ΋։࠵ՄೳͰ͢ʂ
  8. ೥݄೔ ౔  !ఱຬݚमηϯλʔ

  9. "84SF*/7&/5 /07Š%&$c-"47&("4 /7

  10. ࠓ೔͓࿩͢Δ಺༰ w.JDSPTFSWJDFTΛ͓͞Β͍ w4FSWFSMFTTͷద༻ॴ w࣮ࡍͷߏ੒

  11. ࠓ೔͓࿩͢Δ಺༰ w.JDSPTFSWJDFTΛ͓͞Β͍ w4FSWFSMFTTͷద༻ॴ w࣮ࡍͷߏ੒

  12. .JDSPTFSWJDFTΛ ͓͞Β͍͓͖ͯ͠·͠ΐ͏

  13. .JDSPTFSWJDFTͭͷಛ௃  αʔϏεΛ௨ͨ͡ίϯϙʔωϯ τԽ  Ϗδωε਱ߦೳྗʹؔΘΓ૊ ৫͕੔ཧ͞ΕΔ͜ͱ  ϓϩδΣΫτͰ͸ͳ͘ϓϩμΫ τ

     ݡ͍ TNBSU ΤϯυϙΠϯτͱ ౔؅  ෼ࢄ౷࣏  ෼ࢄσʔλ؅ཧ  ΠϯϑϥࣗಈԽ  ো֐ͷͨΊͷઃܭ  ਐԽతͳઃܭ ླ໦༤հ$MPVE'JSTU"SDIJUFDUVSFઃܭΨΠυʢ೔ܦ#1/FYU*$5બॻʣ  ,JOEMFͷҐஔ/P ೔ܦ#1,JOEMF൛
  14. ෳ਺αʔϏεͰߏ੒ w ͭͷΞϓϦέʔγϣϯΛΑΓখ͞ ͳ୯ҐͷʮαʔϏεʯͷ૊Έ߹Θ ͤͰߏ੒͢Δख๏ w ͦΕͧΕͷαʔϏε͸ݸผͷϓϩ ηεͰಈ࡞ w "1*Λ௨ͯ͡)551ͳͲͷඪ४తͳ

    ϓϩτίϧͰ࿈ܞ ླ໦༤հ$MPVE'JSTU"SDIJUFDUVSFઃܭΨΠυʢ೔ܦ#1/FYU*$5બॻʣ  ,JOEMFͷҐஔਤ ೔ܦ#1,JOEMF൛
  15. αʔϏε͝ͱͷϥΠϑαΠΫϧ wϞϊϦγοΫ Ұຕؠ ͩͱӨڹ ௐࠪʹ͕͔͔࣌ؒΔ wӨڹൣғ͸αʔϏε಺෦ʹด͡ Δ w࣮ࡍ͸ɺͦΜͳ୯७Ͱ͸ͳ͍ wαʔϏεͷ෼ׂ͕ॏཁͰɺ͍͔ ʹӨڹൣғΛαʔϏε಺෦ʹཹ

    ΊΔ͔ ླ໦༤հ$MPVE'JSTU"SDIJUFDUVSFઃܭΨΠυʢ೔ܦ#1/FYU*$5બॻʣ  ,JOEMFͷҐஔਤ ೔ܦ#1,JOEMF൛
  16. ૄ݁߹ͳαʔϏε࿈ܞ wૄ݁߹ͷ୅ද͸ʮΩϡʔʯΛ ༻͍ͨ࿈ܞ wαʔϏεಉ͕࢜௚઀࿈ܞͤͣ ʹࡁΉ wαʔϏεͷμ΢ϯλΠϜ౳Λ ؾʹ͠ͳͯ͘ྑ͍ w࿈ܞઌαʔϏεͷੑೳྼԽ ླ໦༤հ$MPVE'JSTU"SDIJUFDUVSFઃܭΨΠυʢ೔ܦ#1/FYU*$5બॻʣ 

    ,JOEMFͷҐஔਤ ೔ܦ#1,JOEMF൛
  17. σʔλϕʔε͸αʔϏε͝ͱʹ wैདྷγεςϜ͸ɺͭͷΞ ϓϦʹͭͷσʔλϕʔε wσʔλϕʔεڞ༗͸ੑೳ ͕໰୊ʹ w෼ࢄσʔλϕʔε͸੔߹ ੑ͕໰୊ʹ ླ໦༤հ$MPVE'JSTU"SDIJUFDUVSFઃܭΨΠυʢ೔ܦ#1/FYU*$5બॻʣ  ,JOEMFͷҐஔਤ

    ೔ܦ#1,JOEMF൛
  18. αʔϏεߏ੒؅ཧ wαʔόʔߏஙखଓ͖Λ ίʔυԽ w%PDLFS wΫϥ΢υಛ༗ͷ೉͠͞ ླ໦༤հ$MPVE'JSTU"SDIJUFDUVSFઃܭΨΠυʢ೔ܦ#1/FYU*$5બॻʣ  ,JOEMFͷҐஔਤ ೔ܦ#1,JOEMF൛

  19. ࠓ೔͓࿩͢Δ಺༰ w.JDSPTFSWJDFTΛ͓͞Β͍ w4FSWFSMFTTͷద༻ॴ w࣮ࡍͷߏ੒

  20. υϝΠϯۦಈઃܭ wୈ෦ઓུతઃܭ
 ୈষϞσϧͷ੔߹ੑ Λҡ࣋͢Δ wڥք͚ͮΒΕͨίϯςΩ ετΛ೺Ѳ͢Δ wγεςϜ͕ѻ͏υϝΠϯ Λཧղ͠ద੾ʹڥքΛઃ ܭ͢Δ &SJD&WBOTυϝΠϯۦಈઃܭʢᠳӭࣾʣ

    1ਤ ᠳӭࣾ
  21. ίϯςΩετϚοϓ wαʔϏεͷ੾Γޱ͸ɺίϯςΩετϚοϓʹै͏ wίϯςΩεταʔϏε w4FSWFSMFTT"SDIJUFDUVSF͕ద༻Ͱ͖Δ͔ wίϯςΩετͷಛੑ͔Β൑அ͢Δ

  22. ίϯςΩετͷಛੑ w$"1ఆཧ wίΞυϝΠϯ wυϝΠϯ஌ࣝͷཧղ౓

  23. $"1ఆཧ w੔߹ੑ$POTJTUFODZ wՄ༻ੑ"WBJMBCJMJUZ w෼அ଱ੑ1BSUJUJPOUPMFSBODF

  24. "1PS$1 w੔߹ੑΛ٘ਜ਼ʹ͢Δ"14FSWFSMFTT wՄ༻ੑΛ٘ਜ਼ʹ͢Δ$1ैདྷܕ wσʔλϕʔεΛαʔϏε͝ͱʹબ୒Ͱ͖Δ wίϯςΩετͷಛੑ͔Βݟग़͢

  25. ίΞυϝΠϯ wैདྷܕ wଞͷαʔϏεͱ࿈ܞ͕ଟ͍ w4FSWFSMFTT͸੍໿͕ଟ͘ɺͦͷ੍໿ʹΑͬͯɺ .JDSPTFSWJDFTʹӨڹ͢Δͷ͸μϝ wαʔϏεͷதʹด࣮ͯ͡ફ͢Δ΂͠

  26. υϝΠϯ஌ࣝͷཧղ౓ wཧղ͕ઙ͍ैདྷܕ wকདྷͷల๬͕͋Δఔ౓ݟ͍͑ͯΔ4FSWFSMFTT w੍໿ͷଟ͍4FSWFSMFTT wυϝΠϯ͕Αʔ෼͔ΒΜ͏ͪ͸΍Ίͱ͘

  27. ίϯςΩετͷಛੑΛ͔ͭΉ wಛੑʹ͍ͭͯ͸ɺυϝΠϯΤΩεύʔτͱͷର࿩ॏཁ wཧղΛޡΔͱɺ4FSWFSMFTTແཧͬͯͳͬͯख໭Δ wͱ͸͍͑ɺ%%%ͳߏ੒ͰϓϩάϥϜΛ૊Ήͱɺҙ֎ ͱ͢ΜͳΓΠέΔ͔΋ wϕϯμʔϩοΫΠϯͷۃখԽ͕Ͳ͜·Ͱग़དྷΔ͔

  28. ࠓ೔͓࿩͢Δ಺༰ w.JDSPTFSWJDFTΛ͓͞Β͍ w4FSWFSMFTTͷద༻ॴ w࣮ࡍͷߏ੒

  29. Amazon API Gateway client AWS Lambda Amazon S3 Amazon DynamoDB

    Amazon Kinesis AWS Lambda AWS Lambda Context + Token Principal + Policy Allowed Amazon CloudFront Amazon S3 Amazon CloudFront AWS Step Functions AWS Lambda AWS Lambda Amazon SQS
  30. Amazon API Gateway client AWS Lambda Amazon S3 Amazon DynamoDB

    Amazon Kinesis AWS Lambda AWS Lambda Context + Token Principal + Policy Allowed Amazon CloudFront Amazon S3 Amazon CloudFront AWS Step Functions AWS Lambda AWS Lambda Amazon SQS 41"
  31. 41" w4JOHMF1BHF"QQMJDBUJPO w.JDSPTFSWJDFTͰߏ੒͞ΕΔγεςϜͷϑϩϯτΤϯ υʹ࠷ద w41"ͷϞδϡʔϧ͸ɺίϯςΩετΛԣஅͯͭ͠ʹ ͳΔ wষ౷߹ϢʔβʔΠϯλϑΣʔε

  32. None
  33. Amazon API Gateway client AWS Lambda Amazon S3 Amazon DynamoDB

    Amazon Kinesis AWS Lambda AWS Lambda Context + Token Principal + Policy Allowed Amazon CloudFront Amazon S3 Amazon CloudFront AWS Step Functions AWS Lambda AWS Lambda Amazon SQS ೝূɾೝՄ
  34. ೝূɾೝՄ wೝূɾೝՄαʔϏεΛ࡞Δ w4FSWFSMFTTͰ࡞ΕΔ wΧελϜೝূ-BNCEBΛίϯςΩετؒͰڞ༗ w4DBMBͳΒೝূɾೝՄϩδοΫΛ+"3Ͱଞίϯς Ωετʹ഑෍

  35. Amazon API Gateway client AWS Lambda Amazon S3 Amazon DynamoDB

    Amazon Kinesis AWS Lambda AWS Lambda Context + Token Principal + Policy Allowed Amazon CloudFront Amazon S3 Amazon CloudFront AWS Step Functions AWS Lambda AWS Lambda Amazon SQS ඇಉظॲཧ
  36. ඇಉظॲཧ w,JOFTJT΍424͸ͱͯ΋ศར wίϯςΩετؒͷϝοηʔδॲཧʹ࢖͏ w1VCMJTIFSͱ4VCTDSJCFSͰɺ
 ࢓༷ͷऔΓܾΊΛ͢Δ w&WFOU5ZQFΛ൑ผ͠ɺ;ΓΘ͚Δߏ੒

  37. ࠓ೔͓࿩ͨ͠಺༰ w.JDSPTFSWJDFTΛ͓͞Β͍ w4FSWFSMFTTͷద༻ॴ w࣮ࡍͷߏ੒

  38. 4DBMB.BUTVSJ w4FSWFSMFTT "SDIJUFDUVSFΛ 4DBMBͰ΍ͬͯΈͨ࿩ Λ͠·ͨ͠