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

Netlify Functions 叩き初め

Netlify Functions 叩き初め

Netlify / JAM Stack talk Osaka https://connpass.com/event/119135/

Daisuke Konishi

February 15, 2019
Tweet

More Decks by Daisuke Konishi

Other Decks in Programming

Transcript

  1. /FUMJGZ'VODUJPOT

    ୟ͖ॳΊ
    /FUMJGZ+".4UBDLUBML0TBLB

    View full-size slide

  2. %BJTVLF,0/*4)*
    8FCΤϯδχΞ
    αʔόʔαΠυ࢝Ί·ͨ͠ Oճ໨

    /FUMJGZͰϒϩά΍ࣗ෼ͷαΠτΛ

    ϗεςΟϯάͯ͠·͢

    View full-size slide

  3. /FUMJGZ'VODUJPOTʹ͍ͭͯ

    View full-size slide

  4. /FUMJGZ'VODUJPOTʹ͍ͭͯ
    w /FUMJGZͰ࢖͑Δ-BNCEBΈ͍ͨͳ΍ͭ

    ޙΖͰ͸-BNCEB͕ಈ͍ͯΔ
    w /PEFKT (PMBOH͕ಈ͘
    w ৭ΜͳΠϕϯτͰಈ࡞Մೳ
    w Ϗϧυ੒ޭࣦഊ࣌
    w εϓϦοτςετ։࢝࣌
    w /FUMJGZ*EFOUJUZͰϩάΠϯ࣌ͳͲ

    View full-size slide

  5. IUUQTXXXOFUMJGZDPNQSJDJOH
    /FUMJGZ'VODUJPOTʹ͍ͭͯ

    View full-size slide

  6. ΍Δ͜ͱ
    $-*πʔϧΛΠϯετʔϧ
    ઃఆϑΝΠϧΛ࡞੒
    'VODUJPOT༻ͷϑΝΠϧΛ࡞੒
    σϓϩΠ
    "1*Λୟ͘
    ࢖ͬͯΈΔ

    View full-size slide

  7. ᵓTSD

    ᴹᵓGVODUJPOT

    ᴹᴹᵓIFMMPKT

    ᴹ

    ᵋOFUMJGZUPNM
    ࢖ͬͯΈΔ ϑΝΠϧߏ੒

    View full-size slide

  8. ZBSOBEEOFUMJGZMBNCEB
    ҎԼͷΑ͏ʹ࢖͑Δ
    OFUMJGZMBNCEBCVJMETSDGVODUJPOTϏϧυ

    OFUMJGZMBNCEBTFSWFTSDGVODUJPOTԾ૝αʔόʔىಈ
    ࢖ͬͯΈΔ ύοέʔδΛΠϯετʔϧ

    View full-size slide


  9. $PNNBOEZBSOCVJME
    'VODUJPOTlGVODUJPOTzCVJMEޙͷσΟϨΫτϦ
    ࢖ͬͯΈΔ ઃఆϑΝΠϧ OFUMJGZUPNM
    Λ࡞੒

    View full-size slide

  10. FYQPSUTIBOEMFSGVODUJPO FWFOU DPOUFYU DBMMCBDL
    \
    DBMMCBDL OVMM \
    TUBUVT$PEF
    CPEZ)FMMP 8PSME
    ^

    ^
    ࢖ͬͯΈΔ 'VODUJPOT༻ͷϑΝΠϧΛ࡞੒

    View full-size slide

  11. FYQPSUTIBOEMFSGVODUJPO FWFOU DPOUFYU DBMMCBDL
    \
    DBMMCBDL OVMM \
    TUBUVT$PEF
    CPEZ+40/TUSJOHJGZ \NFTTBHFl)FMMP 8PSMEz^

    ^

    ^
    ࢖ͬͯΈΔ
    +40/Λฦ͢ͳΒ
    'VODUJPOT༻ͷϑΝΠϧΛ࡞੒

    View full-size slide

  12. ଞͷػೳಉ༷(JU)VCͱ࿈ܞ͓ͯ͘͠ͱָ

    HJUQVTId

    ΤϯυϙΠϯτ͸ҎԼʹͳΔ

    IUUQTIPHFGVHBOFUMJGZDPNOFUMJGZGVODUJPOT'*-&@/".&
    ࢖ͬͯΈΔ σϓϩΠ

    View full-size slide

  13. ࢖ͬͯΈΔ "1*Λୟ͘
    w ΫϥΠΞϯταΠυͷॲཧॻ͘
    w ͦ͏͍͏ςετॻ͘
    w DVSMͰୟ͘
    w ͳΜ͔͠ΒαʔϏε࢖͏
    w 1045."/

    w 3FTUMFU$MJFOU $ISPNF֦ு

    View full-size slide

  14. ֎෦"1*Λୟ͘

    View full-size slide

  15. /FUMJGZ'VODUJPOT
    0UIFS

    4FSWJDFT

    View full-size slide

  16. FYQPSUTIBOEMFSBTZOD FWFOU DPOUFYU DBMMCBDL
    \
    ύϥϝʔλνΣοΫ
    SFUVSOμϝͳΒ
    SFUVSO֎෦αʔϏεʹϦΫΤετ
    UIFO SFTQPOTF\
    SFUVSO੒ޭͨ͠σʔλΛDBMMCBDL
    ^

    DBUDI FSSPS\
    SFUVSOࣦഊͨ͠಺༰ΛDBMMCBDL
    ^

    ^

    View full-size slide

  17. w ֎෦αʔϏεΛୟ͖͗͢ͳ͍Α͏ʹϨεϙϯεΛΩϟογϡ
    OPEFDBDIFͱ͔
    w ผͷͱ͔͜Βୟ͔ΕͨΒਏ͍
    ཁରԠ

    View full-size slide

  18. IUUQTHJUIVCDPNOFUMJGZGVODUJPOTUSFFNBTUFSTSDMBNCEB
    αϯϓϧ͸(JUIVCʹݸ͘Β͍

    View full-size slide

  19. IUUQTHJUIVCDPNOFUMJGZDSFBUFSFBDUBQQMBNCEB

    View full-size slide

  20. IUUQTHJUIVCDPNOFUMJGZOFUMJGZGBVOBECFYBNQMF

    View full-size slide

  21. ΍ͬͯΈͯɾௐ΂ͯΈͯ
    w OFUMJGZUPNMͷهड़ϛεΓ͕ͪ 1"5)ͷࢦఆ

    w /FUMJGZଆ͕৭ʑͱαϯϓϧΛ༻ҙͯ͘͠ΕͯΔͷͰ

    ࢝Ί΍͍͢
    w Ξ΢τό΢ϯυͷ௨৴΋Ͱ͖Δͷخ͍͠
    w ϓϥϯΛࣗಈͰมߋ͞ΕΔΒ͍͠ͷͰ͚ͦͩ͜ා͍

    View full-size slide