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

次世代PaaSとServerless 未来はどこにある?

次世代PaaSとServerless 未来はどこにある?

2016年10月の第34回PaaS勉強会で発表した資料です

Kazuto Kusama

May 11, 2017
Tweet

More Decks by Kazuto Kusama

Other Decks in Technology

Transcript

  1. • Herokuͷ12 Factor app͸ྑ͘ग़དྷͨߟ͑ • ग़དྷΔݶΓStatelessʹ࡞Δ͜ͱͰɺεέʔϥϒϧͰϝϯς
 ͠΍͍͢ɺΫϥ΢υωΠςΟϒͳΞϓϦέʔγϣϯ͕࡞ΕΔ • ͡Ό͋DB΍MQͳͲͷStatelessʹग़དྷͳ͍΋ͷ͸ʁ
 㱺

    ʮΞλον͞ΕͨϦιʔεͱͯ͠ѻ͏ʯ
 㱺ӡ༻͸୭͕΍ͬͯ΋ྑ͍Μ͚ͩͲɺϦιʔεͱͯ͠෼཭ͯ͠
 ߟ͑Ε͹͍ΖΜͳέʔεʹରԠͰ͖ΔΑ Stateful applicationͷαϙʔτ
  2. ઌʹݴ༿ͷ੔ཧ FaaS (Functions as a Service) γϯϓϧͳίʔυΛFaaSʹॻ͍͓ͯ͘ͱɺࢦఆͨ͠ΠϕϯτʹԠͯ͡ ίʔυ͕࣮ߦ͞ΕΔαʔϏεɻ AWS Lambda΍Azure

    Functionsɺ OpenWhiskͳͲ BaaS (Backend as a Service)ɺFunctional SaaS ೝূ΍ϓογϡ഑৴ͳͲɺϞόΠϧΞϓϦ΍SPAͰඞཁͳػೳΛαʔ Ϗεͱͯ͠ఏڙ͢ΔɻFirebase΍ɺαʔϏεऴྃͨ͠ParseͳͲ
  3. ઌʹݴ༿ͷ੔ཧ FaaS (Functions as a Service) γϯϓϧͳίʔυΛFaaSʹॻ͍͓ͯ͘ͱɺࢦఆͨ͠ΠϕϯτʹԠͯ͡ ίʔυ͕࣮ߦ͞ΕΔαʔϏεɻ AWS Lambda΍Azure

    Functionsɺ OpenWhiskͳͲ BaaS (Backend as a Service)ɺFunctional SaaS ೝূ΍ϓογϡ഑৴ͳͲɺϞόΠϧΞϓϦ΍SPAͰඞཁͳػೳΛαʔ Ϗεͱͯ͠ఏڙ͢ΔɻFirebase΍ɺαʔϏεऴྃͨ͠ParseͳͲ 㱺 BaaS+PaaSͷ૊Έ߹Θͤ͸ҎલΑΓҰൠతʹߦΘΕ͍ͯΔ
 ͷͰɺ͔͜͜Βઌ͸FaaSʹ͍ͭͯݴٴ͠·͢
  4. API Gateway ObjectStorage etc… Functions Πϕϯτ Πϕϯτ Πϕϯτ ࣮ߦ output

    etc… ΠϕϯτυϦϒϯ Πϕϯτड͚෇͚ͨͱ͖ͷ ॲཧ಺༰Λॻ͍͓ͯ͘ FaaSͷಈ͖
  5. API Gateway ObjectStorage etc… Application output etc… ಉ͜͡ͱΛPaaSͰ΍Ζ͏ͱ͢Δͱɾɾɾ HTTPͳΓԿͳΓͰ
 ΠϕϯτΛड͚෇͚Δ

    ޱΛͭ͘Δ αʔόʔϓϩηε(Πϯελϯε) Λ্ཱͪ͛ͯ଴ػͤ͞Δ Πϕϯτड͚෇͚ͨͱ͖ͷ ॲཧ಺༰Λॻ͍͓ͯ͘
  6. FaaS is better than PaaS? • ͦΜͳ͜ͱ͸ͳ͍ • PaaSͷΑ͏ͳෳࡶͳॲཧΛ1FunctionͰߦΘͤΔ͜ͱ͸ग़དྷͳ͍ •

    WebαʔόʔͷΑ͏ͳίϯςϯπΛ഑৴͢ΔΑ͏ͳ
 ࢓૊ΈͰ΋ͳ͍ • PaaSͰಈ͔͢ΞϓϦ͸ɺϩʔΧϧͰ΋IaaSͰ΋ΦϯϓϨͰ΋
 ಈ͘Α͏ʹ࡞ΕΔɻFaaS͸FaaS༻ͷ଄Γʹͤ͟ΔΛಘͳ͍
  7. FaaS = Glue database mail CI/CD Object Storage API Gateway

    Function messaging Function Function