Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
AWS IoT Events はステートマシンですから。/aws-iot-events-is-...
Search
Kohei "Max" MATSUSHITA
October 13, 2019
Technology
710
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
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
More Decks by Kohei "Max" MATSUSHITA
See All by Kohei "Max" MATSUSHITA
aws-iot-platform-architecture-use-cases.pdf
ma2shita
0
1k
AWS アーキテクチャ作図入門/aws-architecture-diagram-101
ma2shita
32
33k
JAWS FESTA 2024「バスロケ」GPS×サーバーレスの開発と運用の舞台裏/jawsfesta2024-bus-gps-serverless
ma2shita
3
1.1k
こんにちは!AWS re:Invent 2024 です!/JAWS-UG TOHOKU-hi-threre-aws-reinvent-2024-1
ma2shita
0
270
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
240
さらなるアウトプットに、Let's ライトニングトーク! ― LTのやり方
ma2shita
2
2.2k
Starlinkと宇宙の話/what-is-starlink-and-the-universe
ma2shita
0
220
Build will change the World!!
ma2shita
0
270
もうサーバーは作らない!手間も費用もかからない「サーバーレス」の選び方と始め方のコツ/lets-serverless
ma2shita
0
210
Other Decks in Technology
See All in Technology
今こそ知りたいAmplifyGen2
mkdev10
2
160
雪かき部 #7 もう怖くない!SELECT文!
foursue
0
280
子育てエンジニアの可処分時間が減っても成長を諦めない戦い方
sudoakiy
3
2.8k
AI駆動開発の時代になったのでトヨタ生産方式から見直す
terurou
3
4.3k
ai_cording_with_k8s_knowledge.pdf
mochizuki875
1
310
Snapshot Testing in Practice: Predictable and Reliable SwiftUI Views
fespinoza
0
140
OpenSharing について熱く語る〜AI アセットの共有について〜
kameitomohiro
0
240
OSC2026on_the-world-is-waiting-for-your-voice.pdf
naruoga
0
360
UniFi(ユニファイ)AIカメラの現場活用
ludicmind
1
160
全人類(ほぼ)AWS Organizations の上でAWSを利用している、その世界を知る話
htan
0
120
AI時代だからこそ推したい!Gitコマンド再入門
munakata
0
150
3つのアプローチで目指す チームを強くするAI駆動開発
thkt
0
120
Featured
See All Featured
Test your architecture with Archunit
thirion
2
2.4k
世界の人気アプリ100個を分析して見えたペイウォール設計の心得
akihiro_kokubo
PRO
74
42k
The Organizational Zoo: Understanding Human Behavior Agility Through Metaphoric Constructive Conversations (based on the works of Arthur Shelley, Ph.D)
kimpetersen
PRO
0
490
What the history of the web can teach us about the future of AI
inesmontani
PRO
2
730
The Language of Interfaces
destraynor
162
27k
GitHub's CSS Performance
jonrohan
1033
470k
Taking LLMs out of the black box: A practical guide to human-in-the-loop distillation
inesmontani
PRO
3
2.4k
Groundhog Day: Seeking Process in Gaming for Health
codingconduct
0
390
30 Presentation Tips
portentint
PRO
1
420
Statistics for Hackers
jakevdp
799
230k
[SF Ruby Conf 2025] Rails X
palkan
3
1.4k
Fireside Chat
paigeccino
43
4.1k
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 でした!