SlideShare a Scribd company logo
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
2018.10.02
DynamoDB
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
対象者
• Amazon DynamoDB を初めて触るアプリケーション開発者
• AWSの知識は問いません
※ 上級者向けに Advanced Design Pattern セッション (11/1 16:20~ ) もございます
ゴール
• DynamoDBをマネジメントコンソールから操作できるようになる
• DynamoDBをアプリケーション(SDK/CLI)から操作できるようになる
• 要件から適切なキーとインデックスを設計できるようになる
2
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
1. はじめに
i. 事前に準備すべきもの
ii. 共有事項
2. NoSQLとは
i. SQLとNoSQL比較
ii. NoSQLの種類
iii. AWSのNoSQLサービス
3. DynamoDB概要
i. 特徴
ii. ユースケース
iii. ハンズオン1
4. データ操作方法
i. API
ii. AWS SDKs and CLI
iii. ハンズオン2
5. テーブル設計
i. Key
ii. Index
iii. ハンズオン3,4
6. まとめ
i. 本日のまとめ
ii. ハンズオンリソース削除
3
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
•
•
•
5
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
•
•
•
•
6
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
2.NoSQLとは
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
NoSQL
NoSQL 8
NoSQL
•
•
• JSON
•
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. 9
•
•
•
•
•
•
NoSQLSQL
URL
https://aws.amazon.com/jp/nosql/
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
JSON XML
10
DB
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
https://aws.amazon.com/jp/dynamodbhttps://aws.amazon.com/jp/elastica
che
https://aws.amazon.com/jp/neptune
11
https://aws.amazon.com/jp/elasticsearch-service
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
3.Amazon DynamoDB 概要
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
•
•
•
13
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Amazon が提供する高い信頼性、スケーラビリティ、低レイテンシ
で安定した性能を兼ね備えた NoSQL データベースサービス
① 管理不要で信頼性が高い
② プロビジョンドスループット
③ ストレージの容量制限がない
参考資料:
Amazon DynamoDB : https://aws.amazon.com/jp/dynamodb
Amazon DynamoDB ドキュメント: https://aws.amazon.com/jp/documentation/dynamodb/
クラウドサービス活用資料集: https://aws.amazon.com/jp/aws-jp-introduction/
14
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. 15
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
•
•
•
•
•
16
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. 17
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
KVS
SDK 2
AD TECH
•
•
•
•
•
IoT
•
• Amazon Redshift Amazon QuickSight
18
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
パーティションキー ソートキー
name/value 型、JSON 型等
item間で不揃いな構成も可能
19
項目
(items)
属性 (attributes)テーブル
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. 22
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
UName
( )
Date
( )
Path
( )
TotalCount
( )
Ohba 2018-10-25
09:00:23
./images/9618.jpg 0
Ohba 2018-10-26
15:12:30
./images/5151.jpg 0
Uehara 2018-10-25
09:00:23
./images/1904.jpg 0
Uehara 2018-10-25
10:11:11
./images/2032.jpg 10
Uehara 2018-10-26
12:55:25
./images/2448.jpg 2
Partition
Key
Sort Key
23
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. 24
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
•
•
•
25
:
Amazon DynamoDB : https://aws.amazon.com/jp/getting-started/tutorials/create-nosql-table/
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. 26
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
API
SDK
Database
ClientSideServiceSide
Client application
28
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
CreateTable
DescribeTable
ListTables
UpdateTable
DeleteTable
PutItem
BatchWriteItem
GetItem
BatchGetItem
Query
Scan
UpdateItem 1
DeleteItem
DynamoDB
ListStreams
DescribeStream
GetShardIterator
GetRecords
1
29
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Java Python PHP .NET Ruby nodeJS
iOS Android
Javascript
in the Browser AWS CLI
30
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
•
•
•
•
•
http://aws.amazon.com/jp/dynamodb/developer-resources/
31
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
DynamoDB






