Slide 1

Slide 1 text

ͦͷIoTγεςϜɺ σόΠε͕1000୆ʹͳͬͯ΋େৎ෉Ͱ͔͢ʁ 2020-09-15(Tue) IoTറΓͷษڧձ! IoTLT vol.67 ઌਐٕज़෦໳ IoTνʔϜ ΤϯδχΞ Ԭቌ ༤ฏ 1

Slide 2

Slide 2 text

ࣗݾ঺հ Ԭቌ ༤ฏ Okazaki Yuhei ‣ ID - @yuuu @Y_uuu ‣ ࣗݾ঺հ • ઌਐٕज़෦໳ IoTνʔϜ ΤϯδχΞ • ݩɾ૊ࠐΈΤϯδχΞ(2018೥͔ΒWebܥ΁) • ޷͖ͳσόΠε͸M5StickC ‣ Skill 2 image

Slide 3

Slide 3 text

ٕज़ॻయ9ͰຊΛൢച͍ͯ͠·͢ 3 https://techbookfest.org/product/5189029702139904

Slide 4

Slide 4 text

ٕज़ॻయ9ͰຊΛൢച͍ͯ͠·͢ 4 https://techbookfest.org/product/5189029702139904

Slide 5

Slide 5 text

ٕज़ॻయ9ͰຊΛൢച͍ͯ͠·͢ 5 https://techbookfest.org/product/5189029702139904

Slide 6

Slide 6 text

͔͜͜Βຊ୊Ͱ͢ Start

Slide 7

Slide 7 text

େ఍ͷIoT͸PoC͔Β͸͡·Δ 7 Ғ͍ਓ ࠓճͷγεςϜ͸1P$˞͔ͩΒ ͱΓ͋͑ͣಈ͔͢͜ͱ༏ઌͰେৎ෉ʂ σόΠε΋਺୆Ͱ͢΋ΜͶʂ ͬ͞ͱ࡞ͬͨͷͰͥͻࢼͯ͠Έ͍ͯͩ͘͞ ˞1P$1SPPGPG$PODFQUͷུɺࢼ࡞։ൃͷલஈ֊ʹ͓͚Δݕূ΍σϞͷ͜ͱ ΤϯδχΞ

Slide 8

Slide 8 text

਺Χ݄ޙ…

Slide 9

Slide 9 text

ಥવͷεέʔϧΞ΢τ 9 Ғ͍ਓ લͷPoC্͕ख͍ͬͨͧ͘ʂʂʂ γεςϜΛશࠃʹల։͢Δ͜ͱ͕ܾ·ͬͯ 1000୆ͷσόΠε͔ΒσʔλΛૹΔ͔Βʂ (͏Θͬ…1000୆ͬͯେৎ෉͔ͳ) ΤϯδχΞ

Slide 10

Slide 10 text

ͦͷIoTγεςϜɺ σόΠε͕1000୆ʹͳͬͯ΋େৎ෉Ͱ͔͢ʁ ?

Slide 11

Slide 11 text

ྫ୊: ର৅γεςϜ 11 • IoTͰΑ͋͘ΔؾԹ؂ࢹγεςϜ ※ʮAWSͱM5StickCͰ࡞ΔIoT։ൃೖ໳ʯ͔ΒҾ༻ • ؾԹ͕30℃Λ௒͑ΔͱSlack΁௨஌ɺWeb͔Β΋άϥϑ͕ݟΒΕΔ

Slide 12

Slide 12 text

ྫ୊: ର৅γεςϜ 12 • ͨͩ͠ɺखҧ͍ͰҎԼͷΑ͏ͳઃఆ͕͞Ε͍ͯΔ • Lambdaͷಉ࣮࣌ߦ਺͕1 • DynamoDBͷΩϟύγςΟϢχοτ(RCU, WCU)͕ϓϩϏδϣϯυͷ1 ಉ࣮࣌ߦ਺: 1 RCU, WCU: 1 ✕1000୆

Slide 13

Slide 13 text

