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

サーバーレスを採用すべき100の理由(1つしか話さないよ)

 サーバーレスを採用すべき100の理由(1つしか話さないよ)

Kouta Ozaki

August 30, 2023
Tweet

More Decks by Kouta Ozaki

Other Decks in Programming

Transcript

  1. εέʔϥϏϦςΟʹΑΔ଱ো֐ੑͷ޲্ 12 ਖ਼ৗ࣌ʹ100rpsɺ100ms (AVG)Λظ଴͢Δέʔε • 10 process / sec ͷϦιʔε͕ඞཁ

    • ҟৗέʔεͰ1000ms (AVG)ʹͳΔͱ100 process / secͷϦιʔε͕ඞཁ • 10 processͷ··ͩͱ1ඵܦա͢Δຖʹ90 request͕ཷ·͍ͬͯ͘ڪා
  2. εέʔϥϏϦςΟʹΑΔ଱ো֐ੑͷ޲্ 14 • ݪଇͱͯ͠N secҎ಺ʹϨεϙϯεΛඞͣฦ͞ͳ͚Ε͹͍͚ͳ͍ • Ϣʔβʔσʔλͷྔʹґଘ͠ͳ͍ • όοΫΤϯυʢDB΍MSͳͲʣͷঢ়ଶʹґଘ͠ͳ͍ •

    ద੾ͳλΠϜΞ΢τઃఆ • αʔΩοτϒϨʔΧʔͷಋೖ • ͜ͷN secͱ࣮ଌͷฏۉ஋ͷM secΛ΋ͱʹඞཁͳεέʔϧ଎౓ͱόοϑΝ Λࢉग़͢Δ
  3. εέʔϥϏϦςΟʹΑΔ଱ো֐ੑͷ޲্ 17 • Lambda͸1 Request - 1 Function • ಉ࣌ʹॲཧ͢ΔRequest͕૿͑ΔFunction͕εέʔϧ

    • ίʔϧυελʔτ࣍ୈ͕ͩඵͰεέʔϧՄೳ • ༨෼ͳόοϑΝΛ࣋ͭඞཁ͕ͳ͍ͨΊίετతʹ΋༏͍͠