33
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
• IAM
• demo1.html producer1.js
• ListTables PutItem GetItem UpdateItem DeleteItem
•
• ListTables Query UpdateItem
34
:
AWS SDK for JavaScript: https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/DynamoDB.html
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. 35
AWS
( )
全操作可能
IAM
EC2
S3
IAM
管理者グルー
プ
開発グループ
運用グループS3参照
だけ
S3は
すべて
操作可能
全操作
可能
•
•
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. 36
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. 38
1 1
Key-Value
1
RDBMS
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
テーブル
項目
(items)
属性
(attributes)
パーティションキー
(必須)
ソートキー
(オプション)
スキーマなし
1:Nモデルのリレーションシップ
豊富なQueryをサポート
同じパーティションキー内でソート
キーバリュー型のアクセスを実現
パーティショニングに利用される
==, <, >, >=,<=
“begins with”
“between”
sorted results
counts
先頭/末尾 N件
ページ単位出力
パーティションキー + ソートキー(オプション) = プライマリキー
name/value 型、JSON 型等
item間で不揃いであっても問題
ない
39
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. 40
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Partition Table
55 A954 AA FF
Partition Key は単体でプライマリキーとして利用
順序を指定しないハッシュインデックスを構築するためのキー
テーブルは、性能を確保するために分割(パーティショニング)される場合あり
00 FF
Id = 1
Name = Jim
Partition (1) = 7B
Id = 2
Name = Andy
Dept = Engg
Partition (2) = 48
Id = 3
Name = Kim
Dept = Ops
Partition (3) = CD
Key Space
41
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
パーティション はDynamoDB のデータを保存するストレージの割り当て
パーティショニングはパーティション(=格納場所)を分割すること
パーティショニングの効果
• 項目取得する際の読み取り量削減
• 並列処理を可能とし、データ増加に関わらず性能を維持
42
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Partition Table
55 A954 AA FF
Partition Key は単体でプライマリキーとして利用
順序を指定しないハッシュインデックスを構築するためのキー
テーブルは、性能を確保するために分割(パーティショニング)される場合あり
00 FF
Id = 1
Name = Jim
Partition (1) = 7B
Id = 2
Name = Andy
Dept = Engg
Partition (2) = 48
Id = 3
Name = Kim
Dept = Ops
Partition (3) = CD
Key Space
43
確認ポイント
• 単体でPrimaryKeyとする為には 項目が一意となることが必須
• 特定のPartition Key にアクセスが偏らないことも重要
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Partition-Sort Table
Partition + Sortでプライマリキーとすることもできる
同一のPartition Keyでのデータの並びを保証するためにSort Keyが使われる
Customer# = 2
Order# = 10
Item = Pen
Customer# = 2
Order# = 11
Item = Shoes
Customer# = 1
Order# = 10
Item = Toy
Customer# = 1
Order# = 11
Item = Boots
Customer# = 3
Order# = 10
Item = Book
Customer# = 3
Order# = 11
Item = Paper
Partition 1 Partition 2 Partition 3
44
確認ポイント
• 順序の保証が必要な場合にはSort Key を使用
• Partition Key で十分に項目を絞ることが可能
• Partition Key + Sort Key で項目が一意となる
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
A1
(PK)
A3
(Sort)
A2
(table key)
A1
(PK)
A2
(Sort)
A3 A4 A5
LSIs A1
(PK)
A4
(Sort)
A2
(table key)
A3
(projected)
Table
KEYS_ONLY
INCLUDE A3
A1
(PK)
A5
(Sort)
A2
(table key)
A3
(projected)
A4
(projected)
ALL
45
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
A1
(PK)
A2 A3 A4 A5
GSIs A5
(PK)
A4
(Sort)
A1
(table key)
A3
(projected)
Table
INCLUDE A3
A4
(PK)
A5
(Sort)
A1
(table key)
A2
(projected)
A3
(projected)
ALL
A2
(PK)
A1
(table key)
KEYS_ONLY
46
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. 47
UName Date Path Total
Count
Ohba 2018-10-25
09:00:23
./images/9618.jpg 0
Ohba 2018-10-26
15:12:30
./images/5151.jpg 0
Uehara 2018-10-25
09:00:23
./images/1904.jpg 0
Uehara 2018-10-25
10:11:11
./images/2032.jpg 10
Uehara 2018-10-26
12:55:25
./images/2448.jpg 2
Scan
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. 48
Path Date UName Total
Count
./images/9618.jpg 2018-10-25
09:00:23
Ohba 0
./images/5151.jpg 2018-10-26
15:12:30
Ohba 0
./images/1904.jpg 2018-10-25
09:00:23
Uehara 0
./images/2032.jpg 2018-10-25
10:11:11
Uehara 10
./images/2448.jpg 2018-10-26
12:55:25
Uehara 2
Path Partition Key
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. 49
RDB
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. 51
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. 52
[Best Picture]をクリックする
とTotalCount順に表示される
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
•
•
53
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. 54
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
•
•
56
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. 57
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. 58
•
•
•
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. 60
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
1.
2.
3. producer3.js
4.
61
asset
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. 62
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
SDK
DynamoDB
•
•
•
•
•
•
64
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. 65
© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
アンケートにご協力お願いします
• ご参加頂いたセッションやハン
ズオンのご意見、ご感想をお聞
かせください
• ご参加最終日に、アンケートの
終了画面をスタッフにご提示く
ださい。もれなくイベント記念
品を差し上げます
https://amzn.to/devday_q

More Related Content

