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

Web API Next Challenge

Web API Next Challenge

2016/03/18 @AWSJ
第二回 WAVE での発表資料になります
#aws #wave #api

uchimanajet7

March 22, 2016
Tweet

More Decks by uchimanajet7

Other Decks in Technology

Transcript

  1. 2 ͝஫ҙ ‣ 2016೥03݄18೔ݱࡏͷ৘ใͰ͢ ‣ ࢿྉ಺ͷදݱ΍จݴ͸มߋ͞ΕΔՄೳੑ͕͋Γ·͢ ‣ WAVEͰͷൃදͳͷͰݸਓతͳߟ͑΍૝͍΋ೖͬͯ ͍ΔͨΊࠓޙൃද͞ΕΔਖ਼ࣜͳ΋ͷͱҟͳΔ৔߹͕ ͋Γ·͢

    ‣ ਖ਼ࣜ൛ͱͷࠩҟ͕͋ͬͨ৔߹ɺਖ਼ࣜ൛͕ج४ͱͳΓ ·͢ͷͰྃ͝ঝ͍ͩ͘͞ ‣ ͝ҙݟɾ࣭໰͕͋Γ·ͨ͠Β͓ؾܰʹ͓໰͍߹Θͤ ͍ͩ͘͞
  2. 8 Val Web Service ‣ ʮӺ͢ͺ͋ͱ Web Serviceʯ͚ͩͷ୯ମαʔϏ ε͔ΒAPIΤίϊϛʔΛߟྀͨ͠ෳ߹αʔϏε΁ ‣

    ͚ࣗࣾͩͰͳ͘ଞࣾͷAPI΋αʔϏεϥΠφοϓ ʹՃ͍͖͍͑ͯͨ ‣ ProgrammableWeb΍MashapeͱݴͬͨαʔϏ εͱಉ༷ͷߟ͑ํ ‣ ౰໘͸ࣗࣾυϝΠϯʹಛԽͨ͠API Management αʔϏεΛ໨ࢦ͍ͯ͘͠
  3. 11 Val Web Service ‣ ͳͥʮVal Web Serviceʯͳͷ͔ʁ ‣ ݱঢ়ͷAPIϏδωεʹ͸՝୊͕ଟ͍

    ‣ ར༻ऀࢹ఺ͩͱ - Ͳ͜ʹͲΜͳAPI͕͋Δͷ͔Θ͔Βͳ͍ - APIͷར༻ํ๏͕ͦΕͧΕҟͳΔ - APIͷυΩϡϝϯτ΋ͦΕͧΕҟͳΓ൥ࡶ - ఏڙ͍ͯ͠Δձࣾ͝ͱʹܖ໿΍ೝূ͕ඞཁ - ར༻ऀ͕গͳ͍APIͩͱར༻ྫΛ୳͢ͷ͕ࠔ೉
  4. 12 Val Web Service ‣ ఏڙऀࢹ఺ͩͱ - Ͳ͏΍ͬͯެ։ͯ͠ೝ஌͍͔ͤͯ͘͞ - ެ։ʹ͋ͨͬͯͷӡ༻΍ηΩϡϦςΟΛͲ͏͢

    Δ͔ - ར༻ঢ়گ΍ύϑΥʔϚϯεͷܭଌΛͲ͏͢Δ͔ - σʔλ͚ͩ΍ඇެ։API͔͠ͳ͍৔߹ʹͲ͏ ΍ͬͯެ։͢Δ͔ - ՝ۚ΍Ϣʔβʔ؅ཧΛͲ͏͢Δ͔
  5. 13 Val Web Service ‣ ͜͏ͨ͠՝୊Λղܾ͠੒௕͍ͯͨ͘͠Ίʹ ‣ طଘͷސ٬νϟωϧΛ૬ޓͰར༻͢Δ࢓૊Έ - ηʔϧε΍ϚʔέςΟϯάͰ੒ޭࣄྫΛ׆༻Ͱ͖Δ

    - ୯७ͳνϟωϧͷ֦େɺΞοϓηϧ/Ϋϩεηϧ - ར༻ن໛͕େ͖͘ͳΔ͜ͱʹΑΔғ͍ࠐΈͱϑΟʔυ όοΫͷ૿Ճ ‣ ҟͳΔྖҬͰ͓ޓ͍ͷڧΈΛ࠷େݶʹ׆༻Ͱ͖Δ࢓૊Έ - ະ஌ͷྖҬͰ༧ଌΛߦ͏͜ͱ͕ՄೳʹͳΔ - ୯ҰͰ͸ఏڙ͢Δ͜ͱ͕೉͍͠৽ͨͳղܾํ๏ - ීஈͱҟͳΔ໨ઢʹΑΔ৽͍͠ൃݟ
  6. 15 Val Web Service ‣ γϯάϧϙΠϯτԽʹΑΔޮ཰Խ - APIར༻࣌ͷೝূ͕୯ҰԽ - υΩϡϝϯτ΍໰͍߹Θͤʹ͍ͭͯ΋ɺϑΥʔϚο

    τͷ౷ҰԽ΍૭ޱͷ୯ҰԽ - ར༻ܖ໿΍ࢧ෷͍ͱ͍ͬͨࣄ຿తͳ෦෼΋୯ҰԽ - Ϣʔβʔ؅ཧ΍ηΩϡϦςΟͱ͍ͬͨॏཁͳ෦෼ ΋Mashery Λར༻͢Δ͜ͱʹΑΓ҆৺ɾ҆શʹ୯ ҰԽ - ར༻ऀ΋ఏڙऀ΋൥ࡶͳ࡞ۀ͔Βղ์͞ΕΔ
  7. 16 Val Web Service ‣ API࿈ܞʹΑΔ৽ͨͳՄೳੑɾ෇ՃՁ஋ͷ૑଄ - ͓ޓ͍ͷ؀ڥ͕AWS্ʹߏங͞Ε͍ͯΔ৔߹ɺඇৗʹ ॊೈ͔ͭ҆શʹ૬ޓ઀ଓՄೳ -

    σʔλͱAPI΍ඇެ։APIͱެ։APIͳͲ৚͕݅߹͑͹࿈ ܞ͢Δ͜ͱ͕Մೳ - ϚελʔσʔλྨΛ࿈ܞ͢Δ͜ͱʹΑΓɺσϑΝΫτε λϯμʔυͱͳΓಘΔՄೳੑ - ࿈ܞʹΑΓ৽ن։ൃ͠ͳͯ͘΋࣮ݱՄೳͱͳΔՄೳੑ - ϝΠϯϏδωεʹϑΥʔΧε͠ͳ͕Β΋όϦΤʔγϣϯ Λ૿΍ͤΔ
  8. 18 Val Web Service ‣ ݁Ռͱͯ͠APIΤίϊϛʔࣗମ͕׆ੑԽ͢Δ͜ͱ͕໨త ‣ API͕ศརʹؾܰʹར༻Ͱ͖ΔΑ͏ʹͳΔͱɺߋʹϞϊ ͮ͘Γͷϋʔυϧ͕Լ͕Δ ‣

    ͜ΕʹΑΓɺ৽ͨͳαʔϏε΍ϓϩμΫτ͕૿͑Πϊ ϕʔγϣϯͷՄೳੑ͕૿͑Δ͜ͱ͕ظ଴Ͱ͖Δ ‣ ͞Βʹɺ͜ͷΑ͏ͳऔΓ૊Έ͕૿͍͚͑ͯ͹΋ͬͱେ ͖ͳ୯ҐͰͷ࿈ܞ͕ՄೳͱͳΔ ‣ ͦΕͧΕ͕ಘҙ෼໺ɾྖҬͰAPIͷϗʔϜηϯλʔʹ ͳ͍ͬͯ͘͜ͱͰ࣮ݱͰ͖Δͱߟ͍͑ͯΔ
  9. 20 SkyBrain ‣ ަ௨ҠಈମͷҐஔ৘ใ؅ཧΛ໨తͱͯ͠࡞੒தͷIoT ޲͚αʔϏε ‣ ॊೈ͔ͭ҆Ձʹಈ࡞͢Δ͜ͱΛ໨ඪͱ͍ͯ͠Δ ‣ ௨৴ϓϥοτϑΥʔϜ͸ SORACOM

    Air Λར༻ ‣ ػث͸εϚʔτϑΥϯΛར༻ͯ͠ϓϩτλΠϐϯάத ‣ Ϋϥ΢υ؀ڥ͸AWSΛར༻ ‣ S3ɺLambdaɺAPI Gatewayͱ͍ͬͨϑϧϚωʔδυ αʔϏεΛੵۃతʹར༻ ‣ ߏங࣌ؒͷ୹ॖͱߏஙޙͷӡ༻ෛ୲Λߟྀ͍ͯ͠Δ
  10. 22 SkyBrain ‣ σʔλͷΞοϓϩʔυ͸SORACOM Funnel or Amazon Kinesis Ͱߦ͏ ‣

    σʔλͷऔಘʹ͍ͭͯ͸Amazon API Gateway Λར ༻ͯ͠APIԽ ‣ σʔλͷ஝ੵͱ׆༻͕؆୯͔ͭ҆શɾ҆Ձʹߦ͑Δ ‣ ͜ΕʹΑΓ΄΅ϦΞϧλΠϜͳσʔλΛ׆༻Ͱ͖ΔΑ ͏ʹͳΔ ‣ ϦΞϧλΠϜͳσʔλ͕ՃΘΔ͜ͱͰɺطଘͷσʔλ ΍API͕৽ͨͳՁ஋Λ࣋ͭ
  11. 27 ࿏ઢਤ API ‣ 2005೥͔Βݱࡏ·Ͱʮ࿏ઢਤ ASPʯͱͯ͠࿏ઢ ਤͷαʔϏεΛల։த ‣ Windows൛੡඼Ͱ࢖ΘΕ͍ͯΔ࿏ઢਤΛݩʹ͠ ͯαʔϏεΛ։ൃ

    ‣ ͜ͷ࣌ͷ࿏ઢਤ͸ೖྗิॿʼදࣔɾදݱ ‣ ͜ͷͨΊద౓ʹσϑΥϧϝ͞Ε͓ͯΓӺͷҐஔؔ ܎͸͔ͭΈ΍͍͢ ‣ ·ͨͰ͖Δ͜ͱ͕গͳ͍ͷͰͦΕ੍͕໿ͱͳΓૢ ࡞΋୯७Ͱ͋Δ
  12. 29 ࿏ઢਤ API ‣ ۙ೥͸ϢʔβʔɺσόΠε͕ଟछଟ༷ʹͳͬͨ ‣ ٻΊΒΕΔදݱ΍඼࣭΋ߴ͘ͳΓଟ༷ੑΛ૿͍ͯ͠ Δ ‣ ͍·ٻΊΒΕ͍ͯΔͷ͸ೖྗิॿ

    ≤ දࣔɾදݱ ‣ Ұൠతͳ஍ਤαʔϏεͱಉ༷ͷදࣔɾදݱ͕ඞཁ ‣ ϢʔβʔαΠυͰίϯτϩʔϧͰ͖Δඞཁ͕͋Δͨ ΊAPI͕ඞཁ ‣ ͍·ͷཁ๬͸͍·ͷWebϑϩϯτΤϯυٕज़Λ࢖ͬ ͯղܾ͍͖͍ͯͨ͠
  13. 31 ࿏ઢਤ API ‣ JavaScript ϕʔεͷAPIͰͷૢ࡞͕Մೳ ‣ දࣔɾදݱ͢ΔͨΊͷػೳΛ౥ࡌ ‣ WebϕʔεͰͷදࣔͱͳΔͨΊ൚༻ੑ͕ߴ͍

    ‣ ͜ΕʹΑΓදࣔɾදݱํ๏ͷ෯͕޿͕ΓϢʔβʔ͕ر๬ ͢Δঢ়گʹԠͯ͡ରԠͰ͖ΔΑ͏ʹͳ͍ͬͯΔ ‣ ஍ਤͱಉ͡Α͏ʹ೔ຊશࠃΛγʔϜϨεʹදݱ ‣ ద౓ͳσϑΥϧϝΛ͍ͯ͠ΔͷͰݟ΍͢͞࢖͍΍͢͞͸ ͦͷ·· ‣ ͞·͟·ͳσʔλΛදࣔɾදݱͰ͖ΔαʔϏεͱͯ͠ͷ Ґஔ෇͚
  14. 36 Appendix ‣ ProgrammableWeb - http://www.programmableweb.com/ ‣ Mashape - https://www.mashape.com/

    ‣ גࣜձࣾιϥίϜ - https://soracom.jp/ ‣ Mashery API Ϛωδϝϯτ | ϐʔγʔϑΣʔζ - https://www.pcp.co.jp/product/mashery
  15. 37 Appendix ‣ גࣜձࣾϰΝϧݚڀॴ - http://www.val.co.jp/ ‣ Ӻ͢ͺ͋ͱϫʔϧυ - https://ekiworld.net/

    ‣ Ӻ͢ͺ͋ͱ - YouTube - https://www.youtube.com/channel/ UChsdHb4qHO5eFmSOhl0Udsw ‣ ʮӺ͢ͺ͋ͱʯͷ͋ͨΒ͍͠࿏ઢਤ - http://rosenzu.strikingly.com/
  16. 38 Appendix ‣ JAWS-UG தԝઢ - http://jaws-ug.jp/bc/chuoline/ ‣ JAWS-UG ژԦઢ

    - https://jawsug-keioline.doorkeeper.jp/ ‣ uchimanajet7 - Pixelhub.me - http://pixelhub.me/pixelhub1/index.php? user=uchimanajet7