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

なぜサーバーレスとDockerなのか 〜 インフラ運用を最小化するサービス開発 〜 / Why We Choose Serverless AND Docker

なぜサーバーレスとDockerなのか 〜 インフラ運用を最小化するサービス開発 〜 / Why We Choose Serverless AND Docker

Mitsuki Ogasahara

December 15, 2018
Tweet

More Decks by Mitsuki Ogasahara

Other Decks in Technology

Transcript

  1. ͳͥαʔόʔϨεͱ%PDLFSͳͷ͔
    ʙΠϯϑϥӡ༻Λ࠷খԽ͢ΔαʔϏε։ൃʙ
    খּݪΈ͖ͭ / @yamitzky
    2018.12.15 Developers Boost C-4

    View full-size slide

  2. w+9௨৴ࣾ71PG&OHJOFFSJOH
    w/FXT%JHFTU΁ͷ(SBQI2-΍αʔόʔϨεͷಋೖɺ

    ϩάج൫ͷ։ൃͳͲ
    w8%#13&44΁αʔόʔϨεಛूΛدߘ
    ࣗݾ঺հ

    View full-size slide

  3. w+9௨৴ࣾͷνʔϜ։ൃͰ͸ʜ
    wʮ%PDLFSΫϥελʔʯͱʮαʔόʔϨεʯΛ࢖͍෼͚ͯ

    σϓϩΠ
    wػೳΛ࡞ΔΤϯδχΞ͕։ൃʙσϓϩΠʙӡ༻·Ͱ΍Δ
    ຊ೔ͷςʔϚ
    ˠ8IZͱ)PXΛ఻͍͑ͨ
    ˞ʮ%PDLFSͱ͸ʯʮαʔόʔϨεͱ͸ʯʹ͍ͭͯ͸࿩͠·ͤΜ

    View full-size slide

  4. wʮαʔόʔϨεʯͱ͸
    wࠓճ͸ɺ'BB4ʹݶఆͯ͠࿩͠·͢
    w-BNCEBɺ'JSFCBTF$MPVE'VODUJPOͳͲ
    wʮσϓϩΠʯͱ͸
    wΞϓϦέʔγϣϯίʔυ "1*αʔόʔɺόονͳͲ
    Λ

    Ϋϥ΢υ؀ڥͰಈ͘Α͏ʹ͢Δ͜ͱɺʹݶఆ͠·͢
    ༻ޠͷલఏ

    View full-size slide

  5. +9ͷʮΠϯϑϥʯͷτϨϯυ
    ˞֓ཁͷͨΊɺҟͳΔߏ੒ͷϓϩδΣΫτ΋͋Γ·͢
    714*BB4ظ
    αʔόʔϨε׆༻ظ
    %PDLFSԽظ
    ੲ ࠓ

    View full-size slide

  6. w&$΍͘͞Βͷ714ͳͲ
    w"OTJCMF΍&MBTUJD#FBOTUBMLɺखಈσϓϩΠͳͲ·ͪ·ͪ
    ॳظɿ714ɾ*BB4ظ

    View full-size slide

  7. wεέʔϥϏϦςΟ͕ٻΊΔج४ΑΓ௿͔ͬͨ
    wΠϯϑϥͷӡ༻ίετ͕ߴ͔ͬͨ
    wϓϩδΣΫτʹΑͬͯӡ༻ํ๏΋όϥόϥ
    w̍γεςϜʹ࠷௿̍୆ׂΓ౰ͯΔͱɺίετߴ
    ͭΒ͔ͬͨ͜ͱ

    View full-size slide

  8. ಥવͰ͕͢ɺɺɺ
    χϡʔδʔϥϯυͰ͸ɺਓؒΑΓώπδͷํ͕ଟ͍

    View full-size slide

  9. ಥવͰ͕͢ɺɺɺ
    +9௨৴ࣾͰ΋ɺΤϯδχΞΑΓγεςϜͷํ͕ଟ͍
    "1*
    ؂ࢹόον
    ΞΫηεղੳ
    هࣄղੳ

    View full-size slide

  10. wεέʔϥϏϦςΟ͕ٻΊΔج४ΑΓ௿͔ͬͨ
    wΠϯϑϥͷӡ༻ίετ͕ߴ͔ͬͨ
    wϓϩδΣΫτʹΑͬͯӡ༻ํ๏΋όϥόϥ
    w̍γεςϜʹ࠷௿̍୆ׂΓ౰ͯΔͱɺίετߴ
    ͭΒ͔ͬͨ͜ͱ
    ˠΠϯϑϥ؅ཧ͸ָʹ΍Γ͍ͨ

    View full-size slide

  11. +9ͷʮΠϯϑϥʯͷτϨϯυ
    714*BB4ظ
    αʔόʔϨε׆༻ظ
    %PDLFSԽظ
    ੲ ࠓ

    View full-size slide

  12. w࣍ͷσϓϩΠ؀ڥΛ४උ͠ɺ֤։ൃΤϯδχΞ͕σϓϩΠ
    w&$4ͷ%PDLFSΫϥελʔ
    wαʔόʔϨε -BNCEB

    w*BB4ΛૉͰ࢖͏͜ͱ͸΄΅ͳ͍
    ݱࡏ
    ˞ͨ·ʹ1BB4΋࢖͍·͢

    View full-size slide

  13. wΠϯϑϥͷ؅ཧ΍༧໿͕ෆཁ
    wߴ͍εέʔϥϏϦςΟͱίετޮ཰
    wৗறϓϩηε͕ͳ͍ϥΠϑαΠΫϧ
    αʔόʔϨε 'BB4

    View full-size slide

  14. w֤ϓϩδΣΫτͰ%PDLFSpMFΛ४උͯ͠σϓϩΠ
    wεϙοτΠϯελϯεத৺ͰΫϥελʔΛߏங
    %PDLFSΫϥελʔ

    View full-size slide

  15. wΠϯϑϥͷ४උ͸ඞཁ͕ͩɺɺɺ
    w%PDLFSͳͲগ͠ͷϛυϧ΢ΣΞ͕ඞཁͳ͚ͩͳͷͰɺηοτ
    Ξοϓ͕؆୯ ਺ߦͷγΣϧ

    wεϙοτΠϯελϯεͰ͋Ε͹ɺӬଓԽ͞ΕͨΠϯελϯε͸
    ͳ͘ɺݹ͍΋ͷ͸ॱ࣍ೖΕସ͑ΒΕΔ
    <ิ଍>%PDLFSΫϥελʔͷΠϯϑϥ
    ˠ*BB4714࣌୅ΑΓɺ͔ͳΓָ

    View full-size slide

  16. ग़͖ͯͨ΋ͷΛͬ͘͟Γ࠶੔ཧ
    ந৅౓ ߴ
    ௿
    714*BB4
    %PDLFS
    Ϋϥελʔ
    αʔόʔϨε

    'BB4

    ӈʹߦ͘΄ͲɺΠϯϑϥ؅ཧ͕؆୯
    ࠨʹߦ͘΄Ͳɺࣗ༝౓͕ߴ͍

    View full-size slide

  17. wΞϓϦέʔγϣϯ͔ΒݟΔͱࣅͨΑ͏ͳϝϦοτ
    wॊೈͳΩϟύγςΟࢦఆ
    w਺ϛϦඵʙ਺ඵͰىಈʗ࡟আͰ͖ΔԾ૝Խ؀ڥ
    wΫϥ΢υ͔Βͷڧ͍αϙʔτ
    %PDLFS؀ڥͱαʔόʔϨεͷϝϦοτ
    ˠػೳɾϩδοΫʹूதͰ͖Δ

    View full-size slide

  18. wಛੑ͕ҧ͏ͷͰɺ࢖͍෼͚͍ͨ
    %PDLFS؀ڥͱαʔόʔϨεͷൺֱ
    %PDLFS αʔόʔϨε
    Πϯϑϥ؅ཧ ඞཁ ෆཁ
    ࣗ༝౓ ߴ͍ ௿͍
    ϕϯμʔґଘ ऑ͍ ڧ͍
    ϓϩηε

    Քಇ࠷େ࣌ؒ
    ௕͍ ୹͍
    DG$/$'4FSWFSMFTT8IJUFQBQFSW

    View full-size slide

  19. wϓϩηεΛৗற͍ͤͨ͞
    wϝϞϦ্ʹ௕ظؒΩϟογϡΛอ͍࣋ͨ͠
    wΫϥ΢υͷઃ੍͚ͨ໿ΛΦʔόʔ͢Δ৔߹
    wˠ*BB4࣌୅ͱ͸ผͷτϥϒϧ΋ى͖Δ
    αʔόʔϨε͕߹Θͳ͍έʔε΋

    View full-size slide

  20. wσϝϦοτΛ௵͠ɺಉ࣭Խ͢Δٕज़τϨϯυ΋
    %PDLFS؀ڥͱαʔόʔϨεͷൺֱ
    %PDLFS αʔόʔϨε
    Πϯϑϥ؅ཧ ඞཁ ෆཁ
    ࣗ༝౓ ߴ͍ ௿͍
    ϕϯμʔґଘ ऑ͍ ڧ͍
    ϓϩηε

    Քಇ࠷େ࣌ؒ
    ௕͍ ୹͍

    View full-size slide

  21. %PDLFSԽʗαʔόʔϨεԽͰಘΒΕͨ͜ͱ
    ઃܭ ։ൃ σϓϩΠ ӡ༻؂ࢹ
    DG/FUqJY`Tl'VMM$ZDMF%FWFMPQFSTz
    ςετ

    View full-size slide

  22. $*$%ΛࣗಈԽɾڞ௨Խ
    %PDLFSԽʗαʔόʔϨεԽͰಘΒΕͨ͜ͱ
    ઃܭ ։ൃ σϓϩΠ ӡ༻؂ࢹ
    ςετ
    ࣗಈԽ͠ɺ

    $*$%Λڞ௨Խɾ؆қԽ
    "NB[PO$MPVE8BUDIͳͲͰ

    ڞ௨Խ

    View full-size slide

  23. %PDLFSԽʗαʔόʔϨεԽͰಘΒΕͨ͜ͱ
    ઃܭ ։ൃ σϓϩΠ ӡ༻؂ࢹ
    ςετ
    ࣗಈԽɾڞ௨Խ͠΍͘͢ͳͬͨͷͰɺ
    ։ൃ͔ΒઌͷλεΫΛશһ͕΍Γ΍͘͢ͳͬͨ
    ඪ४Խ͞ΕͯΔͷͰɺ

    ଞνʔϜͷτϥϒϧ΋αϙʔτ͠΍͍͢

    View full-size slide

  24. αʔόʔϨεͱ%PDLFS؀ڥ͸ϝϦοτ͕ࣅ͍ͯͯ

    ʮҰ௕Ұ୹ͳσϓϩΠ؀ڥͷҰͭʯ

    ͱଊ͑ɺ࢖͍෼͚͍ͯΔ͔Β
    ͳͥαʔόʔϨεʮͱʯ%PDLFSͳͷ͔

    View full-size slide

  25. %PDLFSʗαʔόʔϨε؀ڥͰͷҧ͍
    ઃܭ ։ൃ σϓϩΠ ӡ༻؂ࢹ
    ςετ
    େ͖ͳҧ͍͸͜͜ʂ

    View full-size slide

  26. wϓϩδΣΫτͷ%PDLFSԽ
    w$*ఆٛͷڞ௨Խ
    wΞϥʔτͷڞ௨Խ
    %PDLFSΫϥελʔʮͱʯαʔόʔϨεͷ׆༻ͷͨΊʹ

    View full-size slide

  27. wσϓϩΠઌ͕αʔόʔϨεͰ͋ͬͯ΋ɺEPDLFSDPNQPTFVQͰ
    ։ൃ؀ڥ্ཱ͕͕ͪΔΑ͏ʹ࡞Δ

    ʹʮαʔόʔϨεͰ΋ಈ͘ɺͨͩͷΞϓϦέʔγϣϯʯͱͯ͠࡞Δ
    wઃܭ͕αʔόʔϨεґଘʹͳΒͳ͍
    wαʔόʔϨε͕߹Θͳͯ͘΋Ҡߦ͠΍͍͢
    wσϓϩΠҎ֎͕ڞ௨Խ͠΍͍͢
    ϓϩδΣΫτͷ%PDLFSԽ

    View full-size slide

  28. Container vs Serverless?
    IUUQTUXJUUFSDPNBDMPVEHVSVTUBUVT

    View full-size slide

  29. Container vs Serverless?
    IUUQTUXJUUFSDPNBDMPVEHVSVTUBUVT
    Container AND Serverless!!!

    View full-size slide

  30. w*BB4͔Β%PDLFSԽʗαʔόʔϨεԽʹΑͬͯ
    wΠϯϑϥͷӡ༻ίετ͕Լ͕ͬͨ
    w։ൃͨ͠ΤϯδχΞ͕σϓϩΠɾӡ༻·Ͱݟ΍͘͢ͳͬͨ
    w։ൃɾσϓϩΠɾӡ༻ͷ࢓૊Έ͕ڞ௨Խ͞Εͨ
    wʲએ఻ʳ+9Ͱ͸αʔϏεΛ'VMM$ZDMFͰ։ൃ͍ͨ͠ΤϯδχΞ
    ΛืूதͰ͢
    ·ͱΊ

    View full-size slide