はじめよう DynamoDB ハンズオン

  • 1. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. 2018.10.02 DynamoDB
  • 2. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. 対象者 • Amazon DynamoDB を初めて触るアプリケーション開発者 • AWSの知識は問いません ※ 上級者向けに Advanced Design Pattern セッション (11/1 16:20~ ) もございます ゴール • DynamoDBをマネジメントコンソールから操作できるようになる • DynamoDBをアプリケーション(SDK/CLI)から操作できるようになる • 要件から適切なキーとインデックスを設計できるようになる 2
  • 3. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. 1. はじめに i. 事前に準備すべきもの ii. 共有事項 2. NoSQLとは i. SQLとNoSQL比較 ii. NoSQLの種類 iii. AWSのNoSQLサービス 3. DynamoDB概要 i. 特徴 ii. ユースケース iii. ハンズオン1 4. データ操作方法 i. API ii. AWS SDKs and CLI iii. ハンズオン2 5. テーブル設計 i. Key ii. Index iii. ハンズオン3,4 6. まとめ i. 本日のまとめ ii. ハンズオンリソース削除 3
  • 4. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
  • 5. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. • • • 5
  • 6. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. • • • • 6
  • 7. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. 2.NoSQLとは
  • 8. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. NoSQL NoSQL 8 NoSQL • • • JSON •
  • 9. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. 9 • • • • • • NoSQLSQL URL https://aws.amazon.com/jp/nosql/
  • 10. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. JSON XML 10 DB
  • 11. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. https://aws.amazon.com/jp/dynamodbhttps://aws.amazon.com/jp/elastica che https://aws.amazon.com/jp/neptune 11 https://aws.amazon.com/jp/elasticsearch-service
  • 12. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. 3.Amazon DynamoDB 概要
  • 13. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. • • • 13
  • 14. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon が提供する高い信頼性、スケーラビリティ、低レイテンシ で安定した性能を兼ね備えた NoSQL データベースサービス ① 管理不要で信頼性が高い ② プロビジョンドスループット ③ ストレージの容量制限がない 参考資料: Amazon DynamoDB : https://aws.amazon.com/jp/dynamodb Amazon DynamoDB ドキュメント: https://aws.amazon.com/jp/documentation/dynamodb/ クラウドサービス活用資料集: https://aws.amazon.com/jp/aws-jp-introduction/ 14
  • 15. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. 15
  • 16. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. • • • • • 16
  • 17. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. 17
  • 18. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. KVS SDK 2 AD TECH • • • • • IoT • • Amazon Redshift Amazon QuickSight 18
  • 19. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. パーティションキー ソートキー name/value 型、JSON 型等 item間で不揃いな構成も可能 19 項目 (items) 属性 (attributes)テーブル
  • 20. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
  • 21. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. 22
  • 22. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. UName ( ) Date ( ) Path ( ) TotalCount ( ) Ohba 2018-10-25 09:00:23 ./images/9618.jpg 0 Ohba 2018-10-26 15:12:30 ./images/5151.jpg 0 Uehara 2018-10-25 09:00:23 ./images/1904.jpg 0 Uehara 2018-10-25 10:11:11 ./images/2032.jpg 10 Uehara 2018-10-26 12:55:25 ./images/2448.jpg 2 Partition Key Sort Key 23
  • 23. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. 24
  • 24. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. • • • 25 : Amazon DynamoDB : https://aws.amazon.com/jp/getting-started/tutorials/create-nosql-table/
  • 25. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. 26
  • 26. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
  • 27. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. API SDK Database ClientSideServiceSide Client application 28
  • 28. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. CreateTable DescribeTable ListTables UpdateTable DeleteTable PutItem BatchWriteItem GetItem BatchGetItem Query Scan UpdateItem 1 DeleteItem DynamoDB ListStreams DescribeStream GetShardIterator GetRecords 1 29
  • 29. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Java Python PHP .NET Ruby nodeJS iOS Android Javascript in the Browser AWS CLI 30
  • 30. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. • • • • • http://aws.amazon.com/jp/dynamodb/developer-resources/ 31
  • 31. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
  • 32. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. DynamoDB       33
  • 33. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. • IAM • demo1.html producer1.js • ListTables PutItem GetItem UpdateItem DeleteItem • • ListTables Query UpdateItem 34 : AWS SDK for JavaScript: https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/DynamoDB.html
  • 34. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. 35 AWS ( ) 全操作可能 IAM EC2 S3 IAM 管理者グルー プ 開発グループ 運用グループS3参照 だけ S3は すべて 操作可能 全操作 可能 • •
  • 35. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. 36
  • 36. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
  • 37. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. 38 1 1 Key-Value 1 RDBMS
  • 38. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. テーブル 項目 (items) 属性 (attributes) パーティションキー (必須) ソートキー (オプション) スキーマなし 1:Nモデルのリレーションシップ 豊富なQueryをサポート 同じパーティションキー内でソート キーバリュー型のアクセスを実現 パーティショニングに利用される ==, <, >, >=,<= “begins with” “between” sorted results counts 先頭/末尾 N件 ページ単位出力 パーティションキー + ソートキー(オプション) = プライマリキー name/value 型、JSON 型等 item間で不揃いであっても問題 ない 39
  • 39. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. 40
  • 40. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Partition Table 55 A954 AA FF Partition Key は単体でプライマリキーとして利用 順序を指定しないハッシュインデックスを構築するためのキー テーブルは、性能を確保するために分割(パーティショニング)される場合あり 00 FF Id = 1 Name = Jim Partition (1) = 7B Id = 2 Name = Andy Dept = Engg Partition (2) = 48 Id = 3 Name = Kim Dept = Ops Partition (3) = CD Key Space 41
  • 41. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. パーティション はDynamoDB のデータを保存するストレージの割り当て パーティショニングはパーティション(=格納場所)を分割すること パーティショニングの効果 • 項目取得する際の読み取り量削減 • 並列処理を可能とし、データ増加に関わらず性能を維持 42
  • 42. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Partition Table 55 A954 AA FF Partition Key は単体でプライマリキーとして利用 順序を指定しないハッシュインデックスを構築するためのキー テーブルは、性能を確保するために分割(パーティショニング)される場合あり 00 FF Id = 1 Name = Jim Partition (1) = 7B Id = 2 Name = Andy Dept = Engg Partition (2) = 48 Id = 3 Name = Kim Dept = Ops Partition (3) = CD Key Space 43 確認ポイント • 単体でPrimaryKeyとする為には 項目が一意となることが必須 • 特定のPartition Key にアクセスが偏らないことも重要
  • 43. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Partition-Sort Table Partition + Sortでプライマリキーとすることもできる 同一のPartition Keyでのデータの並びを保証するためにSort Keyが使われる Customer# = 2 Order# = 10 Item = Pen Customer# = 2 Order# = 11 Item = Shoes Customer# = 1 Order# = 10 Item = Toy Customer# = 1 Order# = 11 Item = Boots Customer# = 3 Order# = 10 Item = Book Customer# = 3 Order# = 11 Item = Paper Partition 1 Partition 2 Partition 3 44 確認ポイント • 順序の保証が必要な場合にはSort Key を使用 • Partition Key で十分に項目を絞ることが可能 • Partition Key + Sort Key で項目が一意となる
  • 44. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. A1 (PK) A3 (Sort) A2 (table key) A1 (PK) A2 (Sort) A3 A4 A5 LSIs A1 (PK) A4 (Sort) A2 (table key) A3 (projected) Table KEYS_ONLY INCLUDE A3 A1 (PK) A5 (Sort) A2 (table key) A3 (projected) A4 (projected) ALL 45
  • 45. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. A1 (PK) A2 A3 A4 A5 GSIs A5 (PK) A4 (Sort) A1 (table key) A3 (projected) Table INCLUDE A3 A4 (PK) A5 (Sort) A1 (table key) A2 (projected) A3 (projected) ALL A2 (PK) A1 (table key) KEYS_ONLY 46
  • 46. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. 47 UName Date Path Total Count Ohba 2018-10-25 09:00:23 ./images/9618.jpg 0 Ohba 2018-10-26 15:12:30 ./images/5151.jpg 0 Uehara 2018-10-25 09:00:23 ./images/1904.jpg 0 Uehara 2018-10-25 10:11:11 ./images/2032.jpg 10 Uehara 2018-10-26 12:55:25 ./images/2448.jpg 2 Scan
  • 47. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. 48 Path Date UName Total Count ./images/9618.jpg 2018-10-25 09:00:23 Ohba 0 ./images/5151.jpg 2018-10-26 15:12:30 Ohba 0 ./images/1904.jpg 2018-10-25 09:00:23 Uehara 0 ./images/2032.jpg 2018-10-25 10:11:11 Uehara 10 ./images/2448.jpg 2018-10-26 12:55:25 Uehara 2 Path Partition Key
  • 48. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. 49 RDB
  • 49. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
  • 50. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. 51
  • 51. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. 52 [Best Picture]をクリックする とTotalCount順に表示される
  • 52. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. • • 53
  • 53. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. 54
  • 54. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
  • 55. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. • • 56
  • 56. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. 57
  • 57. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. 58 • • •
  • 58. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
  • 59. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. 60
  • 60. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. 1. 2. 3. producer3.js 4. 61 asset
  • 61. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. 62
  • 62. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
  • 63. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. SDK DynamoDB • • • • • • 64
  • 64. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. 65
  • 65. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. アンケートにご協力お願いします • ご参加頂いたセッションやハン ズオンのご意見、ご感想をお聞 かせください • ご参加最終日に、アンケートの 終了画面をスタッフにご提示く ださい。もれなくイベント記念 品を差し上げます https://amzn.to/devday_q