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

46fdd2ebc85d68659b83d5eb5c6a49aa?s=47 Keke
December 14, 2019

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

@ServerlessDays Fukuoka 2019

46fdd2ebc85d68659b83d5eb5c6a49aa?s=128

Keke

December 14, 2019
Tweet

Transcript

  1. 1.
  2. 5.

    “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. 6.

    Α͘തଟʹ༡ͼʹདྷͯͨɺΘΓ͔͠ϗʔϜʂʂʂ “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
  4. 10.
  5. 21.
  6. 37.

    “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
  7. 43.

    3. ։ൃʹूதͰ͖Δ 4. ߴՄ༻ੑ 2. ࣗಈεέʔϧ 1. ϑϧϚωʔδυͳΞϓϦέʔγϣϯ࣮ߦ؀ڥͷఏڙ Serverless PaaSͷಛ௃

    l4FWFSMFTT%BZT'VLVPLB,FLF 5XJUUFS!@L@F@L@F z ͳͲʜ “҆௚ͳࢥ͍ࠐΈ”
  8. 54.

    “ΞʔΩςΫνϟͷ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. 55.

    “ΞʔΩςΫνϟͷ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. 56.

    “ΞʔΩςΫνϟͷ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. 65.

    “ΞʔΩςΫνϟͷ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. 66.

    “ΞʔΩςΫνϟͷ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 Πϕϯτ਺ ϑϩʔͷεςοϓ  ͦ΋ͦ΋࠷ॳͷΠϕϯτ਺͕গͳ͍͜ͱ  Πϕϯτ਺͕ݮਰ͢Δ͜ͱ
  13. 67.

    “ΞʔΩςΫνϟͷ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 Πϕϯτ਺ ϑϩʔͷεςοϓ  ͦ΋ͦ΋࠷ॳͷΠϕϯτ਺͕গͳ͍͜ͱ  Πϕϯτ਺͕ݮਰ͢Δ͜ͱ Πϕϯτ਺͕Լ͕Δͱ ɾݺͼग़͠ճ਺ ɾىಈ͞ΕΔίϯϙʔωϯτ਺͕Լ͕Δ Πϕϯτ਺͸࠷େͷϘτϧωοΫ
  14. 81.

    “ΞʔΩςΫνϟͷ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 ՝ۚର৅ ՝ۚର৅ ՝ۚର৅ ՝ۚର৅
  15. 84.

    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/ “ಉظతͳػೳ͸෼཭͠ͳ͍”     º º º ʹ ෼཭͢Δͱ৴པੑͷ୲อʹ޻෉͕͍Δ
  16. 92.

    “ΞʔΩςΫνϟͷTipsͱίετ” "1*3FRVFTU "QQ "QQ “ඇಉظతͳػೳ͸෼཭͢Δ” "1*3FTQPOTF 1VCMJTI 1VTI ՝ۚର৅ l4FWFSMFTT%BZT'VLVPLB,FLF

    5XJUUFS!@L@F@L@F z ɾىಈ͍ͯ͠Δ͕࣌ؒॏෳ͕গͳ͘ͳΔ ɾݺͼग़͠ճ਺͸૿͑Δ͕τϨʔυΦϑ  "QQ͕ॏ͍ॲཧͩͱ༗ޮత
  17. 93.

    “ΞʔΩςΫνϟͷTipsͱίετ” "1*3FRVFTU "QQ "QQ “ඇಉظతͳػೳ͸෼཭͢Δ” "1*3FTQPOTF 1VCMJTI 1VTI ՝ۚର৅ l4FWFSMFTT%BZT'VLVPLB,FLF

    5XJUUFS!@L@F@L@F z ɾىಈ͍ͯ͠Δ͕࣌ؒॏෳ͕গͳ͘ͳΔ ɾݺͼग़͠ճ਺͸૿͑Δ͕τϨʔυΦϑ  "QQ͕ॏ͍ॲཧͩͱ༗ޮత ճͷݺͼग़͠՝ۚ໿ඵͷW$16 ˠαʔόʔϨεͩͱͳ͓͞Βܭࢉ͕࣌ؒ ͜ΕΛ্ճΔ৔߹͕ଟ͍
  18. 104.
  19. 105.
  20. 106.

    “ΞʔΩςΫνϟͷTipsͱίετ” 3FRVFTU "QQ3PPU l4FWFSMFTT%BZT'VLVPLB,FLF 5XJUUFS!@L@F@L@F z DPODVSSFODZΛઃఆ 3FRVFTU 3FRVFTU “ωοτϫʔΫతೖΓޱΛҰͭʹ”

    "QQ "QQ "QQ/ ʜ ɾ"QQ3PPUʹ͔͔Δෛՙ͕ߴ͘ͳ Δ͕"QQ/͕੔ཧ͠΍͘͢ͳΔ ɾݺͼग़͠αΠΫϧ͕গͳ͘ͳΔ 3FRVFTUʹΑΔ͕"QQ3PPU͸4FSWFS ʹ͓͖͔͑Δબ୒ࢶ΋ ɾݺͼग़͠ճ਺Ͱͷ՝ۚ͸ͳ͘ͳΔ
  21. 107.

    “ΞʔΩςΫνϟͷTipsͱίετ” 3FRVFTU "QQ3PPU l4FWFSMFTT%BZT'VLVPLB,FLF 5XJUUFS!@L@F@L@F z DPODVSSFODZΛઃఆ 3FRVFTU 3FRVFTU “ωοτϫʔΫతೖΓޱΛҰͭʹ”

    "QQ "QQ "QQ/ ʜ ɾ"QQ3PPUʹ͔͔Δෛՙ͕ߴ͘ͳ Δ͕"QQ/͕੔ཧ͠΍͘͢ͳΔ ɾݺͼग़͠αΠΫϧ͕গͳ͘ͳΔ 3FRVFTUʹΑΔ͕"QQ3PPU͸4FSWFS ʹ͓͖͔͑Δબ୒ࢶ΋ ɾݺͼग़͠ճ਺Ͱͷ՝ۚ͸ͳ͘ͳΔ
  22. 110.

    “ΞʔΩςΫνϟͷ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-αʔόʔʹ΋ෛՙ͕͔͔Δ
  23. 115.

    l4FWFSMFTT%BZT'VLVPLB,FLF 5XJUUFS!@L@F@L@F z “Takeaway” “Serverless Architectureͱ͸” 3. ͳΔ΂͘Ұͭͷίϯϙʔωϯτʹ౷߹͢Δ͜ͱ 1. ίετʹ௚݁͢ΔΠϕϯτ(ϝοηʔδͳͲ)ΛߜΔ͜ͱ

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