SlideShare a Scribd company logo
1 of 11
ルクミー午睡チェックが
できるまで
2019/9/25
ユニファ株式会社 田渕 梢
はなす人。
田渕 梢(たぶち こずえ)
プロダクト開発部 部長
2015年8月 UniFa入社。
Webエンジニア。
それまではソニー系列のシステム子会社や
アクセンチュアでBtoCサービス、
輸出入管理サービスなどを担当。
Agenda
1. 事業背景
2. ルクミー午睡チェックとは
3. 全体システム構成
4. 利用園数推移とリクエストの特徴
5. データ保存周りの拡大構成
6. 本番で起こした失敗
7. 原因と対策
8. まとめ
午睡とは/事業背景
● 保育施設での死亡事故の約77%は睡眠中
○ その中で、仰向け寝が推奨されているにも関わらず40%はうつ伏せ寝で
死亡事故が発生しているというデータ(※1)がある。
● 午睡チェックとは
○ 保育園における乳幼児のお昼寝(午睡)時に実施するチェック
○ 発熱や呼吸異常等、園児の異常の早期発見、SIDS(乳幼児突然死症候群)
の発生防止が目的。
○ 「5分に一度、体の向きと呼吸の有無を確認し、うつぶせ寝となってい
る場合は仰向けに変更する。」といった内容を全園児に対して実施。
○ 行政よりチェックの実施と実施結果記録の提出が求められている。
(※1 平成29年5月12日 内閣府子ども・子育て本部 公表
「平成28年教育・保育施設等における事故報告集計」から算出)
ルクミー午睡チェック
午睡=お昼寝の時間に使うアプリ
https://lookmee.jp/gosui/
加速度センサーを利用して、
園児の体の向き、体動の有無を検知。
タブレット上で複数人分同時に確認が出来る。
2018年4月正式サービス開始
導入園数2000施設以上(利用園児数二万人以上)
→2018年度一年で大きな成長を遂げる。
衣服に
センサーを装着。
午睡チェックの全体構成
AWS
園
RDB
ログ
(S3)
園児情報など
後の解析用。
5分ごとのデータ
160m秒ごとのデータ
Dynamo
DB
160m秒ごと
のデータ
負荷、量、価格を
考慮し一部を
DynamoDBに。
Bluetooth
SORACOM
のSIM
利用園数推移とリクエストの特徴
サービス
提供開始
午睡チェックはどの園も5分に一回
可能な限り、リアルタイムにサーバーに
反映されて欲しいという現場要望
(当たり前だが)今後利用者数はどんどん
増えていく。
<センサー提供数実績>
負荷の分散が出来ない
+
処理可能リクエスト数について
制御機構が必要
データ保存周り拡大概略構成(同期処理ケース)
午睡
AWS
LB
Dynamo DB
①午睡チェック
データ送信
③順次保存
⑤矢印を表示
④処理が終
わったこと
を通知 <処理の流れ>
①午睡チェックデータを送信
②Webサーバでリクエストを受付
③順番にDBにデータを保存
(Dynamo DB)
④処理が終わった旨をアプリ側に返信。
⑤矢印が表示される
Web
1
Web
2
②受付
本番で起こした失敗
午睡
AWS
LB
Dynamo DB
①午睡チェック
データ送信
②処理詰まり
③受付不能
⑤矢印表示な
し
④通知来
ず
<処理の流れ>
①いつもより多いデータが飛んでくる。
②Dynamo上のテーブルが読み取り処理
上限により処理詰まり
③処理が進まずWebサーバのリクエスト
上限突破→リクエスト受付不能に。
④午睡チェックアプリへの返信が遅れる、
あるいは返事がない状態に。
⑤午睡チェックアプリ上で徐々に矢印が
表示されなくなる。
⑥気づいた園より、問い合わせが殺到
Web
1
Web
2
原因と対策
● 原因
○ ビジネスサイドとの連携不足により、一気に利用園数が増えるタイミン
グをシステム側が把握していなかった。(そもそも、フローが整備され
ていなかった。)
■ このトラブルの起こった日は一気に90園が増えた日だった。
○ 応答処理速度の監視など、一部の監視が行われていなかったことで、事
態に気づくのが遅れた。(問い合わせで発覚。)
● 対策
○ DynamoDBの設定を固定からOnDemandモードに変更
○ 監視機構の再整備、時間帯によるサーバー台数増減実施
まとめ
● IoTサービスであっても、サーバーサイドは当たり前のことを当たり前にやれ
ばサービスの開始と運用は可能
● 利用シーンが一般のブラウザベースのWebサービスと異なるため、サービス
特性をよく考え、事前に負荷の予測をある程度実施しておく必要がある。
○ とはいえ、世に存在しないサービスであることも多いので、実際の勝負
はサービスが実稼働してから。
○ 早い時期での監視機能の整備は必須。
○ 想定外は起こる前提で計画、間違いに気づいてから、いかに早く軌道修
正や対策を行うことが出来るかが大事
○ 早期に軌道修正可能な環境(組織的な部分も含めて)にしておくことが
大切

More Related Content

Featured

PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsKurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summarySpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project managementMindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...RachelPearson36
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Applitools
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at WorkGetSmarter
 
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...DevGAMM Conference
 
Barbie - Brand Strategy Presentation
Barbie - Brand Strategy PresentationBarbie - Brand Strategy Presentation
Barbie - Brand Strategy PresentationErica Santiago
 

Featured (20)

PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
 
ChatGPT webinar slides
ChatGPT webinar slidesChatGPT webinar slides
ChatGPT webinar slides
 
More than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike RoutesMore than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike Routes
 
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
 
Barbie - Brand Strategy Presentation
Barbie - Brand Strategy PresentationBarbie - Brand Strategy Presentation
Barbie - Brand Strategy Presentation
 

ルクミー午睡チェックができるまで