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
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
Kohei "Max" MATSUSHITA
October 13, 2019
Technology
700
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
32k
JAWS FESTA 2024「バスロケ」GPS×サーバーレスの開発と運用の舞台裏/jawsfesta2024-bus-gps-serverless
ma2shita
3
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
230
さらなるアウトプットに、Let's ライトニングトーク! ― LTのやり方
ma2shita
2
2.1k
Starlinkと宇宙の話/what-is-starlink-and-the-universe
ma2shita
0
210
Build will change the World!!
ma2shita
0
260
もうサーバーは作らない!手間も費用もかからない「サーバーレス」の選び方と始め方のコツ/lets-serverless
ma2shita
0
210
IoTデバイスを安心して使う「技適」特例の概要から届出~廃止まで && Amazon Monitronのご紹介/telec-and-amazon-monitron
ma2shita
0
1.1k
Other Decks in Technology
See All in Technology
20260912_スクラムにジェネラリストは必要か
ryugen04
0
380
アプリをもっと"iOSアプリっぽく"する小さな工夫 / Small Touches That Make Your App Feel More Like an iOS App
matsuji
1
740
アプリログインとWeb認証基盤をつなぐ ASWebAuthenticationSession 作法
shimastripe
1
250
[2026-09-11]SREは誰のもの?運用エンジニアが始める 「SRE領域への越境」とチームの進化の軌跡 〜Road to NEXT CRE
tosite
0
170
安心して変更できるWebフロントエンドの作り方
pirosikick
4
1.9k
ASTを使って影響範囲を特定する
nealle
0
180
AI時代のAPI品質を支えるガードレール / API Guardrails for API quality in the AI era
yokawasa
1
220
AIで仕事のやり方を変える
matsu7874
3
1.1k
10Xに技術的負債をもたらした「2つの境界の歪み」その構造と解消への営み
10xinc
0
620
すぐできる衛星通信対応 あとは山奥に行くだけ
tatetate55
0
110
20260906 「AWS運用入門」著者が教える、運用業務への生成AI活用入門
masaruogura
0
260
生成AIのテナント制御とシャドーMCP対策 | AIを"止めずに"、情報を守る
yukun
0
160
Featured
See All Featured
The Hidden Cost of Media on the Web [PixelPalooza 2025]
tammyeverts
2
500
How to optimise 3,500 product descriptions for ecommerce in one day using ChatGPT
katarinadahlin
PRO
2
3.8k
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
35
3.8k
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
31
2.9k
The Straight Up "How To Draw Better" Workshop
denniskardys
239
140k
Raft: Consensus for Rubyists
vanstee
141
7.7k
Rails Girls Zürich Keynote
gr2m
96
14k
So, you think you're a good person
axbom
PRO
2
2.1k
Utilizing Notion as your number one productivity tool
mfonobong
4
590
Neural Spatial Audio Processing for Sound Field Analysis and Control
skoyamalab
0
490
Writing Fast Ruby
sferik
630
63k
GraphQLの誤解/rethinking-graphql
sonatard
75
12k
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 でした!