Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
AWS IoT Events はステートマシンですから。/aws-iot-events-is-...
Search
Kohei "Max" MATSUSHITA
October 13, 2019
Technology
1
630
AWS IoT Events はステートマシンですから。/aws-iot-events-is-statemachine-for-iot-devices
JAWS-UG広島14回目@酒まつり
Oct. 13, 2019 / 広島大学
Max@SORACOM
Kohei "Max" MATSUSHITA
October 13, 2019
Tweet
Share
More Decks by Kohei "Max" MATSUSHITA
See All by Kohei "Max" MATSUSHITA
AWS アーキテクチャ作図入門/aws-architecture-diagram-101
ma2shita
30
11k
JAWS FESTA 2024「バスロケ」GPS×サーバーレスの開発と運用の舞台裏/jawsfesta2024-bus-gps-serverless
ma2shita
3
650
こんにちは!AWS re:Invent 2024 です!/JAWS-UG TOHOKU-hi-threre-aws-reinvent-2024-1
ma2shita
0
130
Not only Claude 3 and Amazon Forecast! Get the Future by Chronos of Amazon's Time series FM/get-the-future-by-chronos-of-amazons-time series-fm
ma2shita
0
120
さらなるアウトプットに、Let's ライトニングトーク! ― LTのやり方
ma2shita
2
1.3k
Starlinkと宇宙の話/what-is-starlink-and-the-universe
ma2shita
0
140
Build will change the World!!
ma2shita
0
170
もうサーバーは作らない!手間も費用もかからない「サーバーレス」の選び方と始め方のコツ/lets-serverless
ma2shita
0
130
IoTデバイスを安心して使う「技適」特例の概要から届出~廃止まで && Amazon Monitronのご紹介/telec-and-amazon-monitron
ma2shita
0
810
Other Decks in Technology
See All in Technology
第4回Snowflake 金融ユーザー会 Snowflake summit recap
tamaoki
1
330
SRE不在の開発チームが障害対応と 向き合った100日間 / 100 days dealing with issues without SREs
shin1988
1
1.1k
LLM時代の検索
shibuiwilliam
2
610
AWS CDK 入門ガイド これだけは知っておきたいヒント集
anank
4
490
United Airlines Customer Service– Call 1-833-341-3142 Now!
airhelp
0
170
【LT会登壇資料】TROCCO新コネクタ「スマレジ」を活用した直営店データの分析
kazari0425
1
140
Four Keysから始める信頼性の改善 - SRE NEXT 2025
ozakikota
0
130
CDKコード品質UP!ナイスな自作コンストラクタを作るための便利インターフェース
harukasakihara
2
160
Contributing to Rails? Start with the Gems You Already Use
yahonda
2
120
IPA&AWSダブル全冠が明かす、人生を変えた勉強法のすべて
iwamot
PRO
2
220
ゼロからはじめる採用広報
yutadayo
3
1k
Amplify Gen2から知るAWS CDK Toolkit Libraryの使い方/How to use the AWS CDK Toolkit Library as known from Amplify Gen2
fossamagna
0
150
Featured
See All Featured
Automating Front-end Workflow
addyosmani
1370
200k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
281
13k
Optimizing for Happiness
mojombo
379
70k
Learning to Love Humans: Emotional Interface Design
aarron
273
40k
Evolution of real-time – Irina Nazarova, EuRuKo, 2024
irinanazarova
8
830
Principles of Awesome APIs and How to Build Them.
keavy
126
17k
Code Review Best Practice
trishagee
69
19k
Making Projects Easy
brettharned
116
6.3k
KATA
mclloyd
30
14k
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
357
30k
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
34
5.9k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
367
26k
Transcript
AWS IoT Events は ステートマシンですから。 JAWS-UG広島14回目@酒まつり Oct. 13, 2019 /
広島大学 Max@SORACOM
株式会社ソラコム テクノロジー・エバンジェリスト 松下享平 (まつした こうへい) "Max" 講演回数 140超/年 保有スライド枚数 8000枚超
オーバーラン常習犯
Max の好きな AWS サービス AWS IoT Core
None
IoT やってる??
#あのボタン の会社
クラウド ネットワーク センサー/デバイス “モノ” 「IoT」とは? モノやコトをデジタル化
1 2 3 4 5 6 7 8 9
AWS IoT Core この辺で使う サービスの話。
Lambda アーキテクチャ コンテナ
時代はステートレス
ステートが必要になることも あるんです
Open Close ステート どこに保存しておこうか?
デバイスシャドウで「デジタルツイン」 Close
シャドウステータスの更新方法 クラウド上: •AWS IoT Core のルールエンジン •その先の AWS Lambda デバイス上:
•AWS IoT Greengrass (ってかLambda)
結局 AWS Lambda じゃねぇか!!
ステート実装の面倒な事 どんなステート があるの? どういう条件で ステート移行 するの?
AWS IoT Events
None
AWS IoT Events 「探知機モデル」編集画面 これは…ステートマシンの味だぜ!!!!
ステートマシンって? • いわゆる「状態遷移(図)」だよ。
変数 => [距離] [距離] 200 以上 [距離] 200 未満 AWS
IoT Events が • 最終的なステートを保存してくれる • 次回はそのステートからスタートしてくれる [距離] = 250 → ← [距離] = 100 ※ Close に移行 ← [距離] = 300 ※ Open のまま
変数 => [距離] [距離] 200 以上 [距離] 200 未満 •
OnEnter • OnInput • OnExit • OnEnter • OnInput • OnExit ステートに遷移した際の アクションを指定できる
結局 AWS Lambda じゃねぇか!! とはいえ、コード内には ステート移行条件の If 文とか 書く必要が無い。 「Lambda
が Lambda であるために」
AWS IoT Core からの Invoke 方法は?
None
AWS IoT Events は ステートマシーン ステートは AWS IoT Events に
任せよう
None
幸運の女神は前髪しかない いや、つるっぱげなので 準備して両手でキャッチしろ。
Max でした!