SlideShare a Scribd company logo
1 of 33
©️ UniFa Inc.
ルクミー
午睡チェックを
支える
アーキテクチャ
ユニファ株式会社
©️ UniFa Inc.
事業・サービスについて
©️ UniFa Inc.
もっと見たい。
もっと見てほしい。
を、もっと叶えたい。
「保育の質を上げる」保育関係者のパートナー
©️ UniFa Inc.
ルクミー午睡チェック概要
午睡チェックセンサー
午睡チェックアプリ
 体の向きを自動で記録
 うつ伏せ寝、体動の停止時にア
ラートでお知らせ
 帳票(午睡チェック表)出力
Web管理画面
©️ UniFa Inc.
従来の午睡チェック業務
手書きによる5分間隔でのうつ伏せ寝チェック
©️ UniFa Inc.
利用実績
特に求められる Well-Architected の柱
 信頼性
 運用上の優秀性
導入施設数 約 3,200 施設
午睡センサー数 約 35,000 個
タブレット数 約 5,000 台
©️ UniFa Inc.
システムアーキテクチャ
©️ UniFa Inc.
想定された課題
アクセス特性
 ピークタイム: 11:00 – 15:00
 5分毎に iPad アプリから集中的にデータが送信される
チェックシートデータ量
 12レコード/園児/時 x 14時間 x 10園児 = 1,680レコード/日/施設
 1,680 x 2,000施設 = 3,360,000レコード/日
©️ UniFa Inc.
Well-Architected なポイント
 信頼性
 運用上の優秀性
©️ UniFa Inc.
Overview
©️ UniFa Inc.
全体構成図
©️ UniFa Inc.
全体構成図
オンライン処理
©️ UniFa Inc.
全体構成図
バッチ処理
©️ UniFa Inc.
全体構成図
©️ UniFa Inc.
全体構成図
©️ UniFa Inc.
午睡チェックシートデータの処理
©️ UniFa Inc.
午睡チェックシートデータの処理
ピークタイムに合わせて
EC2 を Auto Scaling
ピークタイムに合わせて
EC2 を Auto Scaling
(API Server と同一インスタンス)
©️ UniFa Inc.
午睡チェックシートデータの処理
Redis を使用して
ステータスフラグを記録し
Create/Update/Delete の
処理順番を保つ
©️ UniFa Inc.
午睡チェックシートデータの処理
SQSを介した非同期処理
Worker が DynamoDBに書き込む
©️ UniFa Inc.
午睡チェックシートデータの処理
©️ UniFa Inc.
午睡チェックシートデータの処理
DynamoDB の Write Capacity を
予め登録しておく
Worker は起動時に自身の情報を登録
稼働中の Worker 数と
Write Capacity の情報を取得
WriteCapacity: 120
©️ UniFa Inc.
午睡チェックシートデータの処理
DynamoDB の Write Capacity を
予め登録しておく
Worker は起動時に自身の情報を登録
稼働中の Worker 数と
Write Capacity の情報を取得
Write Capacity の情報をもとに
スロットリングが発生しないように
書き込み速度を調整
WriteCapacity: 120 40
40
40
©️ UniFa Inc.
Design for Failure
10回処理に失敗したデータは
DLQに格納される。
送信順が不正だった場合は
処理に失敗するため
DLQに格納され通知される。
4日間処理されなかった場合
削除される
©️ UniFa Inc.
Design for Failure
©️ UniFa Inc.
Design for Failure
午睡チェック業務実行中の場合は
サーバへ接続できなくなっても
センサーと iPad 間でチェック業務可能
©️ UniFa Inc.
Design for Failure
セルラー回線(SORACOM Air Sim)を使うことで
保育園のWi-Fiの安定性の問題を回避
同時に導入時の保育園側のハードルを下げる
©️ UniFa Inc.
ビジネスインパクト
©️ UniFa Inc.
導入施設数
 サービス開始: 2018年4月(約2年半経過)
 導入施設数: 約3,200施設(2020/06/30時点)
©️ UniFa Inc.
データ量増加推移
0
1
2
3
4
5
6
7
8
9
10
Millions
2年半累計で約1.2億レコード 2020.04緊急事態宣言
コ
ロ
ナ
禍
に
よ
る
稼
働
減
©️ UniFa Inc.
アーキテクチャによるビジネス貢献
信頼性
 レスポンスタイムやパフォーマンスの劣化なし
 サーバに接続できなくても稼働継続可能
運用上の優秀性
 セルラー回線を使うことでWi-Fiの問題を回避
 安定的な稼働と導入時のハードルを下げることに貢献
©️ UniFa Inc.
安心を進化させる。
ほほ笑みが増えていく。
命に関わる業務での
安心・安全をサポート
求められる Well-Architected の柱
 信頼性
 運用上の優秀性
©️ UniFa Inc.
もっと見たい。
もっと見てほしい。
を、もっと叶えたい。
©️ UniFa Inc.
We are hiring!!
インフラエンジニア、Rubyエンジニアをはじめとして
開発メンバー募集しています!!お気軽にご連絡ください!!
求人一覧はこちら!!

More Related Content

Featured

How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
 
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
Kurio // The Social Media Age(ncy)
 

Featured (20)

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
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...
 

ルクミー午睡チェックを支えるアーキテクチャ