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

AWS Lambda と Amazon API Gateway の管理

Ac7cbf1a95672e989590bb527cdafc8e?s=47 suwa yuki
August 02, 2016

AWS Lambda と Amazon API Gateway の管理

2016/08/02 に開催した「実践!SERVERLESS」の発表スライドです。

Ac7cbf1a95672e989590bb527cdafc8e?s=128

suwa yuki

August 02, 2016
Tweet

Transcript

  1. MANAGEMENT OF LAMBDA & API GATEWAY Classmethod, Inc. Mobile App

    Service Div. Technical Manager Yuki Suwa
  2. YUKI SUWA Technical Manager Classmethod, Inc.

  3. ࠓ೔ͷΰʔϧ αʔόʔϨεΞʔΩςΫνϟͷ؅ཧํ๏Λɺ ࡞Δ΋ͷʹ߹Θͤͯద੾ʹબఆͰ͖ΔΑ͏ ʹ͢Δʂ

  4. ΞδΣϯμ  αʔόʔϨεͷ໾ׂ  ؅ཧํ๏ͷબఆͷίπ  ؅ཧπʔϧछ࢖͍ൺ΂ 20 min 10

    min 5 min
  5. αʔόʔϨε ͷ໾ׂ 1

  6. ͯ͞ɺͲ͜Λ αʔόʔϨεʹ ͢Δʁ

  7. αʔόʔϨε͸ ༷ʑͳϨΠϠʔͰ ొ৔͢Δ

  8. αʔόʔ ΫϥΠΞϯτ σʔλετΞ αʔόʔ σʔλ
 ΢ΣΞϋ΢ε Ͳ͜ΛαʔόʔϨεʹ͢Δʁ ϑϩϯτΤϯυ όοΫΤϯυ

  9. ϑϩϯτΤϯυϨΠϠʔͰ͸ʜ • ϞόΠϧΞϓϦ΍8FCΞϓϦͱ௨৴͠ σʔλͷऔಘ΍ొ࿥Λߦ͏ • Α͘ొ৔͢ΔαʔϏε • "1*(BUFXBZ -BNCEB •

    $PHOJUP "1*(BUFXBZ -BNCEB
  10. όοΫΤϯυϨΠϠʔͰ͸ʜ • Ϣʔβʔͷ໨ʹݟ͑Δ৔ॴͰ͸ͳ͍ɺ
 ཪଆͰಈ͘γεςϜ
 %BUB1SPDFTTJOHͳͲ  • Α͘ొ৔͢ΔαʔϏε • 4/4

    -BNCEB • 4 -BNCEB • ֤छ4USFBNTܥ -BNCEB
  11. ଞʹ΋͍Ζ͍Ζ • ྫ͑͹ʜ • $PHOJUP6TFS1PPMT -BNCEB • $MPVE'PSNBUJPOͷ-BNCEB CBDLFOEΧελϜϦιʔε •

    4MBDL "1*(BUFXBZ -BNCEBͰ $IBU0QT
  12. ؅ཧํ๏ͷબఆ 2

  13. ؅ཧπʔϧ͸ ͨ͘͞Μ͋Δʂ

  14. πʔϧ͝ͱʹ ؅ཧ͢Δ্Ͱͷ ؍఺͕ҧ͏

  15. ݁ہɺͦͷதͰ ͲΕΛબ΂͹ ྑ͍ͷʁ

  16. ͦ͜Ͱࠓ೔͸ ͭͷϙΠϯτΛ ঺հ͠·͢

  17. ؅ཧํ๏ΛબͿ্Ͱߟ͑Δ΂͖ͭͷϙΠϯτ  "1*(BUFXBZͱͷซ༻  ଞͷϦιʔεͷ؅ཧ  ϩʔϧόοΫ  ࢖͍ճ͠

  18. "1*(BUFXBZͱͷซ༻ • ؅ཧ͢Δର৅͕"1*(BUFXBZ -BNCEB ·ͨ͸-BNCEBͷΈͷύλʔϯ͕͋Δ • "1*(BUFXBZ -BNCEB͸ɺϑϩϯτΤϯ υΛର৅ͱ͍ͯ͠Δπʔϧ ϑϨʔϜϫʔΫҙ

    ࣝ ͕ଟ͍ • -BNCEBͷΈΛର৅ͱ͍ͯ͠Δπʔϧ͸ɺ ΑΓ൚༻తͰಋೖ͠΍͍͢
  19. ଞͷϦιʔεͷ؅ཧ • ن໛ʹΑΔ • ن໛͕େ͖͘؅ཧ͢΂͖Ϧιʔε͕୔ ࢁ͋Δ৔߹͸ɺ෼ׂͨ͠΄͏͕ྑ͍ • ن໛͕খ͍͞৔߹͸ɺ෼ׂ͢Δͱ൥ࡶ ʹͳΔͷͰ·ͱΊͨ΄͏͕ྑ͍

  20. ϩʔϧόοΫ • ϩʔϧόοΫʹରԠ͍ͯ͠Δπʔϧͱର Ԡ͍ͯ͠ͳ͍πʔϧ͕͋Δ • ϩʔϧόοΫʹରԠ͍ͯ͠Δπʔϧ͸खͬ औΓૣ͘ϩʔϧόοΫͰ͖Δ • ϩʔϧόοΫʹରԠ͍ͯ͠ͳ͍πʔϧ͸ ख࡞ۀ

    ·ͨ͸ࣗ෼Ͱ࣮૷ ͕ඞཁͳͷ Ͱͪΐͬͱख͕͔͔ؒΔ
  21. ࢖͍ճ͠ • ͦͷΞʔΩςΫνϟ͸ɺଞͷαʔϏεͳ ͲͰ࢖͍ճ͔͢Ͳ͏͔ʁ • ൚༻తʹ͢Δඞཁੑ͸ʁ • ઃఆ஋͸࣮ߦ࣌ύϥϝʔλʁ • ؀ڥม਺͸ඞཁ͔ʁ

  22. ؅ཧπʔϧछ ࢖͍ൺ΂ 3

  23. ׂͱ༗໊ͳ؅ཧπʔϧ αʔϏε • "84$MPVE'PSNBUJPO • 4FSWFSMFTT • "QFY • (VMQ

     OPEFBXTMBNCEB  • 4XBHHFS)VC • $IBMJDF
  24. "84$MPVE'PSNBUJPO

  25. "84$MPVE'PSNBUJPO • "84ͷϦιʔεΛ؅ཧ͢ΔαʔϏε • +40/Ͱهड़͢Δ • ଞͷ"84ϦιʔεͱҰॹʹ؅ཧͰ͖Δ • ґଘؔ܎͕ఆٛͰ͖Δ •

    ࣮ߦ࣌ύϥϝʔλΛఆٛͰ͖Δ
  26. • -BNCEBϑΝϯΫγϣϯͷ࡞੒ͱઃఆ • ιʔείʔυΛΠϯϥΠϯͰهड़͢Δ͜ ͱ΋Ͱ͖Δ • "84-BNCEB&WFOU4PVSDF.BQQJOH ͰΠϕϯτιʔεΛ֤4USFBNTʹࢦఆ Ͱ͖Δ "84$MPVE'PSNBUJPO

  27. %&.0 IUUQTDMPVEPOBVUJPDSFBUFBTFSWFSMFTTSFTUGVMBQJXJUIBQJ HBUFXBZDMPVEGPSNBUJPOMBNCEBBOEEZOBNPEC ࢀߟ

  28. None
  29. • ϑϩϯτΤϯυͱͯ͠ͷαʔόʔϨεΞʔ ΩςΫνϟΛ؅ཧ͢ΔϑϨʔϜϫʔΫ • "1*(BUFXBZ΍-BNCEBΛσϓϩΠͰ ͖Δ • ؀ڥม਺΍ϝλσʔλΛಠࣗܗࣜͰ؅ཧ • ඞཁͳ*".΋·ͱΊͯ؅ཧ

    • αϯϓϧ΍ϓϥάΠϯ͕ॆ࣮
  30. IUUQEPDTTFSWFSMFTTDPNEPDTQSPKFDUTUSVDUVSF ࢀߟ %&.0

  31. None
  32. • -BNCEBʹಛԽͨ͠؅ཧπʔϧ • -BNCEBϑΝϯΫγϣϯͷ
 #VJME%FQMPZ.BOBHF͕ߦ͑Δ • -BNCEBʹಛԽͨ͠ػೳ͕ॆ࣮
 ΠϕϯτϑοΫɺϩάࢀরɺ%SZSVOɺʜ  •

    5FSSBGPSN࿈ܞ
  33. IUUQEFWDMBTTNFUIPEKQDMPVEBXTIPXUPNBOBHFBXT MBNCEBGVODUJPOTXJUIBQFY ࢀߟ %&.0

  34. None
  35. (VMQ  OPEFBXTMBNCEB • /PEFKTͰಈ͘λεΫϥϯφʔ • +BWB4DSJQUքͰ͸Α͘࢖ΘΕΔπʔϧ • طʹ(VMQͰλεΫ؅ཧΛ͍ͯ͠ΔͷͰ ͋Ε͹ಋೖίετ͸খ͍͞

    • (VMQͰ࢖͑ΔϥΠϒϥϦ͸͍͔ͭ͋͘ ΔͷͰࣗ෼ʹ߹͏΋ͷΛ࢖͏
  36. IUUQEFWDMBTTNFUIPEKQDMPVEBXTIPXUPEFQMPZBMBNCEB GVODUJPOXJUIHVMQ ࢀߟ %&.0

  37. None
  38. • 4XBHHFSͷΫϥ΢υαʔϏε • 4XBHHFSυΩϡϝϯτΛϒϥ΢βͰه ड़Ͱ͖Δ • "1*(BUFXBZ-BNCEB΁ͷΤΫε ϙʔτ͕Մೳ

  39. IUUQRJJUBDPNJNVSBHUJUFNTEGFGEFB ࢀߟ %&.0

  40. $IBMJDF #FUB

  41. $IBMJDF #FUB • BXTMBCTͰެ։͞Ε͍ͯΔ
 "1*(BUFXBZ-BNCEBͷ؅ཧπʔϧ • 1ZUIPOݶఆ • ηοτΞοϓ͕΋ͷ͘͢͝؆୯ͱධ൑ •

    ϙϦγʔੜ੒ػೳ͕ϢχʔΫ • IUUQTHJUIVCDPNBXTMBCTDIBMJDF
  42. IUUQTHJUIVCDPNBXTMBCTDIBMJDF ࢀߟ %&.0

  43. 'MPVSJTI $PNNJOH4PPO • 4FSWFSMFTT$POGͰൃද͞Εͨɺ
 αʔόʔϨεΞʔΩςΫνϟ؅ཧϑϨʔ ϜϫʔΫ • "84͕ࢧԉ͢Δ044ϓϩδΣΫτ • 4XBHHFS)VCϥΠΫ

    • ָ͠Έʹ଴ͪ·͠ΐ͏ʂ
  44. ·ͱΊ

  45. ·ͱΊ • ؅ཧํ๏Λબఆ͢Δ্Ͱɺ·ͣ͸ԿΛॏ ཁࢹ͢Δ͔ߟ͑Α͏ • ͍͔ͭ͋͘Δબ୒ࢶͷ͏ͪɺ࠷దͳ؅ཧ ํ๏Λબఆ͠Α͏ • ·ͣ͸ɺ͍Ζ͍ΖͳπʔϧɺαʔϏεʹ ৮ΕͯΈΑ͏

  46. None