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

Serverless Frameworkを試してみたよ

Serverless Frameworkを試してみたよ

東京Node学園付属小学校 2017年度 入学式で発表した資料です。

Tsuyoshi Yonemoto

April 07, 2017
Tweet

More Decks by Tsuyoshi Yonemoto

Other Decks in Programming

Transcript

  1. Serverless FrameworkΛ
    ࢼͯ͠ΈͨΑ
    ౦ژNodeֶԂ෇ଐখֶߍ 2017೥౓ ೖֶࣜ
    @yoneapp
    Tsuyoshi Yonemoto

    View full-size slide

  2. ࣗݾ঺հ
    • @yoneapp
    • ̎̌̍̌೥ɿֶੜiOSݸਓ։ൃऀ
    • ̎̌̍̎೥ɿελʔτΞοϓͷڞಉ૑ۀऀ
    • ̎̌̍̑೥ɿiOS & RailsϑϦʔϥϯε

    View full-size slide

  3. ϓϩάϥϛϯάྺʢ໿10೥ʣ

    View full-size slide

  4. ΞϓϦΛ࡞Γ͔ͨͬͨ

    View full-size slide

  5. αʔό͸ཱͯͨ͘ͳ͔ͬͨ

    View full-size slide

  6. αʔόΛཱͯͳ͍
    બ୒ࢶ͸͜Ε·Ͱͳ͔ͬͨ

    View full-size slide

  7. ৽͍͠બ୒ࢶ͕ݱΕͨ

    View full-size slide

  8. AWS Lambda
    Google Cloud Functions
    Azure Functions

    View full-size slide

  9. ࢼͯ͠Έ͍ͨ

    View full-size slide

  10. AWS Lambda
    • Node.js
    • Java
    • C#
    • Python

    View full-size slide

  11. Node.jsʹͨ͠ཧ༝
    • جຊతʹɺ͜ͷखͷ΋ͷʹ

    Ruby͕ૣظʹϥΠφοϓ͞ΕΔࣄ͸ແ͍
    • Rails΍Ζ͏͕ɺϑϩϯτͰ͸JavaScriptΛ࢖
    ͏ͷͰશ͘࢖ͬͨ͜ͱ͕ແ͍ΑΓ͸׳ΕͯΔ

    View full-size slide

  12. ͪΐͬͱ໘౗ͳAWS Lambda
    ʜ
    "1*(BUFXBZ
    "84-BNCEB
    'VODUJPO
    'VODUJPO
    'VODUJPO
    ઃఆ
    ઃఆ
    ʜ
    ઃఆ
    ΞΫηε

    View full-size slide

  13. Serverless Framework

    View full-size slide

  14. Cloud Formation?

    View full-size slide

  15. ϙʔτϑΣϦΦαΠτͰࢼ͢
    ※ ੩తαΠτͳͷͰࢼ͠΍͍͢

    View full-size slide

  16. ΍Γ͔ͨͬͨࣄ
    4
    4FSWFSMFTT'SBNFXSPL
    )5.-
    $44
    *NBHF
    +BWB4DSJQU
    ΞΫηε
    "84
    -BNCEB
    "1*
    (BUFXBZ

    View full-size slide

  17. ը૾Ҏ֎͸੒ޭͨ͠…

    View full-size slide

  18. ը૾͕จࣈྻͰؼͬͯ͘Δ

    View full-size slide

  19. ௐ΂ͯΈͨ…

    View full-size slide

  20. Accept: image/png
    ͳͲΛ෇༩͠ͳ͍ͱ͍͚ͳ͍
    ※ API Gatewayͷ࢓༷

    View full-size slide

  21. ͓໰͍߹Θͤͯ͠Έͨ

    View full-size slide

  22. API Gateway ୯ମͰ͸
    ղܾͰ͖ͳ͍

    View full-size slide

  23. ݁࿦
    4
    4FSWFSMFTT'SBNFXSPL
    )5.-
    $44
    *NBHF
    +BWB4DSJQU
    ΞΫηε
    "84
    -BNCEB
    "1*
    (BUFXBZ
    ΞΫηε
    ※ APIΞΫηε͸Reactͱ͔ʹ೚ͤΑ͏

    View full-size slide

  24. s3 Plugin΋͋Γ·͢

    View full-size slide

  25. ࠷ޙʹએ఻
    https://goo.gl/gNTskN

    View full-size slide