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

Cloud Runでシステムを作るためのアーキテクチャのTipsとコストの話

Keke
December 14, 2019

Cloud Runでシステムを作るためのアーキテクチャのTipsとコストの話

@ServerlessDays Fukuoka 2019

Keke

December 14, 2019
Tweet

More Decks by Keke

Other Decks in Technology

Transcript

  1. “About me” Keke Twitter: @_k_e_k_e New Grad Merpay SRE team

    Hobby: Reading Novels, Comics Attended KubeCon 2019 NA Born in Yamaguchi l4FWFSMFTT%BZT'VLVPLB,FLF 5XJUUFS!@L@F@L@F z
  2. Α͘തଟʹ༡ͼʹདྷͯͨɺΘΓ͔͠ϗʔϜʂʂʂ “About me” Keke Twitter: @_k_e_k_e New Grad Merpay SRE

    team Hobby: Reading Novels, Comics Attended KubeCon 2019 NA Born in Yamaguchi l4FWFSMFTT%BZT'VLVPLB,FLF 5XJUUFS!@L@F@L@F z
  3. “WIASʹ͓͚ΔServerlessͷࣄྫ” “WIASͬͯʁ” “Wi-Fi Attendance System” “Wi-FiʹΑΔۈଵଧࠁγεςϜ” l4FWFSMFTT%BZT'VLVPLB,FLF 5XJUUFS!@L@F@L@F z l4FWFSMFTT%BZT'VLVPLB,FLF

    5XJUUFS!@L@F@L@F z ৄࡉ ʮࣾһମݧʯΛ௥ٻͨ͠8J'JଧࠁγεςϜ8*"4Λ։ൃɺϝϯςφϯε͍ͯ͠Δ࿩ʯ https://tech.mercari.com/entry/2019/08/30/100000
  4. 3. ։ൃʹूதͰ͖Δ 4. ߴՄ༻ੑ 2. ࣗಈεέʔϧ 1. ϑϧϚωʔδυͳΞϓϦέʔγϣϯ࣮ߦ؀ڥͷఏڙ Serverless PaaSͷಛ௃

    l4FWFSMFTT%BZT'VLVPLB,FLF 5XJUUFS!@L@F@L@F z ͳͲʜ “҆௚ͳࢥ͍ࠐΈ”
  5. “ΞʔΩςΫνϟͷTipsͱίετ” "1*3FRVFTU "1*3FRVFTU "1*3FTQPOTF "1*3FTQPOTF "QQ "QQ "1*3FRVFTU "1*3FTQPOTF "QQ

    ʜ "1*3FRVFTU "1*3FTQPOTF "QQ/ “ΠϕϯτΛߜΔ͜ͱʹ஫ྗ͢Δ” ՝ֹۚ ≒ Πϕϯτ਺ × ίϯϙʔωϯτ਺ l4FWFSMFTT%BZT'VLVPLB,FLF 5XJUUFS!@L@F@L@F z
  6. “ΞʔΩςΫνϟͷTipsͱίετ” "1*3FRVFTU "1*3FRVFTU "1*3FTQPOTF "1*3FTQPOTF "QQ "QQ "1*3FRVFTU "1*3FTQPOTF "QQ

    ʜ "1*3FRVFTU "1*3FTQPOTF "QQ/ “ΠϕϯτΛߜΔ͜ͱʹ஫ྗ͢Δ” ՝ֹۚ ≒ Πϕϯτ਺ × ίϯϙʔωϯτ਺ Πϕϯτ͕ൃՐ͢ΔτϦΨʔΛݟ௚͢ͳͲ ίϯϙʔωϯτͷ෼཭ํ๏Λߟ͑௚͢ l4FWFSMFTT%BZT'VLVPLB,FLF 5XJUUFS!@L@F@L@F z
  7. “ΞʔΩςΫνϟͷTipsͱίετ” "1*3FRVFTU "1*3FRVFTU "1*3FTQPOTF "1*3FTQPOTF "QQ "QQ "1*3FRVFTU "1*3FTQPOTF "QQ

    ʜ "1*3FRVFTU "1*3FTQPOTF "QQ/ “ΠϕϯτΛߜΔ͜ͱʹ஫ྗ͢Δ” ՝ֹۚ ≒ Πϕϯτ਺ × ίϯϙʔωϯτ਺ Πϕϯτ͕ൃՐ͢ΔτϦΨʔΛݟ௚͢ͳͲ ίϯϙʔωϯτͷ෼཭ํ๏Λߟ͑௚͢ l4FWFSMFTT%BZT'VLVPLB,FLF 5XJUUFS!@L@F@L@F z
  8. “ΞʔΩςΫνϟͷTipsͱίετ” "1*3FRVFTU "1*3FRVFTU "1*3FTQPOTF "1*3FTQPOTF "QQ "QQ "1*3FRVFTU "1*3FTQPOTF "QQ

    ʜ "1*3FRVFTU "1*3FTQPOTF "QQ/ “ΠϕϯτΛߜΔ͜ͱʹ஫ྗ͢Δ” ՝ֹۚ ≒ Πϕϯτ਺ × ίϯϙʔωϯτ਺ Πϕϯτ͕ൃՐ͢ΔτϦΨʔΛݟ௚͢ͳͲ ίϯϙʔωϯτͷ෼཭ํ๏Λߟ͑௚͢ ޙड़ l4FWFSMFTT%BZT'VLVPLB,FLF 5XJUUFS!@L@F@L@F z
  9. “ΞʔΩςΫνϟͷTipsͱίετ” "1*3FRVFTU "1*3FRVFTU "1*3FTQPOTF "1*3FTQPOTF "QQ "QQ "1*3FRVFTU "1*3FTQPOTF "QQ

    ʜ "1*3FRVFTU "1*3FTQPOTF "QQ/ “ΠϕϯτΛߜΔ͜ͱʹ஫ྗ͢Δ” ՝ֹۚ ≒ Πϕϯτ਺ × ίϯϙʔωϯτ਺ Πϕϯτ͕ൃՐ͢ΔτϦΨʔΛݟ௚͢ͳͲ ίϯϙʔωϯτͷ෼཭ํ๏Λߟ͑௚͢ l4FWFSMFTT%BZT'VLVPLB,FLF 5XJUUFS!@L@F@L@F z Πϕϯτ਺ ϑϩʔͷεςοϓ  ͦ΋ͦ΋࠷ॳͷΠϕϯτ਺͕গͳ͍͜ͱ  Πϕϯτ਺͕ݮਰ͢Δ͜ͱ
  10. “ΞʔΩςΫνϟͷTipsͱίετ” "1*3FRVFTU "1*3FRVFTU "1*3FTQPOTF "1*3FTQPOTF "QQ "QQ "1*3FRVFTU "1*3FTQPOTF "QQ

    ʜ "1*3FRVFTU "1*3FTQPOTF "QQ/ “ΠϕϯτΛߜΔ͜ͱʹ஫ྗ͢Δ” ՝ֹۚ ≒ Πϕϯτ਺ × ίϯϙʔωϯτ਺ Πϕϯτ͕ൃՐ͢ΔτϦΨʔΛݟ௚͢ͳͲ ίϯϙʔωϯτͷ෼཭ํ๏Λߟ͑௚͢ l4FWFSMFTT%BZT'VLVPLB,FLF 5XJUUFS!@L@F@L@F z Πϕϯτ਺ ϑϩʔͷεςοϓ  ͦ΋ͦ΋࠷ॳͷΠϕϯτ਺͕গͳ͍͜ͱ  Πϕϯτ਺͕ݮਰ͢Δ͜ͱ Πϕϯτ਺͕Լ͕Δͱ ɾݺͼग़͠ճ਺ ɾىಈ͞ΕΔίϯϙʔωϯτ਺͕Լ͕Δ Πϕϯτ਺͸࠷େͷϘτϧωοΫ
  11. “ΞʔΩςΫνϟͷTipsͱίετ” "1*3FRVFTU "1*3FRVFTU "1*3FTQPOTF "1*3FTQPOTF "QQ "QQ "1*3FRVFTU "1*3FTQPOTF "QQ

    ʜ "1*3FRVFTU "1*3FTQPOTF "QQ/ ՝ۚର৅ “ಉظతͳػೳ͸෼཭͠ͳ͍” l4FWFSMFTT%BZT'VLVPLB,FLF 5XJUUFS!@L@F@L@F z ՝ۚର৅ ՝ۚର৅ ՝ۚର৅ ՝ۚର৅
  12. l4FWFSMFTT%BZT'VLVPLB,FLF 5XJUUFS!@L@F@L@F z “ΞʔΩςΫνϟͷTipsͱίετ” "1*3FRVFTU "1*3FRVFTU "1*3FTQPOTF "1*3FTQPOTF "QQ "QQ

    "1*3FRVFTU "1*3FTQPOTF "QQ ʜ "1*3FRVFTU "1*3FTQPOTF "QQ/ “ಉظతͳػೳ͸෼཭͠ͳ͍”     º º º ʹ ෼཭͢Δͱ৴པੑͷ୲อʹ޻෉͕͍Δ
  13. “ΞʔΩςΫνϟͷTipsͱίετ” "1*3FRVFTU "QQ "QQ “ඇಉظతͳػೳ͸෼཭͢Δ” "1*3FTQPOTF 1VCMJTI 1VTI ՝ۚର৅ l4FWFSMFTT%BZT'VLVPLB,FLF

    5XJUUFS!@L@F@L@F z ɾىಈ͍ͯ͠Δ͕࣌ؒॏෳ͕গͳ͘ͳΔ ɾݺͼग़͠ճ਺͸૿͑Δ͕τϨʔυΦϑ  "QQ͕ॏ͍ॲཧͩͱ༗ޮత
  14. “ΞʔΩςΫνϟͷTipsͱίετ” "1*3FRVFTU "QQ "QQ “ඇಉظతͳػೳ͸෼཭͢Δ” "1*3FTQPOTF 1VCMJTI 1VTI ՝ۚର৅ l4FWFSMFTT%BZT'VLVPLB,FLF

    5XJUUFS!@L@F@L@F z ɾىಈ͍ͯ͠Δ͕࣌ؒॏෳ͕গͳ͘ͳΔ ɾݺͼग़͠ճ਺͸૿͑Δ͕τϨʔυΦϑ  "QQ͕ॏ͍ॲཧͩͱ༗ޮత ճͷݺͼग़͠՝ۚ໿ඵͷW$16 ˠαʔόʔϨεͩͱͳ͓͞Βܭࢉ͕࣌ؒ ͜ΕΛ্ճΔ৔߹͕ଟ͍
  15. “ΞʔΩςΫνϟͷTipsͱίετ” 3FRVFTU "QQ3PPU l4FWFSMFTT%BZT'VLVPLB,FLF 5XJUUFS!@L@F@L@F z DPODVSSFODZΛઃఆ 3FRVFTU 3FRVFTU “ωοτϫʔΫతೖΓޱΛҰͭʹ”

    "QQ "QQ "QQ/ ʜ ɾ"QQ3PPUʹ͔͔Δෛՙ͕ߴ͘ͳ Δ͕"QQ/͕੔ཧ͠΍͘͢ͳΔ ɾݺͼग़͠αΠΫϧ͕গͳ͘ͳΔ 3FRVFTUʹΑΔ͕"QQ3PPU͸4FSWFS ʹ͓͖͔͑Δબ୒ࢶ΋ ɾݺͼग़͠ճ਺Ͱͷ՝ۚ͸ͳ͘ͳΔ
  16. “ΞʔΩςΫνϟͷTipsͱίετ” 3FRVFTU "QQ3PPU l4FWFSMFTT%BZT'VLVPLB,FLF 5XJUUFS!@L@F@L@F z DPODVSSFODZΛઃఆ 3FRVFTU 3FRVFTU “ωοτϫʔΫతೖΓޱΛҰͭʹ”

    "QQ "QQ "QQ/ ʜ ɾ"QQ3PPUʹ͔͔Δෛՙ͕ߴ͘ͳ Δ͕"QQ/͕੔ཧ͠΍͘͢ͳΔ ɾݺͼग़͠αΠΫϧ͕গͳ͘ͳΔ 3FRVFTUʹΑΔ͕"QQ3PPU͸4FSWFS ʹ͓͖͔͑Δબ୒ࢶ΋ ɾݺͼग़͠ճ਺Ͱͷ՝ۚ͸ͳ͘ͳΔ
  17. “ΞʔΩςΫνϟͷTipsͱίετ” 3FRVFTU "QQ $POOFDUJPO “ConnectionͳͲΛอ࣋͢Δ΋ͷ͸෼཭͠ͳ͍” l4FWFSMFTT%BZT'VLVPLB,FLF 5XJUUFS!@L@F@L@F z "QQ/ ʜ

    $POOFDUJPO $POOFDUJPO 3FRVFTU 3FRVFTU 3FRVFTU ʜ ✗ NBY$POOFDUJPO 4MPX3FTQPODF ɾىಈ͕࣌ؒ௕͘ͳΔ ɾճආ͢ΔͨΊͷϩδοΫ͕ඞཁʹ ͳΔ ɾ42-αʔόʔʹ΋ෛՙ͕͔͔Δ
  18. l4FWFSMFTT%BZT'VLVPLB,FLF 5XJUUFS!@L@F@L@F z “Takeaway” “Serverless Architectureͱ͸” 3. ͳΔ΂͘Ұͭͷίϯϙʔωϯτʹ౷߹͢Δ͜ͱ 1. ίετʹ௚݁͢ΔΠϕϯτ(ϝοηʔδͳͲ)ΛߜΔ͜ͱ

    5. ಉظੑɺ·ͨ͸εςʔτʹΑͬͯ෼཭Λ͢Δ͜ͱ 4. ଞͷίϯϙʔωϯτΛݺͼग़͞ͳ͍͜ͱ 2. ωοτϫʔΫͷೖΓޱΛҰͭʹ͢Δ͜ͱ 6. ৗ࣌ىಈ͍ͯ͠ΔΑ͏ͳΠϯελϯε͸αʔόʔ΋ݕ౼͢Δ͜ͱ