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

using MQTT, we can make our apps SERVERLESS. but...

298fc05a116ab1a1e5ec1ae3583d6592?s=47 muddydixon
October 01, 2016

using MQTT, we can make our apps SERVERLESS. but...

298fc05a116ab1a1e5ec1ae3583d6592?s=128

muddydixon

October 01, 2016
Tweet

Transcript

  1. !NVEEZEJYPO ৿౻େ஍ .255Λར༻ͯ͠ (*5)6#1"(&4ͰΞϓϦέʔγϣϯΛ ϗετ͢Δ:FU"OPUIFSΞϓϩʔν Ћ

  2. 2

  3. •ࠓ೔͸ɺຊ౰ʹαʔό͕ͳ͘ͳΔ࿩ͱ •ͳͨͭ͘͠΋Γ͕ӡ༻Λߟ͑Δͱؼ͖ͬͯ ͨ࿩ •Λ͠·͢ 3

  4. •৿౻େ஍!NVEEZEJYPO •ֶ෦ిؾిࢠ޻ֶՊ •ݚڀࣨࣗવݴޠॲཧ •େֶӃχϡʔϥϧωοτ •χϑςΟגࣜձࣾ •*P5σβΠϯηϯλ • ٕज़νʔϜϦʔμ • ηϯασόΠε

    • ճ࿏ઃܭ • σʔλղੳ • ΞϓϦέʔγϣϯ։ൃ NF 4
  5. χϑςΟͱ4FSWFSMFTT"SDIJUFDUVSF 5

  6. χϑςΟͱ4FSWFSMFTT"SDIJUFDUVSF 6 https://speakerdeck.com/muddydixon/mbaas-script

  7. χϑςΟͱ4FSWFSMFTT"SDIJUFDUVSF 7 ͝ଘ͡ͳ͍ํ΋ ଟ͍Ͱ͠ΐ͏͕ ݁ߏ͍Ζ͍Ζύʔπ ࡞ͬͯΔΜͰ͢

  8. χϑςΟͱ4FSWFSMFTT"SDIJUFDUVSF 8 ࡞ͬͯ͘ΕΔώτ ืू͍ͯ͠·͢

  9. ఏڙ

  10. •΋Ζ΋ΖఱടͰ͸͋Δ •ʮଳʹ୹͠᧪ʹ௕͠ʯʹৼΓճ͞Εͳ͍ 4FSWFSMFTT"SDIJUFDUVSF·ͱΊͨྫͷ΍ͭ 10 ΞʔΩςΫνϟ खܰ͞ ࣗ༝౓ ྨࣅϞσϧ ΞϓϦέʔγϣϯ αʔό

    खܰͰ͸ͳ͍ ࣗ༝౓͸ߴ͍ σʔϞϯϓϩηε #BB4 खܰ ࣗ༝౓͸௿͍ %#ετΞυ αʔόϨε ΞʔΩςΫνϟ ͦͦ͜͜खܰ ͦͦࣗ͜͜༝ $(*1)1 http://qiita.com/zerobase/items/3bc0d15980b472af841d
  11. •ܭࢉϦιʔεΛؾʹͤͣʹ͢Ή •%#4UPSFE1SPDFEVSFΑΓ΋ࣗ༝ͳ •"1*ϋϯυϥஔ͖৔ ๻ୡ͕ਅʹٻΊ͍ͯΔ΋ͷ 11

  12. •ܭࢉϦιʔεΛؾʹͤͣʹ͢Ή •ΠϯϑϥΤϯδχΞϨεۚͰղܾͰ͖Δ •%#4UPSFE1SPDFEVSFΑΓ΋ࣗ༝ͳ •ηογϣϯ؅ཧͱ͔ɺNBOZUPNBOZͱ͔ •αϒΫΤϦΛ૊Έ্͛ͨ΍ͭͱ͔ •"1*ϋϯυϥஔ͖৔ •΋ͪΖΜɺόονͱ͔΋ஔ͖͍͚ͨΕͲ ๻ୡ͕ਅʹٻΊ͍ͯΔ΋ͷ ͿͬͪΌ͚ 12

  13. •ͱ͸͍͑ɺͰ͖Δͱ͜Ζ͚ͩ΍ͬͯɺͩΊ ͳΒ&$/*'5:$MPVEͱ͔ʹΦϑϩʔ υ͠Α͏ͥͬͯͷ͸ΈΜͳ͍ͬͯΔ Ͳ͜·ͰͰ͖Δͷ͔͸՝୊ 13

  14. 14

  15. •ୈͷํ๏ ͦ͜Ͱ 15 ΞʔΩςΫνϟ खܰ͞ ࣗ༝౓ ྨࣅϞσϧ ΞϓϦέʔγϣϯ αʔό खܰͰ͸ͳ͍

    ࣗ༝౓͸ߴ͍ σʔϞϯϓϩηε #BB4 खܰ ࣗ༝౓͸௿͍ %#ετΞυ αʔόϨε ΞʔΩςΫνϟ ͦͦ͜͜खܰ ͦͦࣗ͜͜༝ $(*1)1 ਅɾαʔόϨε ΞʔΩςΫνϟ ͦͦ͜͜खܰ ࣗ༝౓͸ߴ͍ $MJFOU"QQ http://qiita.com/zerobase/items/3bc0d15980b472af841d
  16. 4FSWFS࢖͏͔ΒͩΊͳΜ͡Όͳ͍ʁ ͦ΋ͦ΋ 16

  17. ͜ΕΛ 17 αʔό ΫϥΠΞϯτ

  18. ͜͏ͯ͠4FSWFSMFTT 18 'BB4 ΫϥΠΞϯτ

  19. ͜͏ͯ͠ਅͳΔ4FSWFSMFTT 19 9 ΫϥΠΞϯτ

  20. ͜͏ͯ͠ਅͳΔ4FSWFSMFTT 20 .2551SFTT ΫϥΠΞϯτ

  21. ͜͏ͯ͠ਅͳΔ4FSWFSMFTT 21 .2551SFTT ΫϥΠΞϯτ

  22. DEMO MQTTPRESS https://muddydixon.github.io/mqttpress/

  23. •1SPT •ෳ਺λϒΛ։͘ͱ)"ʹͳΔʂʂ •'BB4Λ؅ཧ͠ͳͯ͘΋͍͍ʂʂ • HJUBEEEPDTHJUDPNNJUHJUQVTI •4FSWFSແ͠Ͱߴ͍ࣗ༝౓ •$POT •ηΩϡϦςΟ •εέʔϥϏϦςΟ •'VMM.BOBHFEͳ.255CSPLFSʹγϑτ͠

    ͚ͨͩ 1SPT$POT 23
  24. ͜͜·Ͱ 24 )5.-$POGFSFODFͰ࿩ͨ͜͠ͱ

  25. •ΠϯϑϥΤϯδχΞΛϨεʹ͚ͨ͠Ͳ •ϒϥ΢βͷλϒΛ։͖ͬͺͳ͠ʹ͢ΔΤϯ δχΞ͕ඞཁʹͳͬͨ ͨͩ͜Εͬͯ 25

  26. •)FBEMFTTCSPXTFSΛDPOUBJOFSͰ։͍ ͯͦΕΛ؅ཧ͠Α͏ʂ Ұาઌʹ 26 97'#

  27. •$POUBJOFSͷ؅ཧ •JT4FSWFSͷ؅ཧ ͦΕ͸͢ͳΘͪ 27

  28. •$POUBJOFSͷ؅ཧ •JT4FSWFSͷ؅ཧ ͓͔͑Γ ΠϯϑϥΤϯδχΞʂ ͦΕ͸͢ͳΘͪ 28

  29. ੔ཧ͢Δ 29 Πϯϑϥʹ಄Λ ೰·͍ͤͯΔ 4FSWFSMFTT "SDIJUFDUVSF 'BB4΋ Ϧιʔεߟ͑Δ $MJFOUͰ "1*࣮૷Λ࣮ݱ

    #SPXTFSΛ ؅ཧ͢ΔΤϯδχΞ )FBEMFTT #SPXTFSΛ؅ཧ
  30. ݁ہ 30 Πϯϑϥʹ಄Λ ೰·͍ͤͯΔ 4FSWFSMFTT "SDIJUFDUVSF 'BB4΋ Ϧιʔεߟ͑Δ $MJFOUͰ "1*࣮૷Λ࣮ݱ

    #SPXTFSΛ ؅ཧ͢ΔΤϯδχΞ )FBEMFTT #SPXTFSΛ؅ཧ
  31. •.2551SFTT͔ͭ͏ͱɺHJUIVCQBHFTʹ 4FSWFS1BHFΛ͓͍͓͚ͯͩ͘ͰΞϓϦ Λ࡞ͬͯઃஔͰ͖Δɺ:FU"OPUIFSͳ 4FSWFSMFTT͕࣮ݱͰ͖Δ •4FSWFS1BHFΛ։͍͓ͯ͘#SPXTFSͷ؅ ཧͷඞཁੑ͕ੜ·Εͨ •)FBEMFTT#SPXTFSΛ$POUBJOFSͰཱͪ ্͛ͯ؅ཧ͢ΔΑ͏ʹͨ͠Βɺ݁ہ 4FSWFSMFTT͡Όͳ͘ͳͬͨ ·ͱΊ

    31
  32. None
  33. ఏڙ ʮχϑςΟͱͳΒ͖ͬͱ׎͏ʯΛ ׎͑ͯ͘ΕΔ஥ؒΛืू͍ͯ͠·͢ !NVEEZEJYPO·Ͱ