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
680
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 アーキテクチャ作図入門/aws-architecture-diagram-101
ma2shita
32
23k
JAWS FESTA 2024「バスロケ」GPS×サーバーレスの開発と運用の舞台裏/jawsfesta2024-bus-gps-serverless
ma2shita
3
990
こんにちは!AWS re:Invent 2024 です!/JAWS-UG TOHOKU-hi-threre-aws-reinvent-2024-1
ma2shita
0
250
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
210
さらなるアウトプットに、Let's ライトニングトーク! ― LTのやり方
ma2shita
2
2k
Starlinkと宇宙の話/what-is-starlink-and-the-universe
ma2shita
0
190
Build will change the World!!
ma2shita
0
230
もうサーバーは作らない!手間も費用もかからない「サーバーレス」の選び方と始め方のコツ/lets-serverless
ma2shita
0
180
IoTデバイスを安心して使う「技適」特例の概要から届出~廃止まで && Amazon Monitronのご紹介/telec-and-amazon-monitron
ma2shita
0
1k
Other Decks in Technology
See All in Technology
手塩にかけりゃいいってもんじゃない
ming_ayami
0
550
やさしいA2A入門
minorun365
PRO
12
1.8k
AIの性能が向上しても未解決な組織の重大問題は何か?/An Unsolved Organizational Problem in the Age of AI
moriyuya
4
650
AmazonRoute 53ではじめてのドメイン取得!HTTPS化までの道のりを整理してみた
usanchuu
3
140
Agent Skills設計で柔軟性と硬さのバランスが難しい話
nassy20
0
130
【セミナー資料】Claude Code をセキュアに使うための考え方と設定の勘どころ / Claude Code Webinar 20260616
masahirokawahara
1
130
なぜ Platform Engineering の土台に Kubernetes を選ぶのか
r4ynode
2
630
自律型AIエージェントは何を破壊するのか
kojira
0
160
protovalidate-es を導入してみた
bengo4com
0
180
スキルと MCP ツール、責務をどう分けるか? AI が迷わないインターフェース設計の戦略
cdataj
1
1k
Chainlitで作るお手軽チャットUI
ynt0485
0
230
"何を作るか"を任される エンジニアは、どう育つのか
yutaokafuji
1
660
Featured
See All Featured
How People are Using Generative and Agentic AI to Supercharge Their Products, Projects, Services and Value Streams Today
helenjbeal
1
210
A Modern Web Designer's Workflow
chriscoyier
698
190k
Fantastic passwords and where to find them - at NoRuKo
philnash
52
3.7k
For a Future-Friendly Web
brad_frost
183
10k
Faster Mobile Websites
deanohume
310
31k
Navigating the moral maze — ethical principles for Al-driven product design
skipperchong
2
390
Raft: Consensus for Rubyists
vanstee
141
7.5k
svc-hook: hooking system calls on ARM64 by binary rewriting
retrage
2
300
Public Speaking Without Barfing On Your Shoes - THAT 2023
reverentgeek
1
420
Applied NLP in the Age of Generative AI
inesmontani
PRO
4
2.3k
Money Talks: Using Revenue to Get Sh*t Done
nikkihalliwell
0
250
How Fast Is Fast Enough? [PerfNow 2025]
tammyeverts
3
610
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 でした!