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

NetlifyでFaaSに入門する / netlify-functions

mottox2
August 10, 2018

NetlifyでFaaSに入門する / netlify-functions

Tech Do #6で発表したNetlify Functionsの話です。

Netlify
https://www.netlify.com/

元ネタブログ
https://mottox2.com/posts/165/

参考リポジトリ(Deployボタン置いてます)
https://github.com/mottox2/netlify-functions-hello-world

mottox2

August 10, 2018
Tweet

More Decks by mottox2

Other Decks in Technology

Transcript

  1. Netlify Functions • Netlify͸੩తαΠτϗεςΟϯάઐ༻ʹݟ͑Δ͕ɺͲΜͲΜػೳΛ૿΍͍ͯ͠Δ • ͦͷதͰFunctionsͱ͍͏ػೳ͕͋Γɺத਎͸AWS LambdaͰಈ͍͍ͯΔ • ݄ؒͰ ࣮ߦճ਺͕125,000ճҎԼ

    or ࣮ߦ͕࣌ؒ100࣌ؒҎ಺Ͱ͋Ε͹ແྉ • NetlifyͳͷͰɺϦϙδτϦͷϒϥϯνͱ࿈ಈͯ͠σϓϩΠ͞ΕΔɻ • ΫϨδοτΧʔυͷొ࿥΋ෆཁɻa • Node.js ·ͨ͸ Golang Ͱॻ͚Δɻ • ΋ͪΖΜS3΍Dynamo DBΛϑοΫʹͨ͠ىಈ͸Ͱ͖ͳ͍ɻURLͷΈɻ
  2. Կ͕࡞ΕΔͷʁ • Netlify୯ମͰ͸֎෦αʔϏεͷWebhookΛड͚ͯɺಛఆͷαʔϏεͷAPIΛୟ͘ͱ ͍͏࢖͍ํʹͳΔͱࢥ͏ɻ • ࣗ෼͸Slack AppΛNetlify্Ͱӡ༻͍ͯ͠·͢ɻ • https://github.com/mottox2/slack-esa-preview͋ •

    Slack͔ΒϦΫΤετΛड͚ͯesa.ioͱ͍͏αʔϏεͷAPIΛୟ͍͍ͯ·͢ɻ • ࢓ࣄͰ͸಺෦ͰWordPress REST APIΛୟ͍ͯɺϑϩϯτΤϯυͷΞϓϦέʔγϣϯ ʹฦ͢ॲཧΛॻ͍͍ͯ·͢ɻ • ࣮͸WebαʔϏεͱૄ݁߹ͳՕॴΛ͚ͩ͜͜nodejs΍golangͰॻ͘ͱ͖ͳͲ
  3. @mottox2 • ReactͱRuby on RailsΛத৺ʹWebαʔϏε։ൃ͍ͯ͠·͢ • ϒϩά΍ͬͯ·͢(esa.io + note.mu +

    GatsbyJS) => mottox2.com • #ٕज़ॻయ5 ͰNetlifyͱGatsbyJSͷຊΛग़͠·͢ Freelance web engineer Yuki Takemoto ୭ʁ