Skip to main content
Download free for 30 days
Sign in
Upload
Language (EN)
Support
Business
Mobile
Social Media
Marketing
Technology
Art & Photos
Career
Design
Education
Presentations & Public Speaking
Government & Nonprofit
Healthcare
Internet
Law
Leadership & Management
Automotive
Engineering
Software
Recruiting & HR
Retail
Sales
Services
Science
Small Business & Entrepreneurship
Food
Environment
Economy & Finance
Data & Analytics
Investor Relations
Sports
Spiritual
News & Politics
Travel
Self Improvement
Real Estate
Entertainment & Humor
Health & Medicine
Devices & Hardware
Lifestyle
EN
Upload
Download free for 30 days
Sign in
Uploaded by
Amazon Web Services Japan
63,744 views
AWS Black Belt Online Seminar 2018 Amazon DynamoDB Advanced Design Pattern
AWS公式オンラインセミナー: https://amzn.to/JPWebinar 過去資料: https://amzn.to/JPArchive
Technology
◦
Read more
48
Save
Share
Embed
1
/ 73
2
/ 73
3
/ 73
4
/ 73
5
/ 73
6
/ 73
7
/ 73
8
/ 73
9
/ 73
10
/ 73
11
/ 73
12
/ 73
13
/ 73
14
/ 73
15
/ 73
16
/ 73
17
/ 73
18
/ 73
19
/ 73
20
/ 73
More Related Content
PDF
AWS Black Belt Online Seminar 2017 Amazon DynamoDB
by
Amazon Web Services Japan
147 slides
153.1K views
PDF
20200630 AWS Black Belt Online Seminar Amazon Cognito
by
Amazon Web Services Japan
81 slides
17.7K views
PDF
20180425 AWS Black Belt Online Seminar Amazon Relational Database Service (Am...
by
Amazon Web Services Japan
90 slides
60.7K views
PDF
20190220 AWS Black Belt Online Seminar Amazon S3 / Glacier
by
Amazon Web Services Japan
79 slides
44.3K views
PDF
AWS Black Belt Online Seminar AWS Key Management Service (KMS)
by
Amazon Web Services Japan
70 slides
39K views
PDF
20190514 AWS Black Belt Online Seminar Amazon API Gateway
by
Amazon Web Services Japan
74 slides
25.1K views
PDF
AWS Black Belt Online Seminar 2017 Amazon Kinesis
by
Amazon Web Services Japan
60 slides
189K views
PDF
[AWS EXpert Online for JAWS-UG 18] 見せてやるよ、Step Functions の本気ってやつをな
by
Amazon Web Services Japan
64 slides
7.2K views
AWS Black Belt Online Seminar 2017 Amazon DynamoDB
by
Amazon Web Services Japan
147 slides
153.1K views
20200630 AWS Black Belt Online Seminar Amazon Cognito
by
Amazon Web Services Japan
81 slides
17.7K views
20180425 AWS Black Belt Online Seminar Amazon Relational Database Service (Am...
by
Amazon Web Services Japan
90 slides
60.7K views
20190220 AWS Black Belt Online Seminar Amazon S3 / Glacier
by
Amazon Web Services Japan
79 slides
44.3K views
AWS Black Belt Online Seminar AWS Key Management Service (KMS)
by
Amazon Web Services Japan
70 slides
39K views
20190514 AWS Black Belt Online Seminar Amazon API Gateway
by
Amazon Web Services Japan
74 slides
25.1K views
AWS Black Belt Online Seminar 2017 Amazon Kinesis
by
Amazon Web Services Japan
60 slides
189K views
[AWS EXpert Online for JAWS-UG 18] 見せてやるよ、Step Functions の本気ってやつをな
by
Amazon Web Services Japan
64 slides
7.2K views
What's hot
PDF
20190424 AWS Black Belt Online Seminar Amazon Aurora MySQL
by
Amazon Web Services Japan
70 slides
31K views
PDF
20190828 AWS Black Belt Online Seminar Amazon Aurora with PostgreSQL Compatib...
by
Amazon Web Services Japan
66 slides
18.2K views
PDF
Kinesis + Elasticsearchでつくるさいきょうのログ分析基盤
by
Amazon Web Services Japan
42 slides
6.2K views
PDF
AWS Black Belt Online Seminar Amazon Aurora
by
Amazon Web Services Japan
72 slides
57.4K views
PDF
20191001 AWS Black Belt Online Seminar AWS Lake Formation
by
Amazon Web Services Japan
84 slides
55.8K views
PDF
[Aurora事例祭り]Amazon Aurora を使いこなすためのベストプラクティス
by
Amazon Web Services Japan
64 slides
59.3K views
PDF
AWS Black Belt Online Seminar 2016 AWS CloudFormation
by
Amazon Web Services Japan
90 slides
698K views
PDF
20190206 AWS Black Belt Online Seminar Amazon SageMaker Basic Session
by
Amazon Web Services Japan
71 slides
13.9K views
PDF
マルチテナント化で知っておきたいデータベースのこと
by
Amazon Web Services Japan
55 slides
15.7K views
PDF
AWSのログ管理ベストプラクティス
by
Akihiro Kuwano
57 slides
79.8K views
PDF
20191023 AWS Black Belt Online Seminar Amazon EMR
by
Amazon Web Services Japan
109 slides
9.1K views
PDF
3分でわかるAzureでのService Principal
by
Toru Makabe
14 slides
31.7K views
PDF
202205 AWS Black Belt Online Seminar Amazon VPC IP Address Manager (IPAM)
by
Amazon Web Services Japan
62 slides
8.8K views
PDF
20200826 AWS Black Belt Online Seminar AWS CloudFormation
by
Amazon Web Services Japan
105 slides
48.2K views
PDF
Infrastructure as Code (IaC) 談義 2022
by
Amazon Web Services Japan
21 slides
5K views
PDF
20190806 AWS Black Belt Online Seminar AWS Glue
by
Amazon Web Services Japan
93 slides
19.3K views
PDF
AWS Black Belt Online Seminar AWS Direct Connect
by
Amazon Web Services Japan
77 slides
273.2K views
PDF
20191016 AWS Black Belt Online Seminar Amazon Route 53 Resolver
by
Amazon Web Services Japan
59 slides
51.6K views
PDF
SQLアンチパターン 幻の第26章「とりあえず削除フラグ」
by
Takuto Wada
45 slides
174.7K views
PDF
20190326 AWS Black Belt Online Seminar Amazon CloudWatch
by
Amazon Web Services Japan
83 slides
139K views
20190424 AWS Black Belt Online Seminar Amazon Aurora MySQL
by
Amazon Web Services Japan
70 slides
31K views
20190828 AWS Black Belt Online Seminar Amazon Aurora with PostgreSQL Compatib...
by
Amazon Web Services Japan
66 slides
18.2K views
Kinesis + Elasticsearchでつくるさいきょうのログ分析基盤
by
Amazon Web Services Japan
42 slides
6.2K views
AWS Black Belt Online Seminar Amazon Aurora
by
Amazon Web Services Japan
72 slides
57.4K views
20191001 AWS Black Belt Online Seminar AWS Lake Formation
by
Amazon Web Services Japan
84 slides
55.8K views
[Aurora事例祭り]Amazon Aurora を使いこなすためのベストプラクティス
by
Amazon Web Services Japan
64 slides
59.3K views
AWS Black Belt Online Seminar 2016 AWS CloudFormation
by
Amazon Web Services Japan
90 slides
698K views
20190206 AWS Black Belt Online Seminar Amazon SageMaker Basic Session
by
Amazon Web Services Japan
71 slides
13.9K views
マルチテナント化で知っておきたいデータベースのこと
by
Amazon Web Services Japan
55 slides
15.7K views
AWSのログ管理ベストプラクティス
by
Akihiro Kuwano
57 slides
79.8K views
20191023 AWS Black Belt Online Seminar Amazon EMR
by
Amazon Web Services Japan
109 slides
9.1K views
3分でわかるAzureでのService Principal
by
Toru Makabe
14 slides
31.7K views
202205 AWS Black Belt Online Seminar Amazon VPC IP Address Manager (IPAM)
by
Amazon Web Services Japan
62 slides
8.8K views
20200826 AWS Black Belt Online Seminar AWS CloudFormation
by
Amazon Web Services Japan
105 slides
48.2K views
Infrastructure as Code (IaC) 談義 2022
by
Amazon Web Services Japan
21 slides
5K views
20190806 AWS Black Belt Online Seminar AWS Glue
by
Amazon Web Services Japan
93 slides
19.3K views
AWS Black Belt Online Seminar AWS Direct Connect
by
Amazon Web Services Japan
77 slides
273.2K views
20191016 AWS Black Belt Online Seminar Amazon Route 53 Resolver
by
Amazon Web Services Japan
59 slides
51.6K views
SQLアンチパターン 幻の第26章「とりあえず削除フラグ」
by
Takuto Wada
45 slides
174.7K views
20190326 AWS Black Belt Online Seminar Amazon CloudWatch
by
Amazon Web Services Japan
83 slides
139K views
Similar to AWS Black Belt Online Seminar 2018 Amazon DynamoDB Advanced Design Pattern
PDF
Deep Dive: Amazon DynamoDB (db tech showcase 2016)
by
Amazon Web Services Japan
61 slides
27.3K views
PDF
[db tech showcase Tokyo 2015] A33:Amazon DynamoDB Deep Dive by アマゾン データ サービス ...
by
Insight Technology, Inc.
82 slides
7.8K views
PDF
Lunch & Learn, AWS NoSQL Services
by
Insight Technology, Inc.
65 slides
469 views
PDF
[AWSマイスターシリーズ] Amazon DynamoDB
by
Amazon Web Services Japan
78 slides
17.4K views
PDF
Amazon dynamo db、cloudant、blockchainの紹介 20160706
by
Tsuyoshi Hirayama
58 slides
825 views
PPTX
DB Tech Showcase 大阪: Amazon DynamoDB Deep Dive
by
Kenta Yasukawa
58 slides
11.2K views
PDF
DynamoDBの初心者に伝えたい初めて触るときの勘所
by
Ryo Sasaki
55 slides
2K views
PDF
DynamoDB MyNA・JPUG合同DB勉強会 in 東京
by
Yuko Mori
57 slides
2.1K views
PDF
AWS Black Belt Online Seminar AWS 体験ハンズオン 〜 Amazon DynamoDB テーブル作成編 〜
by
Amazon Web Services Japan
92 slides
9.9K views
PDF
Amazon DynamoDB Advanced Design Pattern
by
Amazon Web Services Japan
58 slides
20.8K views
PPTX
GREE 流!AWS をお得に使う方法
by
gree_tech
73 slides
5.7K views
PPTX
Amazon DynamoDBの紹介と東急ハンズでの活用について
by
Taiji INOUE
30 slides
13.8K views
PDF
Amazon DynamoDB(初心者向け 超速マスター編)JAWSUG大阪
by
崇之 清水
44 slides
54.1K views
PDF
[よくわかるクラウドデータベース] CassandraからAmazon DynamoDBへの移行事例
by
Amazon Web Services Japan
47 slides
7.8K views
PDF
20120409 aws meister-reloaded-dynamo-db
by
Amazon Web Services Japan
83 slides
9.8K views
PDF
20210127 AWS Black Belt Online Seminar Amazon Redshift 運用管理
by
Amazon Web Services Japan
66 slides
16.6K views
PDF
Amazon Redshift パフォーマンスチューニングテクニックと最新アップデート
by
Amazon Web Services Japan
72 slides
14.4K views
PDF
Amazon DynamoDB 初心者が理解した事
by
Hirokazu Tokuno
63 slides
5.2K views
PPTX
Lv1から始めるWebサービスのインフラ構築
by
伊藤 祐策
112 slides
70.3K views
PDF
DBP-009_クラウドで実現するスケーラブルなデータ ウェアハウス Azure SQL Data Warehouse 解説
by
decode2016
60 slides
478 views
Deep Dive: Amazon DynamoDB (db tech showcase 2016)
by
Amazon Web Services Japan
61 slides
27.3K views
[db tech showcase Tokyo 2015] A33:Amazon DynamoDB Deep Dive by アマゾン データ サービス ...
by
Insight Technology, Inc.
82 slides
7.8K views
Lunch & Learn, AWS NoSQL Services
by
Insight Technology, Inc.
65 slides
469 views
[AWSマイスターシリーズ] Amazon DynamoDB
by
Amazon Web Services Japan
78 slides
17.4K views
Amazon dynamo db、cloudant、blockchainの紹介 20160706
by
Tsuyoshi Hirayama
58 slides
825 views
DB Tech Showcase 大阪: Amazon DynamoDB Deep Dive
by
Kenta Yasukawa
58 slides
11.2K views
DynamoDBの初心者に伝えたい初めて触るときの勘所
by
Ryo Sasaki
55 slides
2K views
DynamoDB MyNA・JPUG合同DB勉強会 in 東京
by
Yuko Mori
57 slides
2.1K views
AWS Black Belt Online Seminar AWS 体験ハンズオン 〜 Amazon DynamoDB テーブル作成編 〜
by
Amazon Web Services Japan
92 slides
9.9K views
Amazon DynamoDB Advanced Design Pattern
by
Amazon Web Services Japan
58 slides
20.8K views
GREE 流!AWS をお得に使う方法
by
gree_tech
73 slides
5.7K views
Amazon DynamoDBの紹介と東急ハンズでの活用について
by
Taiji INOUE
30 slides
13.8K views
Amazon DynamoDB(初心者向け 超速マスター編)JAWSUG大阪
by
崇之 清水
44 slides
54.1K views
[よくわかるクラウドデータベース] CassandraからAmazon DynamoDBへの移行事例
by
Amazon Web Services Japan
47 slides
7.8K views
20120409 aws meister-reloaded-dynamo-db
by
Amazon Web Services Japan
83 slides
9.8K views
20210127 AWS Black Belt Online Seminar Amazon Redshift 運用管理
by
Amazon Web Services Japan
66 slides
16.6K views
Amazon Redshift パフォーマンスチューニングテクニックと最新アップデート
by
Amazon Web Services Japan
72 slides
14.4K views
Amazon DynamoDB 初心者が理解した事
by
Hirokazu Tokuno
63 slides
5.2K views
Lv1から始めるWebサービスのインフラ構築
by
伊藤 祐策
112 slides
70.3K views
DBP-009_クラウドで実現するスケーラブルなデータ ウェアハウス Azure SQL Data Warehouse 解説
by
decode2016
60 slides
478 views
More from Amazon Web Services Japan
PDF
202205 AWS Black Belt Online Seminar Amazon FSx for OpenZFS
by
Amazon Web Services Japan
85 slides
1.3K views
PDF
202204 AWS Black Belt Online Seminar AWS IoT Device Defender
by
Amazon Web Services Japan
56 slides
940 views
PDF
202204 AWS Black Belt Online Seminar Amazon Connect を活用したオンコール対応の実現
by
Amazon Web Services Japan
36 slides
719 views
PDF
202204 AWS Black Belt Online Seminar Amazon Connect Salesforce連携(第1回 CTI Adap...
by
Amazon Web Services Japan
36 slides
585 views
PDF
Amazon Game Tech Night #25 ゲーム業界向け機械学習最新状況アップデート
by
Amazon Web Services Japan
52 slides
2.6K views
PPTX
20220409 AWS BLEA 開発にあたって検討したこと
by
Amazon Web Services Japan
28 slides
4.5K views
PDF
202202 AWS Black Belt Online Seminar AWS Managed Rules for AWS WAF の活用
by
Amazon Web Services Japan
42 slides
750 views
PDF
202203 AWS Black Belt Online Seminar Amazon Connect Tasks.pdf
by
Amazon Web Services Japan
35 slides
452 views
PDF
SaaS テナント毎のコストを把握するための「AWS Application Cost Profiler」のご紹介
by
Amazon Web Services Japan
36 slides
4.5K views
PDF
Amazon QuickSight の組み込み方法をちょっぴりDD
by
Amazon Web Services Japan
25 slides
469 views
PDF
機密データとSaaSは共存しうるのか!?セキュリティー重視のユーザー層を取り込む為のネットワーク通信のアプローチ
by
Amazon Web Services Japan
56 slides
1.2K views
PDF
パッケージソフトウェアを簡単にSaaS化!?既存の資産を使ったSaaS化手法のご紹介
by
Amazon Web Services Japan
33 slides
1.1K views
PDF
202202 AWS Black Belt Online Seminar Amazon Connect Customer Profiles
by
Amazon Web Services Japan
36 slides
312 views
PDF
Amazon Game Tech Night #24 KPIダッシュボードを最速で用意するために
by
Amazon Web Services Japan
37 slides
2.2K views
PDF
202202 AWS Black Belt Online Seminar AWS SaaS Boost で始めるSaaS開発⼊⾨
by
Amazon Web Services Japan
56 slides
321 views
PPTX
[20220126] JAWS-UG 2022初頭までに葬ったAWSアンチパターン大紹介
by
Amazon Web Services Japan
69 slides
5.7K views
PDF
202111 AWS Black Belt Online Seminar AWSで構築するSmart Mirrorのご紹介
by
Amazon Web Services Japan
36 slides
101 views
PDF
202201 AWS Black Belt Online Seminar Apache Spark Performnace Tuning for AWS ...
by
Amazon Web Services Japan
108 slides
4.6K views
PDF
202112 AWS Black Belt Online Seminar 店内の「今」をお届けする小売業向けリアルタイム配信基盤のレシピ
by
Amazon Web Services Japan
31 slides
437 views
PDF
20211209 Ops-JAWS Re invent2021re-cap-cloud operations
by
Amazon Web Services Japan
48 slides
3.6K views
202205 AWS Black Belt Online Seminar Amazon FSx for OpenZFS
by
Amazon Web Services Japan
85 slides
1.3K views
202204 AWS Black Belt Online Seminar AWS IoT Device Defender
by
Amazon Web Services Japan
56 slides
940 views
202204 AWS Black Belt Online Seminar Amazon Connect を活用したオンコール対応の実現
by
Amazon Web Services Japan
36 slides
719 views
202204 AWS Black Belt Online Seminar Amazon Connect Salesforce連携(第1回 CTI Adap...
by
Amazon Web Services Japan
36 slides
585 views
Amazon Game Tech Night #25 ゲーム業界向け機械学習最新状況アップデート
by
Amazon Web Services Japan
52 slides
2.6K views
20220409 AWS BLEA 開発にあたって検討したこと
by
Amazon Web Services Japan
28 slides
4.5K views
202202 AWS Black Belt Online Seminar AWS Managed Rules for AWS WAF の活用
by
Amazon Web Services Japan
42 slides
750 views
202203 AWS Black Belt Online Seminar Amazon Connect Tasks.pdf
by
Amazon Web Services Japan
35 slides
452 views
SaaS テナント毎のコストを把握するための「AWS Application Cost Profiler」のご紹介
by
Amazon Web Services Japan
36 slides
4.5K views
Amazon QuickSight の組み込み方法をちょっぴりDD
by
Amazon Web Services Japan
25 slides
469 views
機密データとSaaSは共存しうるのか!?セキュリティー重視のユーザー層を取り込む為のネットワーク通信のアプローチ
by
Amazon Web Services Japan
56 slides
1.2K views
パッケージソフトウェアを簡単にSaaS化!?既存の資産を使ったSaaS化手法のご紹介
by
Amazon Web Services Japan
33 slides
1.1K views
202202 AWS Black Belt Online Seminar Amazon Connect Customer Profiles
by
Amazon Web Services Japan
36 slides
312 views
Amazon Game Tech Night #24 KPIダッシュボードを最速で用意するために
by
Amazon Web Services Japan
37 slides
2.2K views
202202 AWS Black Belt Online Seminar AWS SaaS Boost で始めるSaaS開発⼊⾨
by
Amazon Web Services Japan
56 slides
321 views
[20220126] JAWS-UG 2022初頭までに葬ったAWSアンチパターン大紹介
by
Amazon Web Services Japan
69 slides
5.7K views
202111 AWS Black Belt Online Seminar AWSで構築するSmart Mirrorのご紹介
by
Amazon Web Services Japan
36 slides
101 views
202201 AWS Black Belt Online Seminar Apache Spark Performnace Tuning for AWS ...
by
Amazon Web Services Japan
108 slides
4.6K views
202112 AWS Black Belt Online Seminar 店内の「今」をお届けする小売業向けリアルタイム配信基盤のレシピ
by
Amazon Web Services Japan
31 slides
437 views
20211209 Ops-JAWS Re invent2021re-cap-cloud operations
by
Amazon Web Services Japan
48 slides
3.6K views
AWS Black Belt Online Seminar 2018 Amazon DynamoDB Advanced Design Pattern
1.
© 2018, Amazon
Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential and Trademark© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential and Trademark AWS 公式 Webinar https://amzn.to/JPWebinar 過去資料 https://amzn.to/JPArchive Solutions Architect 成田 俊 2018/12/25 Amazon DynamoDB Advanced Design Pattern
2.
© 2018, Amazon
Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential and Trademark AWS Black Belt Online Seminar とは 「サービス別」「ソリューション別」「業種別」のそれぞれのテーマに分かれて、アマ ゾン ウェブ サービス ジャパン株式会社が主催するオンラインセミナーシリーズです。 質問を投げることができます! • 書き込んだ質問は、主催者にしか見えません • 今後のロードマップに関するご質問は お答えできませんのでご了承下さい ① 吹き出しをクリック ② 質問を入力 ③ Sendをクリック Twitter ハッシュタグは以下をご利用ください #awsblackbelt
3.
© 2018, Amazon
Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential and Trademark 内容についての注意点 • 本資料では2018年12月25日時点のサービス内容および価格についてご説明しています。最新の 情報はAWS公式ウェブサイト(http://aws.amazon.com)にてご確認ください。 • 資料作成には十分注意しておりますが、資料内の価格とAWS公式ウェブサイト記載の価格に相 違があった場合、AWS公式ウェブサイトの価格を優先とさせていただきます。 • 価格は税抜表記となっています。日本居住者のお客様が東京リージョンを使用する場合、別途消 費税をご請求させていただきます。 • AWS does not offer binding price quotes. AWS pricing is publicly available and is subject to change in accordance with the AWS Customer Agreement available at http://aws.amazon.com/agreement/. Any pricing information included in this document is provided only as an estimate of usage charges for AWS services based on certain information that you have provided. Monthly charges will be based on your actual use of AWS services, and may vary from the estimates provided.
4.
© 2018, Amazon
Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential and Trademark 本日のアジェンダ • はじめに • 直近のUpdate • NoSQL データモデリング • DynamoDB を活用したデザインパターン
5.
© 2018, Amazon
Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential and Trademark 本日のアジェンダ • 想定する参加者 • Amazon DynamoDB を既に利用している • Amazon DynamoDB の基本的な用語や機能を知っている • 例)パーティション、GSI, LSI など • お話しする内容 • Amazon DynamoDB のテーブル設計のポイント • ユースケースに応じて、Amazon DynamoDB を どのように利用するかの例
6.
© 2018, Amazon
Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential and Trademark はじめに
7.
© 2018, Amazon
Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential and Trademark Amazon DynamoDBの生い立ち Amazon.comではかつて全アクセスパターンをRDBMSで 処理 RDBMSのスケールの限界を超えるため開発された Dynamoが祖先 • 結果整合性モデル採用に よる可用性向上 • HWを追加する毎に性能 が向上するスケーラビリ ティ • シンプルなクエリモデル による予測可能な性能
8.
© 2018, Amazon
Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential and Trademark Amazon DynamoDB ドキュメント型 or KVS 高いスケーラビリティ完全マネージド型 NoSQL データベースサービス アクセスコントロール イベントドリブン プログラミング 高速かつ一貫した パフォーマンス
9.
© 2018, Amazon
Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential and Trademark 管理不要で高い信頼性 • SPOFの存在しない構成 • データは3箇所のAZに保存されるので信頼性が高い • ストレージは必要に応じて自動的にパーティショニング クライアント
10.
© 2018, Amazon
Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential and Trademark テーブル設計 基礎知識 table items attributes Partation Key Sort Key 必須 キーバリュー型のアクセスパ ターン データ分散に利用される オプション 1:Nモデルのリレーションシップ 豊富なQueryをサポート デフォルトの並べ替え順序は昇順 キー検索用 ==, <, >, >=, <= “begins with” “between” sorted results counts 先頭/末尾 N件 ページ単位出力 name/value 型、JSON 型等 アイテム間で不揃いであっ ても問題ない
11.
© 2018, Amazon
Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential and Trademark Local Secondary Index (LSI) • Sort key以外に絞り込み検索を行うkeyを持つことができる • Partition keyが同一で、他のアイテムからの検索のために利用 • すべての要素(テーブルとインデックス)の合計サイズを、各Partation キーごとに 10 GB に制限 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
12.
© 2018, Amazon
Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential and Trademark Global Secondary Index (GSI) Partition Key属性の代わりとなる Partition Keyをまたいで検索を行うためのインデックス 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
13.
© 2018, Amazon
Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential and Trademark Update
14.
© 2018, Amazon
Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential and Trademark DynamoDB Advancements over the last 21 months VPC endpoints April 2017 Auto scaling June 2017 DynamoDB Accelerator (DAX) April 2017 Time To Live (TTL) February 2017 Global tables On-demand backup Encryption at rest November 2017 November 2017 November 2017 Point-in-time recovery March 2018 SLA June 2018 99.999% SLA August 2018 Adaptive capacity ACID November 2018 Transactions November 2018 On-demand
15.
© 2018, Amazon
Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential and Trademark DynamoDB on-demand DynamoDBで今までcapacity unitをprovisionして 利用する必要があったがpay-per-requestモデルで の利用が可能に これにより事前のキャパシティユニット設計などが 不要 既存テーブルでもどちらを利用するか選択可能 料金例としてVirginia Regionの場合 Write request : 100万回につき$1.25 Read request : 100万回につき$0.25 利用した分のストレージ課金は従来どおり 全ての商用リージョンで利用可能
16.
© 2018, Amazon
Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential and Trademark DynamoDB Transations DynamoDBで複数Item、複数tableに対する書き込み操作 や読み込み操作でACIDトランザクションが可能に トランザクション分離レベルはserializableでロックは取 らない トランザクションの進行中にアイテムがトランザクション 外で変更された場合、トランザクションはキャンセルされ、 例外を発生させたItemまたはItemに関する詳細がスロー される GlobalTableではデフォルト無効、有効にした場合もトラ ンザクションはリージョン単位 トランザクションを有効にすることに追加料金は無し 全ての商用リージョンで利用可能
17.
© 2018, Amazon
Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential and Trademark Amazon DynamoDB key diagnostics library 既存のDynamoDB Clientをラップする形で簡 単に利用できるライブラリ(Javaのみ) アクセスパターンの統計情報ログが手軽に kinesisに出力可能 非同期でkinesisに出力なのでパフォーマンス 影響は無し 各種解析サービスとの組み合わせでHotkeyな どの発見がより容易に https://aws.amazon.com/jp/blogs/database/how-to- use-the-new-amazon-dynamodb-key-diagnostics- library-to-visualize-and-understand-your-applications- traffic-patterns/
18.
© 2018, Amazon
Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential and Trademark Global Secondary Indexes の作成数引き上げ 今までTable辺り最大5個までだったGSIが初 期20個までに引き上げ 更に必要な場合は上限緩和申請を GSIへ射影出来る属性が100まで可能に
19.
© 2018, Amazon
Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential and Trademark NoSQL Data Modeling
20.
© 2018, Amazon
Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential and Trademark SQL vs. NoSQL design pattern 商品 アルバム トラック
21.
© 2018, Amazon
Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential and Trademark 1:1 リレーション or キー・バリュー型 • Partition keyを使ったテーブルまたはGSI • GetItem かBatchGetItem APIを使用 • 例: UserIDやEmailから要素を抽出する場合 Users Table Partition key Attributes UserId = bob Email = bob@gmail.com, JoinDate = 2011-11-15 UserId = fred Email = fred@yahoo.com, JoinDate = 2011-12-01 Users-email-GSI Partition key Attributes Email = bob@gmail.com UserId = bob, JoinDate = 2011-11-15 Email = fred@yahoo.com UserId = fred, JoinDate = 2011-12-01
22.
© 2018, Amazon
Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential and Trademark 1:N リレーション or 親子関係 • Partition key とSort key を使ったテーブル、GSI • Query APIを使ってアクセス • 例:1ユーザでN個のゲームをプレイしている場合 User-Games Partition Key Sort key Attributes UserId = bob GameId = Game1 HighScore = 10500, ScoreDate = 2011-10-20 UserId = fred GameId = Game2 HIghScore = 12000, ScoreDate = 2012-01-10 UserId = bob GameId = Game3 HighScore = 20000, ScoreDate = 2012-02-12
23.
© 2018, Amazon
Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential and Trademark N:M リレーション • table と GSI を使用してPartition key とSort key の要素を スイッチして設計 • Query API を用いてアクセス • 例: 1ユーザが複数のゲームをプレイし,1ゲームで複数のプレイヤーがゲー ムをしている場合 User-Games-Table Partition Key Sort key UserId = bob GameId = Game1 UserId = fred GameId = Game2 UserId = bob GameId = Game3 Game-Users-GSI Partition Key Sort key GameId = Game1 UserId = bob GameId = Game2 UserId = fred GameId = Game3 UserId = bob
24.
© 2018, Amazon
Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential and Trademark Targeting queries Query filters, composite keys, and sparse indexes
25.
© 2018, Amazon
Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential and Trademark Secondary index Opponent Date GameId Status Host Alice 2014-10-02 d9bl3 DONE David Carol 2014-10-08 o2pnb IN_PROGRESS Bob Bob 2014-09-30 72f49 PENDING Alice Bob 2014-10-03 b932s PENDING Carol Bob 2014-10-03 ef9ca IN_PROGRESS David BobPartition key Sort key 複数の値を条件にしたソート・絞り込み
26.
© 2018, Amazon
Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential and Trademark Secondary Index Approach 1: Query filter(Filter条件の利用) Bob Opponent Date GameId Status Host Alice 2014-10- 02 d9bl3 DONE Davi d Carol 2014-10- 08 o2pnb IN_PROGRESS Bob Bob 2014-09- 30 72f49 PENDING Alice Bob 2014-10- 03 b932s PENDING Carol Bob 2014-10- 03 ef9ca IN_PROGRESS Davi d SELECT * FROM Game WHERE Opponent='Bob' ORDER BY Date DESC FILTER ON Status='PENDING' (filtered out) アクセスイメージ
27.
© 2018, Amazon
Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential and Trademark Approach 2: Composite key(キーの結合) StatusDate DONE_2014-10-02 IN_PROGRESS_2014-10-08 IN_PROGRESS_2014-10-03 PENDING_2014-09-30 PENDING_2014-10-03 Status DONE IN_PROGRESS IN_PROGRESS PENDING PENDING Date 2014-10- 02 2014-10- 08 2014-10- 03 2014-10- 03 2014-09- 30 + =
28.
© 2018, Amazon
Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential and Trademark Secondary Index Approach 2: Composite key(キーの結合) Opponent StatusDate GameId Host Alice DONE_2014-10-02 d9bl3 David Carol IN_PROGRESS_2014-10-08 o2pnb Bob Bob IN_PROGRESS_2014-10-03 ef9ca David Bob PENDING_2014-09-30 72f49 Alice Bob PENDING_2014-10-03 b932s Carol Partition key Sort key
29.
© 2018, Amazon
Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential and Trademark Opponent StatusDate GameId Host Alice DONE_2014-10-02 d9bl3 David Carol IN_PROGRESS_2014-10-08 o2pnb Bob Bob IN_PROGRESS_2014-10-03 ef9ca David Bob PENDING_2014-09-30 72f49 Alice Bob PENDING_2014-10-03 b932s Carol Secondary index Approach 2: Composite key(キーの結合) Bob SELECT * FROM Game WHERE Opponent='Bob' AND StatusDate BEGINS_WITH 'PENDING'
30.
© 2018, Amazon
Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential and Trademark Sparse indexes Id (Partition) User Game Score Date Award 1 Bob G1 1300 2012-12-23 2 Bob G1 1450 2012-12-23 3 Jay G1 1600 2012-12-24 4 Mary G1 2000 2012-10-24 Champ 5 Ryan G2 123 2012-03-10 6 Jones G2 345 2012-03-20 Game-scores-table Award (Partition) Id User Score Champ 4 Mary 2000 Award-GSI Scan sparse GSIs テーブル全体を Scan する場合に比べて 少ないコストで Scan, Query が可能
31.
© 2018, Amazon
Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential and Trademark フィルターの代わりにインデックスを活用 • Attribute の結合(Composite Key)により、 より効果的なセカンダリインデックスキーを実現 • Sparse indexes によりクエリコストを削減 クエリを最適化したい場面で効果的 Status + Date
32.
© 2018, Amazon
Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential and Trademark GSI Overloading Holding many different types of data Beyond GSI limitation
33.
© 2018, Amazon
Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential and Trademark GSI OVERLOADING(GSI の多重定義) • GSI の制限:テーブルあたりデフォルト最大20まで • DynamoDB テーブルでは異なるデータを1つの item で保持可能 • 一つのGSIで複数の用途で利用できる様に定義(Overload) • Overloadするattributeの値はitemのcontextが分かる値にする 例: 従業員テーブルにたいして以下の情報を元にクエリしたい場合 (1) 従業員名 (2)デスク(3) 採用日(4) 四半期ごとの売上高 (5) ジョブロール/役職 (6) 住所 (7)ロケーションion (8) 従業員ID などなど
34.
© 2018, Amazon
Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential and Trademark RDBMSの場合 勤務地 大阪Rows Primary Key Index 東京 北海道 社員ID 名前 1 2 3 桑野 江川 西谷 職種 Solutions Architect Solutions Architect Solutions Architect Columns もし勤務地、職種などで 検索したければその時必 要なIndexを作成する
35.
© 2018, Amazon
Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential and Trademark GSI OVERLOADINGの例 Data 東京 AttributePartition Key Sort Key 桑野 Solutions Architect 社員ID ColA 1 1 1 名前 勤務地 職種
36.
© 2018, Amazon
Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential and Trademark GSI OVERLOADINGの例 Data 東京 AttributePartition Key Sort Key 桑野 Solutions Architect 社員ID ColA 1 1 1 名前 勤務地 職種 Data 東京 桑野 Solutions Architect ColA 名前 勤務地 職種 Partition KeySort Key 社員 ID 1 1 1 GSI GSIを作成しColAの値 と、Dataの組で検索す ることで一つのGSIで複 数の条件を検索できる
37.
© 2018, Amazon
Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential and Trademark GSI OVERLOADING(GSI の多重定義) • GSI のテーブルあたりの作成数に関する制限やGSIが検 索要件に応じて増えてしまう事を回避 • テーブル構成としては複雑になる点に注意 RDBMS で実現する場合に比べて、DynamoDB で得たいメリット を整理 多数の異なるデータをもとにクエリをかけたい場面で効果的
38.
© 2018, Amazon
Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential and Trademark Vertical Pertitioning (メッセージアプリ) Large Items Filters vs Indexes M:N modeling – Inbox & Sent Items
39.
© 2018, Amazon
Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential and Trademark Messages Table Messages App David SELECT * FROM Messages WHERE Recipient='David' LIMIT 50 ORDER BY Date DESC Inbox SELECT * FROM Messages WHERE Sender ='David' LIMIT 50 ORDER BY Date DESC Outbox メッセージアプリケーション
40.
© 2018, Amazon
Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential and Trademark Recipient Date Sender Message David 2014-10-02 Bob … … 48 more messages for David … David 2014-10-03 Alice … Alice 2014-09-28 Bob … Alice 2014-10-01 Carol … 大小のデータが混在 (Many more messages) David Messages Table 50 items × 平均 256 KB 大きなメッセージボディーを 格納 SELECT * FROM Messages WHERE Recipient='David' LIMIT 50 ORDER BY Date DESC Inbox
41.
© 2018, Amazon
Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential and Trademark クエリーコストの計算 1回の問い合わせによって 取得されるアイテム数 平均アイテムサイズ 4KB毎に1RCU 消費 結果整合性のある読み込み
42.
© 2018, Amazon
Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential and Trademark Recipient Date Sender Subject MsgId David 2014-10-02 Bob Hi!… afed David 2014-10-03 Alice RE: The… 3kf8 Alice 2014-09-28 Bob FW: Ok… 9d2b Alice 2014-10-01 Carol Hi!... ct7r 大きいデータを分けて配置 Inbox-GSI Messages Table MsgId Body 9d2b … 3kf8 … ct7r … afed … David 1. Query Inbox-GSI: 1 RCU 2. BatchGetItem Messages: 1600 RCU (50 separate items at 256 KB) (50 sequential items at 128 bytes) 均等に大きいアイテムを読むように配置 (Recipientをindex, Message メタデータを格納)
43.
© 2018, Amazon
Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential and Trademark Messaging app Messages Table David Inbox Global secondary index Inbox Outbox Global secondary index Outbox update
44.
© 2018, Amazon
Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential and Trademark 大きい Item の分割 • 1:Nを表す Item サイズの削減 • secondary index の設定 • GSI により M:N リレーションの構築 サイズが大きい Item を一度に多数クエリする際に効果的 ProcessedReportsPending
45.
© 2018, Amazon
Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential and Trademark Design patterns and best practices
46.
© 2018, Amazon
Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential and Trademark DynamoDB Triggers DynamoDB + AWS Lambda= DynamoDB Triggers ● AWS Lambdaとは - OS、キャパシティ等インフラの管理不要 - S3、Kinesis、SNS等での イベント発生を元にユーザが 用意したコードを実行 - ユーザアプリからの 同期/非同期呼び出し
47.
© 2018, Amazon
Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential and Trademark DynamoDB Triggers ユースケース • DynamoDBへの書き込みに応じて値チェックをしつつ別テーブル の更新やプッシュ通知を実行 • DynamoDBの更新状況の監査ログをS3に保存 • ゲームデータなどのランキング集計を非同期に実施 AWS Lambda Amazon DynamoDB Table and Streams プッシュ通知 別テーブルを 更新 監査ログを 保存
48.
© 2018, Amazon
Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential and Trademark TTL(Time To Live) 特徴 • Itemの有効期限が切れ、データ ベースから自動削除されるタイミ ングを定義可能 • プロビジョニングスループットを 使用することなく、関連性のない データのストレージ使用量と保存 コストを削減可能 • 追加料金なし • 既存・新規のテーブルに設定可能 • DynamoDB Streamsとの併用可 能 注意点 • 期限切れ後、即削除されるわけではない 48時間以内に削除 読み取り時に期限切れのものを取得し ないようにするにはQuery or アプリ側でのフィルタが必要 詳細:https://docs.aws.amazon.com/ja_jp/amazondynamodb/latest/developerguide/TTL.html
49.
© 2018, Amazon
Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential and Trademark Time-based workflows (チケットシステム) Processing the entire table efficiently
50.
© 2018, Amazon
Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential and Trademark 時系列データが必要なアプリケーション • ホットデータとコールドデータでテーブルを分ける • DynamoDB StreamsとGSIを活用し、非同期でホットデータをコールド データへと移動する • ホットデータではWCU、RCUを高く設定、コールドデータでは 書き込み、読み込みは最低限必要な分のみに限定する • コスト最適化
51.
© 2018, Amazon
Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential and Trademark 時系列データが必要なアプリケーション Active Tickets_Table(現在処理する必要があるチケット) Event_id (Partition) Timestamp GSIKey Rand(0-N) … Attribute N Expired Tickets GSI GSIKey (Partition) Timestamp (Sort) Archive Table(処理/解決済みのアーカイブされたチケット) Event_id (Partition) Timestamp (Sort) Attribute1 …. Attribute N RCUs = 10000 WCUs = 10000 RCUs = 100 WCUs = 1 Current table コールドデータ 期限切れのデータをTTLを使用してアーカイブ AWS Lambda DynamoDB Streams ホットデータ
52.
© 2018, Amazon
Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential and Trademark AWS Lambda を活用してテーブルを効率良く整理 • ホットデータとコールドデータでテーブルを分ける • テーブル全体に効率的にクエリをかけるために GSI を使用 • Lambda “ストアドプロシージャ”を作成し、Item を遷移 • TTL/DynamoDB Streams/Lambda を利用してテーブル間で データを移行 全て/多くのItem を効率良くクエリしなければいけない場合に効果的
53.
© 2018, Amazon
Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential and Trademark Product catalog Popular items (read) アクセスが集中する特定の Item に対する Read
54.
© 2018, Amazon
Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential and Trademark Partition 1 2000 RCUs Partition K 2000 RCUs Partition M 2000 RCUs Partition 50 2000 RCU 特定のパーティションに対して集中した読み込み 商品 A 商品 B Shoppers 商品カタログテーブル SELECT Id, Description, ... FROM ProductCatalog WHERE Id="POPULAR_PRODUCT"
55.
© 2018, Amazon
Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential and Trademark 特定のパーティションに対して集中した読み込み https://aws.amazon.com/jp/blogs/database/how-to-use-the-new-amazon-dynamodb-key-diagnostics- library-to-visualize-and-understand-your-applications-traffic-patterns/ How to use the new Amazon DynamoDB key diagnostics library to visualize and understand your application’s traffic patterns
56.
© 2018, Amazon
Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential and Trademark • フルマネージドかつ高可用性: リージョン内でマルチAZ構成かつ キャッシュ情報のレプリケーション、障害時のフェイルオーバーな どをフルマネージドで実現 • DynamoDB API互換: 現在のSDKと互換性を保っているので コードの大部分は書き直す必要が無い • Write-through: ライトスルーでキャッシュを保持 • Flexible: 様々なDynamoDBのテーブル状況に対応 • Scalable: 最大10ノードまでのスケールアウトに対応 • Manageability: Amazon CloudWatch, Tagging for DynamoDB, AWS Consoleなどとの連携も完備 • Security: Amazon VPC, AWS IAM, AWS CloudTrail, AWS Organizationsに対応 特徴 DynamoDB Accelerator (DAX)によるキャッシング DynamoDB Your Applications DynamoDB Accelerator
57.
© 2018, Amazon
Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential and Trademark Write sharding Handling high velocity writes
58.
© 2018, Amazon
Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential and Trademark Partition 1 1000 WCUs Partition K 1000 WCUs Partition M 1000 WCUs Partition N 1000 WCUs 投票テーブル Candidate (候補者) A Candidate B 特定のパーティションに対して集中した書き込み 投票者 Provision 200,000 WCUs
59.
© 2018, Amazon
Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential and Trademark キュー、ストリームによる負荷調整 Workers Dashboard • 送信される投票内容を 一旦、SQSやkinesis で受ける • SQSなどからメッセージを取 得してDynamoDB へ書き込 みを実施する Worker を必要 に応じてスケールさせ、 キュー内のメッセージを処理 • 瞬間的な特定キーへの偏りを 回避 Amazon Kinesis Amazon SQS
60.
© 2018, Amazon
Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential and Trademark 書き込みのシャーディング Candidate A_2 Candidate B_1 Candidate B_2 Candidate B_3 Candidate B_5 Candidate B_4 Candidate B_7 Candidate B_6 Candidate A_1 Candidate A_3 Candidate A_4 Candidate A_7 Candidate B_8 Candidate A_6 Candidate A_8 Candidate A_5 投票者 投票テーブル
61.
© 2018, Amazon
Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential and Trademark 書き込みのシャーディング Candidate A_2 Candidate B_1 Candidate B_2 Candidate B_3 Candidate B_5 Candidate B_4 Candidate B_7 Candidate B_6 Candidate A_1 Candidate A_3 Candidate A_4 Candidate A_7 Candidate B_8 Insert: “CandidateA_” + rand(0, 10) Candidate A_6 Candidate A_8 Candidate A_5 投票者 投票テーブル
62.
© 2018, Amazon
Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential and Trademark 投票テーブル 結果のマージ/集計 Candidate A_2 Candidate B_1 Candidate B_2 Candidate B_3 Candidate B_5 Candidate B_4 Candidate B_7 Candidate B_6 Candidate A_1 Candidate A_3 Candidate A_4 Candidate A_5 Candidate A_6 Candidate A_8 Candidate A_7 Candidate B_8 Periodic process Candidate A Total: 2.5M 1. Sum 2. Store 投票者
63.
© 2018, Amazon
Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential and Trademark 書き込みが偏るパーティションキーをシャーディング • 同時アクセス数に応じてスループットを調整(増加) • キー、Itemサイズ、リクエストレートごとのRCU/WCU を考慮 水平方向(均等)に書き込みワークロードがスケールできない場合に効果的
64.
© 2018, Amazon
Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential and Trademark A Real World Example “Reality is that which, when you stop believing in it, does not go away.” - Philip K. Dick
65.
© 2018, Amazon
Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential and Trademark Audible eBook Sync Service • ユーザーがAudible eBooksの セッション情報を保存出来る • eBook及びaudio productの ユーザー毎にマッピング • スパイクする負荷に対応するた め多くのキャパシティが重要 • 多数のアクセスパターン対応 © 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
66.
© 2018, Amazon
Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential and Trademark Access Patterns # USE CASE 1 CompanionMapping getCompanionMappingsByAsin 2 CompanionMapping getCompanionMappingsByEbookAndAudiobookContentId 3 CompanionMapping getCompanionMappingsFromCache 4 CompanionMapping getCompanionMappings 5 CompanionMapping getCompanionMappingsAvailable 6 AcrInfo getACRInfo 7 AcrInfo getACRs 8 AcrInfo getACRInfos 9 AcrInfo getACRInfosbySKU 10 AudioProduct getAudioProductsForACRs 11 AudioProduct getAudioProducts 12 AudioProduct deleteAudioProductsMatchingSkuVersions 13 AudioProduct getChildAudioProductsForSKU 14 Product getProductInfoByAsins 15 Product getParentChildDataByParentAsins 16 AudioFile getAudioFilesForACR 17 AudioFile getAudioFilesForChildACR 18 AudioFile getAudioFilesByParentAsinVersionFormat 19 AudioFile getAudioFiles 20 AudioFile getAudioFilesForChildAsin
67.
© 2018, Amazon
Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential and Trademark Primary Table T A B L E Primary Key Attributes PK SK (GSI 3) ABOOKACR1 v0#ABOOKACR1 GSI-1 GSI-2 ABOOK-ASIN1 ABOOK-SKU1 EBOOKACR1 GSI-1 GSI-2 SyncFileAcr ABOOK-ASIN1 ABOOKACR1#TRACK#1 GSI-1 GSI-2 ABOOK-ASIN1 ABOOK-SKU1 ABOOKACR1#TRACK#2 GSI-1 GSI-2 ABOOK-ASIN1 ABOOK-SKU1 EBOOKACR1 EBOOKACR1 GSI-1 EBookAsin EBOOK-SKU1 ASIN ※ASINは「Amazon Standard Identification Number」の略で、Amazonグループが取り扱 う、書籍以外の商品を識別する10けたの番号
68.
© 2018, Amazon
Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential and Trademark Indexes G S I 1 Partition Key Projected Attributes ABOOK-ASIN1 ABOOKACR1 ABOOKACR1-v1 ABOOKACR1#TRACK#1 ABOOKACR1#TRACK#2 SyncFileAcr ABOOKACR1 MAP-EBOOKACR1 EBOOK-SKU1 ABOOKACR1 EBOOKACR1 G S I 2 Partition Key Projected Attributes ABOOK-ASIN1 ABOOKACR1 MAP-EBOOKACR1 ABOOK-SKU1 ABOOKACR1 ABOOKACR1-v1 ABOOKACR1#TRACK#1 ABOOKACR1#TRACK#2 G S I 3 GSI Partition Key Projected Attributes V0#ABOOKACR1 ABOOKACR1 ABOOKACR1-v1 EBOOKACR1 ABOOKACR1 MAP-EBOOKACR1 ABOOKACR1#TRACK#1 ABOOKACR1 ABOOKACR1#TRACK#1 ABOOKACR1#TRACK#2 ABOOKACR1 ABOOKACR1#TRACK#2 EBOOKACR1 ABOOKACR1 EBOOKACR1
69.
© 2018, Amazon
Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential and Trademark Query Conditions # USE CASE Lookup parameters INDEX Key Conditions Filter Conditions 1 CompanionMapping getCompanionMappingsByAsin audiobookAsin/ebookSku GSI2 GSI-2=ABOOK-ASIN1 None 2 CompanionMapping getCompanionMappingsByEbookAndA udiobookContentId ebookAcr/sku,version,format or audiobookAcr/asin,version,format GSI-3 on TargetACR attribute OR PrimaryKey on Table GSI-3=MAP-EBOOKACR1 version=v and format=f 3 CompanionMapping getCompanionMappingsFromCache ebookAcr/sku,version,format or audiobookAcr/asin,version,format GSI-3 on TargetACR attribute OR PrimaryKey on Table GSI-3=MAP-EBOOKACR1 version=v and format=f 4 CompanionMapping getCompanionMappings syncfileAcr, ebookAcr?, audiobookAcr? GSI1 GSI-1=SyncFileAcr None 5 CompanionMapping getCompanionMappingsAvailable ebookAcr, audiobookAcr Primary Key on Table Acr=ABOOKACR1 and TargetACR beginswith "MAP-" 6 AcrInfo getACRInfo acr Primary Key on Table Acr=ABOOKACR1 and TargetACR beginswith "ABOOKACR1- v" 7 AcrInfo getACRs acr / asin,version,format Primary Key on Table Acr=ABOOKACR1 version=v and format=f 8 AcrInfo getACRInfos acr Primary Key on table Acr=ABOOKACR1 and TargetACR beginswith "ABOOKACR1" 9 AcrInfo getACRInfosbySKU sku GSI2 GSI-2=ABOOK-SKU1 10 AudioProduct getAudioProductsForACRs acr Primary Key on table Acr=ABOOKACR1 and TargetACR beginswith "ABOOKACR1" 11 AudioProduct getAudioProducts sku, version, format GSI2 GSI-2=ABOOK-SKU1 version=v and format=f 12 AudioProduct deleteAudioProductsMatchingSkuVersi ons sku, version GSI2 GSI-2=ABOOK-SKU1 version=v 13 AudioProduct getChildAudioProductsForSKU sku GSI2 GSI-2=ABOOK-SKU1 14 Product getProductInfoByAsins asin GSI1 GSI-1=ABOOK-ASIN1 15 Product getParentChildDataByParentAsins asin GSI1 GSI-1=ABOOK-ASIN1 16 AudioFile getAudioFilesForACR acr Primary Key on table Acr=ABOOKACR1 and TargetACR beginswith "ABOOKACR1#" 17 AudioFile getAudioFilesForChildACR acr, parent_asin Primary Key on table Acr=ABOOKACR1 version=v and format=f 18 AudioFile getAudioFilesByParentAsinVersionForm at parent_asin, version, format GSI1 GSI-1=ABOOK-ASIN1 version=v and format=f 19 AudioFile getAudioFiles sku, version, format GSI2 GSI-2=ABOOK-SKU1 version=v and format=f 20 AudioFile getAudioFilesForChildAsin asin, parent_asin, version, format GSI1 GSI-1=ABOOK-ASIN1 version=v and format=f
70.
© 2018, Amazon
Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential and Trademark まとめ • NoSQLはRDBとは全く特性が異なるので、それらを理解した上で適所でう まく活用する! • NoSQL, DynamoDB の特徴を理解した上でテーブルを設計する 以下のドキュメントも参考に https://docs.aws.amazon.com/ja_jp/amazondynamodb/latest/developerguide/best- practices.html https://www.youtube.com/watch?v=HaEPXoXVf2k https://aws.amazon.com/jp/blogs/news/how-to-use-dynamodb-global-secondary-indexes- to-improve-query-performance-and-reduce-costs/ • 運用はゼロではないが、拡張性の面や性能面ではとても楽ができるのが NoSQLの中でのDynamoDBの特徴 • 構築・運用にかかる時間を、本来のビジネス価値を高めることに投資でき る!
71.
© 2018, Amazon
Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential and Trademark Q&A お答えできなかったご質問については AWS Japan Blog 「https://aws.amazon.com/jp/blogs/news/」にて 後日掲載します。
72.
© 2018, Amazon
Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential and Trademark AWS Well-Architected 個別技術相談会 毎週” 個別技術相談会”を実施中 • のソリューションアーキテクト に 対策などを相談することも可能 • 申込みはイベント告知サイトから (https://aws.amazon.com/jp/about-aws/events/)
73.
© 2018, Amazon
Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential and Trademark© 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Confidential and Trademark AWS 公式 Webinar https://amzn.to/JPWebinar 過去資料 https://amzn.to/JPArchive ご視聴ありがとうございました