8. Cloud OnAir
● NoSQL データベース
● ユニークな Row Key を
指定してデータを取り出す
● スパースなデータに対応
Cloud Bigtable の特徴
User ServiceAccess
Row Key Name Device Shopping Video
UserID_1 A PC 10
UserID_2 B 20
UserID_3 C mobile 3
UserID_4 D mobile 11 15
Row Key を指定してデータを取得
例:ユーザデータの保存
15. Cloud OnAir
● 関連する列はカラムファミリとしてグ
ループ化が可能
● 指定したカラムファミリに絞ってデータ
を取り出すことも可能
● 通信量やアプリケーション側での
処理を最低限に抑えられる
Cloud Bigtable の便利な機能
Cloud Bigtable ストレージ モデル
例:ユーザデータの保存
Column Family
User ServiceAccess
Row Key Name Device Shopping Video
UserID_1 A PC 10
UserID_2 B 20
UserID_3 C mobile 3
UserID_4 D mobile 11 15
16. Cloud OnAir
● 保存する値はタイムスタンプを
基にして複数の値を格納可能
○ データの時間の経過に伴う
変更履歴としても利用可能
● スパースなデータに対応しているためデー
タが格納されていないセルが
容量を消費しない
Cloud Bigtable の便利な機能
15
14
13
Timestamp 3
Timestamp 2
Timestamp 1
Cloud Bigtable ストレージ モデル
例:ユーザデータの保存
User Service
Row Key Name Device Shopping Video
UserID_1 A PC 10
UserID_2 B 20
UserID_3 C mobile 3
UserID_4 D mobile 11 15
22. Cloud OnAir
● シーケンシャル数値の行キー
○ 新規のユーザーのほうがアクティブなユーザーになる可能性が高いため、
大半のトラフィックがごく少数のノードに集中する可能性がある
避けたい使い方
User ServiceAccess
Row Key Name Device Shopping Video
1000 A PC 10
1001 B 20
1002 C mobile 3
1003 D mobile 11 15