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

OWNERSを支えるサーバー レスアーキテクチャと、ukka におけるAWSの使い方

OWNERSを支えるサーバー レスアーキテクチャと、ukka におけるAWSの使い方

Hiroki Uemoto

January 10, 2019
Tweet

More Decks by Hiroki Uemoto

Other Decks in Technology

Transcript

  1. 08/&34Λࢧ͑Δαʔόʔ
    ϨεΞʔΩςΫνϟͱɺVLLB
    ʹ͓͚Δ"84ͷ࢖͍ํ

    View full-size slide

  2. גࣜձࣾ5FDI-FBEͷ

    ২ຊͱਃ͠·͢
    w ژ౎ൃͷελʔτΞοϓͰʙ$50ΛͭͱΊ·ͨ͠
    w ͦͷޙϑϦʔϥϯε
    w גࣜձࣾVLLBʹ5FDI-FBEͱͯ͠δϣΠϯ
    w ژ౎͔Β΁Ҿͬӽ͠

    View full-size slide

  3. ϛογϣϯ
    ̍̌̌೥ޙʹଓ͘৯ͱ೶ͷ͋Δ΂͖ܗΛ૑Δ
    ukka͸ɺ্هϛογϣϯͷͨΊʹ࡞ΒΕͨձࣾͰ͢ɻ
    ͜Ε͕࣮ݱͰ͖ͳ͚Ε͹ଘଓ͢Δཧ༝͸͋Γ·ͤΜɻ

    View full-size slide

  4. !7
    1.إ

    ୭͕৯΂͍ͯΔͷ͔෼͔ΒͣɺϞνϕʔγϣϯ
    ্͕͕Βͳ͍ɻ
    2.Ձ֨

    ೶ՈͷചՁ͕͍҆ɾ຤୺Ձ͔֨Βݟͯੜ࢈ऀऔ
    Γ෼͕গͳ͍ɻ೶Ոଆ͕Ձܾ֨ఆݖΛ͍࣋ͬͯ
    ͳ͍

    ऩ֭ޙʹചΓઌΛߟ͑Δ΍ΓํͰ͸ɺങ͍ୟ͔
    ΕΔՄೳੑɺ๛࡞ශ๡ͷՄೳੑ্͕͕Δɻ
    3.Ωϟογϡϑϩʔ

    ऩೖ͕҆ఆ͠ͳ͍ɻੜ࢈ͷͨΊʹआۚΛ͠ͳ͍
    ͱ͍͚ͳ͍ɻ
    ukka ͕औΓ૊Ήੜ࢈ऀଆͷ՝୊
    4.ܭըੑ

    ࠶ੜ࢈Մೳͳ஋ஈͰങͬͯ΋Β͑Δ͔ෆ໌ͳ··࡞෇͚
    ͠ͳ͚Ε͹ͳΒͣɺϦεΫΛੜ࢈ऀ͕ෛ͏ߏ଄ɻ
    5.࣭

    ຊ౰ʹͩ͜ΘΓͷ΋ͷΛੜ࢈͍͕ͨ͠ɺࢢ৔ʹ͸ग़ͤͳ
    ͍ͨΊɺཧղऀʹର͔ͯ͠͠ചΔ͜ͱ͕Ͱ͖ͳ͍ɻ(थ
    ্׬ख़ΠνδΫɺ༿औΒͣΓΜ͝ɺ౳ʑ)
    6.ن֨֎඼

    ຯɾ৯ײɾӫཆͱ͍ͬͨফඅऀʹͱͬͯͷՁ஋͕Ձ஋Խ
    ͞Εͣɺܗɾॏ͞ɾݟͨ໨͕نఆͱҧ͏ͱن֨֎඼ͱ͠
    ࣺͯͯΒΕΔͨΊɺച্ͷϩε͕େ͖͍͕ɺੜ࢈ऀଆ͔
    Β͓ۚΛऔΔ͜ͱ͸͠ͳ͍ɻ
    ukka ͸̎ͭͷࣄۀʹΑΓɺফඅऀɾ࣮धऀଆͷ՝୊ղܾΛ௨͡ɺ
    ಉ࣌ʹੜ࢈ऀଆͷ՝୊Λղܾ͍͖ͯ͠·͢ɻ

    View full-size slide

  5. શࠃͷͩ͜ΘΓ৯ࡐͷੜ࢈ऀ͕ࢀՃ͢Δɺ
    ೶ۀɾਫ࢈ɾՃ޻඼ͷΦʔφʔ੍౓ϓϥοτϑΥʔϜʮ08/&34ʯ
    ʪੜ࢈ऀɿϓϥϯఏڙʫ ʪফඅऀɿΦʔφʔొ࿥ʫ
    ੜ࢈ऀ͕࡞Δرগ৯ࡐʹରͯ͠ɺ͓ؾʹೖΓͷϓϥϯʹੜ࢈ஈ֊͔Β
    ҰޱΦʔφʔͱͯ͠ొ࿥͢Δ͜ͱͰɺੜ࢈ظؒதʹίϛϡχέʔγϣϯΛߦ͍ͳ͕Βɺ
    ࠷ऴతʹऩ֭͞Εͨ৯ࡐ͕ɺ࠷΋ඒຯ͍͠λΠϛϯάͰੜ࢈ऀ͔Β௚઀ಧ͘࢓૊ΈͰ͢ɻ

    View full-size slide

  6. 1.ಛผͳ৯ࡐΛ༧໿஫จ
    2.࠷΋ඒຯ͍࣌͠ظʹੜ࢈ऀ௚ૹ
    3.ίϛϡχέʔγϣϯͰܨ͕Δ
    4.ݱ஍΁ͷମݧʹ΋ࢀՃͰ͖Δ
    1.Ձܾ֨ఆݖΛ࣋ͯΔ

    2. Ωϟογϡϑϩʔͷվળ
    3.ࣄલొ࿥ܕͰܭըੜ࢈͕Ͱ͖Δ
    4.ఆৗతͳϑΝϯͮ͘Γ
    ੜ࢈ऀଆ ফඅऀଆ
    ߪೖͷΈͰ׬݁͢ΔECαΠτ΍ɺن֨Խ͞Εͨେن໛ྲྀ௨ͱ͸ҟͳΓɺ
    ʮ࡞Δਓɺ৯΂Δਓͱͷೱ͍ؔ܎ੑʯΛੜΈग़͍ͯ͠·͢ɻ
    08/&34͕ղܾɾ࣮ݱ͢Δ͜ͱ

    View full-size slide

  7. ·ͣࠓ೔ͷ͓Έ΍͛ʹ͍ͭͯ
    w :"."6$)*'"3.

    View full-size slide

  8. ʹ͓͚Δ"84ͷ࢖͍ํ

    View full-size slide

  9. ࠓ೔࿩͢͜ͱ
    w 95FDI+"84ͳͷͰ"84دΓͳ࿩͠·͢
    w -BNCEBͷӡ༻
    w %ZOBNP%#ͷӡ༻
    w "UIFOBͷӡ༻
    w αʔόʔϨεΞʔΩςΫνϟͱ͍͏બ୒

    View full-size slide

  10. ࡢ೥08/&34ΛϑϧϦχϡʔ
    Ξϧ͠·ͨ͠

    View full-size slide

  11. ϦχϡʔΞϧલ

    View full-size slide

  12. ͍Ζ͍Ζม͑ͨ
    w ˠ
    w ࣗ෼͕࣮૷͢ΔͳΒҰ൪ૣ͍ݴޠͩͬͨͷͰ
    w &-#&$ˠαʔόʔϨε "1*(BUFXBZ-BNCEB

    w ؅ཧָεέʔϥϒϧͳͷͰ
    w .Z42-ˠ%ZOBNP%#
    w εΩʔϚϨεͳͷͰαʔϏεͷվળࢪࡦ ࢓༷มߋʹॊೈʹରԠͰ͖Δ
    w $JSDMF$*ೖΕͨ
    w UFTUࣗಈԽ
    w EFQMPZࣗಈԽ

    View full-size slide

  13. ϩʔΧϧͷ؀ڥΛԽ
    w ਓ͕૿͑ͨ࣌ʹ؀ڥߏஙͰׂ͍࣌ؒͯཉ͘͠ͳ͍
    w EPDLFS EPDLFSNBDIJOF EPDLFSDPNQPTF
    w AEPDLFSDPNQPTFVQEAͰඞཁͳ΋ͷ্ཱ͕ͪΔΑ͏ʹͨ͠
    w 1ZUIPO
    w QZUFTU
    w 4FSWFSMFTT'SBNFXPSL
    w HVMQ
    w ͱ͔͍Ζ͍Ζ

    View full-size slide

  14. σϓϩΠ
    w ઈରʹਓͷखͰσϓϩΠ͠ͳ͍ͱ͍͏ڧ͍͓ؾ࣋ͪͰσϓϩΠϑϩʔΛ੔
    ͑ͨ
    w ܦ༝ͰσϓϩΠ
    w EFWFMPQ΁ϚʔδˠTUBHJOH؀ڥ΁ࣗಈσϓϩΠ
    w NBTUFS΁ϚʔδˠQSPEVDUJPO؀ڥ΁ࣗಈσϓϩΠ
    w EPDLFSDPNQPTFFYFDBQQNBLFEFQMPZFOWQSPEͰσϓϩΠ
    w $JSDMF$*্Ͱ΋ϩʔΧϧͰ΋ಉ͡ͳͷͰίέͨΒखݩͰݕূͰ͖Δ
    w ίέͨΒ4MBDLʹྲྀ͍ͯ͠Δ

    View full-size slide

  15. -BNCEBͷӡ༻

    View full-size slide

  16. -BNCEBͷӡ༻
    w 8FCαʔϏεຊମ͸-BNCEBͰӡ༻
    w ϩά͸$MPVE8BUDI
    w BXTMPHTίϚϯυͰݟͨΓ
    w όονॲཧ͸4DIFEVMFE-BNCEBͰ
    w σϓϩΠ͸4FSWFSMFTT'SBNFXPSLΛ࢖ͬͯ
    w $JSDMF$*͔Β

    View full-size slide

  17. "-#&$ˠ-BNCEBʹͯ͠Ͳ͏ʁ
    w "1*(BUFXBZ-BNCEB͸ςΩετσʔλҎ֎Λѻ͓͏ͱ͢Δ
    ͱ΋Ζ΋ΖΊΜͲ͕͋͘͞͞Δ
    w TUBUJDͳ΋ͷ͸$MPVE'SPOU4Ͱ
    w Ξοϓϩʔυ͸ϑϩϯτ͔Β௚઀4ʹ
    w QSFTJHOFE63-Λൃߦͯ҆͠શʹ
    w ͍҆ʂ
    w ˠ

    View full-size slide

  18. %ZOBNP%#ͷӡ༻

    View full-size slide

  19. ࠷ۙͷ%ZOBNP%#ͷӡ༻
    w 08/&34͸ϑϧ%ZOBNP%#Ͱӡ༻͍ͯ͠·͢
    w QSPEVDUJPO TUBHJOH؀ڥ߹Θͤͯςʔϒϧ΄Ͳ
    w ศར͕ͩ΋Ζ΋ΖͭΒΈ͕͋ͬͨ
    w νϚνϚͱΩϟύγςΟΛνϡʔχϯά
    w ༨༟Λ΋ͬͯΩϟύγςΟΛઃఆ͢Δඞཁ͕͋Δ
    w ϦβʔϒυΩϟύγςΟͰઅ໿
    w BVUPTDBMJOH͸͋Δ͕ద੾ʹᮢ஋Λઃఆ͠ͳ͍ͱ1SPWJTJPOFE5ISPVHIQVU
    &YDFFEFE&YDFQUJPO
    w JOEFY͝ͱʹઃఆ͢Δඞཁ΋͋Δ

    View full-size slide


  20. 0O%FNBOE$BQBDJUZൃද

    View full-size slide

  21. ͸͍ɺ଎߈Ͱ࢖͍·ͨ͠
    w ΩϟύγςΟͷνϡʔχϯά͔Βͷ։์
    w 1SPWJTJPOFE5ISPVHIQVU&YDFFEFE&YDFQUJPO͔Βͷ։์
    w ҆͘ͳͬͨʂ
    w ˠ
    w Ͳ͏ͯ͠΋ϑϧεΩϟϯ͠ͳ͍ͱ͍͚ͳ͍෦෼͕͋ͬͨ
    w ༨༟Λ࣋ͬͯઃఆ͍ͯͨ͠෼Λઅ໿Ͱ͖ͨ
    w ߇͑Ίʹݴͬͯ࠷ߴ

    View full-size slide

  22. "UIFOBͷӡ༻

    View full-size slide

  23. ฐࣾϚʔέλʔʮ42-ॻ͖͍ͨΜ
    Ͱ͚͢Ͳʯ

    View full-size slide

  24. ࢲʮϚδ͔ʯ

    View full-size slide

  25. ࣮૷ແ͠Ͱ%ZOBNP%#ˠ
    "UIFOBʹσʔλΛྲྀͨ͠
    w "84(MVF͕ΩϞ
    w %ZOBNP%#Λ(MVF͔Βϑϧε
    Ωϟϯ
    w &5-+PCͰKTPOΛ4΁
    w "UIFOBͰΫΤϦ
    w "84ͷίϯιʔϧ͔Βϙνϙ
    νͨ͠ΒͰ͖ͨ ͍͢͝

    View full-size slide

  26. "UIFOBͲ͏͔
    w #JH2VFSZ΋ྑ͍͕"UIFOB΋Ϩεϙϯεे෼ૣ͍
    w ࣮૷ແ͠Ͱ%ZOBNP%#͔Βղੳ༻%#ʹσʔλྲྀͤΔͷ͸ڧ͍
    w "UIFOB͸͍҆
    w (MVFͰ&5-KPCΛ·Θ͍ͯ͠Δ෦෼͕NPOUI͙Β͍
    w ඞཁͳςʔϒϧ͚ͩ΄Ͳ"UIFOBʹྲྀ͍ͯ͠Δ
    w %ZOBNP%#ଆͰεΩʔϚʹมߋ͕͋ͬͨΒखಈͰ&5-KPCΛ࡞
    Γ௚͢ඞཁ͕͋Δ

    View full-size slide

  27. αʔόʔϨεΞʔΩςΫνϟͱ
    ͍͏બ୒

    View full-size slide

  28. ͳͥαʔόʔϨεͰͷӡ༻ΛܾΊ͔ͨ
    w ݩʑαʔόʔϨεͰͷӡ༻ܦݧ͕͋ͬͨ
    w αʔϏεͷ։ൃʹूதͰ͖ΔΑ͏ʹ͔ͨͬͨ͠
    w OHJOYͱ͔ϛυϧ΢ΣΞͷνϡʔχϯάʹͳΔ΂࣌ؒ͘
    ΛͱΒΕͨ͘ͳ͔ͬͨ

    View full-size slide

  29. ӡ༻ͯ͠Έͯײͨ͡ϝϦοτ
    w εέʔϥϒϧ
    w ӡ༻ָ͕
    w αʔόʔΛϋʔυͱͯ͠ҙࣝͤͣʹࡁΉ
    w όονॲཧͷͨΊʹৗ࣌ىಈ͍ͯ͠ΔαʔόʔΛ༻ҙ͠ͳ
    ͯ͘Α͍
    w ͍҆ʂ

    View full-size slide

  30. "84ͰαʔόʔϨε΍ΔͳΒ͜͜ʹ஫ҙ
    w "84-BNCEBͷಉ࣮࣌ߦ਺্ݶ͸
    w ਃ੥͕ඞཁͳͷͰ࠷ॳ͔ΒΞΫηε͕ݟࠐ·ΕΔͳΒ։ൃஈ
    ֊Ͱਃ੥͠·͠ΐ͏
    w -BNCEBͷ࣮ߦ࣌ؒ͸෼ˠ෼ʹͳͬͨ
    w όονॲཧΛ-BNCEBͰಈ͔͢ͳΒ஫ҙ
    w "1*(BUFXBZ͔ΒͷςΩετҎ֎Λ഑৴͠ͳ͍
    w TUBUJDͳ΋ͷ͸4$MPVE'SPOUʹ͠Α͏

    View full-size slide

  31. WE’RE HIRING
    w೶ɾ৯ʹڵຯ͋ΔΤϯδχΞͷํ
    w ڵຯͳͯ͘΋ΤϯδχΞͷํ

    wଞɺશํҐͷ৬छืू͍ͯ͠·͢

    View full-size slide