͋ͨ·ͷதͰ͏͔ͯ͝͠ΈΑ͏ 13 • ͨͿΜɺIoT Core→Lambda͕٧·Δ • ͓ͦΒ͘ɺIoT Core→DynamoDB͕٧·Δ • ͦͯ͠…Ͳ͏ͳΔʁ ಉ࣮࣌ߦ਺: 1 RCU, WCU: 1 ✕1000୆

Slide 14

Slide 14 text

࣮ࡍʹ΍ͬͯΈͨ ⚡

Slide 15

Slide 15 text

࣮ࡍʹ΍ͬͯΈͨ 15 • mockmockͰ1000୆ͷԾ૝σόΠεΛ࡞੒ • M5StickCͱಉ༷ʹ10ඵपظͰσʔλૹ৴
 ※ cn1kͱ͍͏༗ྉͷϓϥϯΛ࢖༻͍ͯ͠·͢ Ծ૝σόΠε✕1000୆ 10ඵपظͰσʔλૹ৴

Slide 16

Slide 16 text

ࢀߟ: mockmockͱ͸ 16 • IoT։ൃʹ͓͚ΔςετΛࢧԉ͢ΔαʔϏε • σόΠεͷ୅ΘΓʹԾ૝σόΠε(mock)͕όοΫΤϯυ΁σʔλΛૹ৴͢Δ • mock͸࠷େ5ສ୆·ͰىಈՄೳ Ͱݕࡧͯ͠Έ͍ͯͩ͘͞ NPDLNPDL ৄࡉ͸

Slide 17

Slide 17 text

1000୆ͷmockΛىಈʂ 17

Slide 18

Slide 18 text

͍Ζ͍Ζ໰୊͕ى͜Δ ʂ

Slide 19

Slide 19 text

SlackͷIncoming WebhookͰϫʔχϯά͕ग़Δ 19 • ʮΞΫςΟϏςΟ͕ଟ͍ͨΊɺҰ෦ͷϝοηʔδ͸දࣔ͞Ε·ͤΜɻʯͱͷ͜ͱ

Slide 20

Slide 20 text

mockmock͔Βͷૹ৴ఀࢭޙɺ30෼΄Ͳ௨஌͕ଓ͘ 20 • 30෼΄ͲɺԆʑͱ௨஌͕དྷΔ • Lambdaͷ࣮ߦ͕Throttle͞Ε͍ͯΔ • ଟ਺ͷΠϕϯτΛ1ͭͷLambda͕ࡉʑͱ͞͹͖ଓ͚͍ͯΔ

Slide 21

Slide 21 text

DynamoDBʹ஋͕ॻ͖ࠐ·Εͳ͍ 21 • ΩϟύγςΟϢχοτ1ͩͱͦ΋ͦ΋1ճ΋ॻ͖ࠐΊͳ͔ͬͨ • Write Throttle Events Sum͕ٸ૿͍ͯ͠Δ

Slide 22

Slide 22 text

Έͳ͞Μ͸ɺ ૝૾Ͱ͖·͔ͨ͠ʁ

Slide 23

Slide 23 text

·ͱΊ 23 •಄ͷதͰ͏͔͢͜͝ͱ΋େࣄ͕ͩɺݱ࣮͸૝૾Λ௒͑Δ •ಛʹIoTγεςϜ͸ςετͯ͠Έͯ໰୊ʹؾͮ͘৔߹͕ଟ͍ •Ͱ͖Δ͚ͩຊ൪ʹ͍ۙ؀ڥΛ࠶ݱ͢Δ͜ͱ͕େࣄʂ 1000୆ͷσόΠεͰ໰୊ແ͘ಈ͍ͨͷͰ ࣗ৴Λ࣋ͬͯϦϦʔεͩʂ

Slide 24

Slide 24 text

ࢼͯ͠Έͨ͘ͳͬͨਓ͸ͥͻಡΜͰΈ͍ͯͩ͘͞ʂ 24 https://techbookfest.org/product/5189029702139904

Slide 25

Slide 25 text

͝ਗ਼ௌ͍͖ͨͩ͋Γ͕ͱ͏͍͟͝·ͨ͠ Thank You We are Hiring ! https://recruit.fusic.co.jp/