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
Change Language
Language
English
Español
Português
Français
Deutsche
Cancel
Save
Submit search
EN
Uploaded by
Amazon Web Services Japan
17,360 views
[AWSマイスターシリーズ] Amazon DynamoDB
Technology
◦
Business
◦
Read more
38
Save
Share
Embed
Embed presentation
Download
Downloaded 123 times
1
/ 78
2
/ 78
3
/ 78
4
/ 78
5
/ 78
6
/ 78
7
/ 78
8
/ 78
9
/ 78
10
/ 78
11
/ 78
12
/ 78
13
/ 78
14
/ 78
15
/ 78
16
/ 78
17
/ 78
18
/ 78
19
/ 78
20
/ 78
21
/ 78
22
/ 78
23
/ 78
24
/ 78
25
/ 78
26
/ 78
27
/ 78
28
/ 78
29
/ 78
30
/ 78
31
/ 78
32
/ 78
33
/ 78
34
/ 78
35
/ 78
36
/ 78
37
/ 78
38
/ 78
39
/ 78
40
/ 78
41
/ 78
42
/ 78
43
/ 78
44
/ 78
45
/ 78
46
/ 78
47
/ 78
48
/ 78
49
/ 78
50
/ 78
51
/ 78
52
/ 78
53
/ 78
54
/ 78
55
/ 78
56
/ 78
57
/ 78
58
/ 78
59
/ 78
60
/ 78
61
/ 78
62
/ 78
63
/ 78
64
/ 78
65
/ 78
66
/ 78
67
/ 78
68
/ 78
69
/ 78
70
/ 78
71
/ 78
72
/ 78
73
/ 78
74
/ 78
75
/ 78
76
/ 78
77
/ 78
78
/ 78
More Related Content
PDF
会員数180万人のマッチングサービスpairsの 急成長を支える技術基盤 ディレクターズカット版
by
Takuma Morikawa
PDF
AWS Black Belt Online Seminar 2017 AWS Elastic Beanstalk
by
Amazon Web Services Japan
PPTX
iostat await svctm の 見かた、考え方
by
歩 柴田
PDF
【Unite Tokyo 2019】AWS for Unity Developers
by
UnityTechnologiesJapan002
PDF
Amazon SageMaker 推論エンドポイントを利用したアプリケーション開発
by
Amazon Web Services Japan
PDF
Micrometer/Prometheusによる大規模システムモニタリング #jsug #sf_26
by
Yahoo!デベロッパーネットワーク
PDF
Amazon Simple Workflow Service (SWF)
by
Amazon Web Services Japan
PDF
20201111 AWS Black Belt Online Seminar AWS CodeStar & AWS CodePipeline
by
Amazon Web Services Japan
会員数180万人のマッチングサービスpairsの 急成長を支える技術基盤 ディレクターズカット版
by
Takuma Morikawa
AWS Black Belt Online Seminar 2017 AWS Elastic Beanstalk
by
Amazon Web Services Japan
iostat await svctm の 見かた、考え方
by
歩 柴田
【Unite Tokyo 2019】AWS for Unity Developers
by
UnityTechnologiesJapan002
Amazon SageMaker 推論エンドポイントを利用したアプリケーション開発
by
Amazon Web Services Japan
Micrometer/Prometheusによる大規模システムモニタリング #jsug #sf_26
by
Yahoo!デベロッパーネットワーク
Amazon Simple Workflow Service (SWF)
by
Amazon Web Services Japan
20201111 AWS Black Belt Online Seminar AWS CodeStar & AWS CodePipeline
by
Amazon Web Services Japan
What's hot
PDF
Kotlin と Rxjava2
by
Recruit Lifestyle Co., Ltd.
PDF
DMP勉強会
by
Shoho Kozawa
PDF
Linux女子部 systemd徹底入門
by
Etsuji Nakai
PDF
異次元のグラフデータベースNeo4j
by
昌桓 李
PDF
S13 Oracle Database を Microsoft Azure 上で運用する為に~基本事項とベストプラクティス
by
Microsoft Azure Japan
PDF
Apache NiFi の紹介 #streamctjp
by
Yahoo!デベロッパーネットワーク
PDF
Kubernetesによる機械学習基盤への挑戦
by
Preferred Networks
PDF
Dockerからcontainerdへの移行
by
Kohei Tokunaga
PDF
【15-B-7】無意味なアラートからの脱却 ~ Datadogを使ってモダンなモニタリングを始めよう ~
by
Developers Summit
PPTX
深い親子関係のテーブル設計
by
琢磨 三浦
PDF
データ活用を加速するAWS分析サービスのご紹介
by
Amazon Web Services Japan
PDF
MHA for MySQLとDeNAのオープンソースの話
by
Yoshinori Matsunobu
PPTX
分析指向データレイク実現の次の一手 ~Delta Lake、なにそれおいしいの?~(NTTデータ テクノロジーカンファレンス 2020 発表資料)
by
NTT DATA Technology & Innovation
PPTX
Edge Computing と k8s でなんか話すよ
by
VirtualTech Japan Inc.
PDF
C34 ニッチだけど、社会インフラを支えるデータベース、HiRDB ~HiRDBを選ぶ人、選ばない人、その選択基準とは~ by Taichi Ishikawa
by
Insight Technology, Inc.
PDF
20201118 AWS Black Belt Online Seminar 形で考えるサーバーレス設計 サーバーレスユースケースパターン解説
by
Amazon Web Services Japan
PPTX
Docker Tokyo
by
cyberblack28 Ichikawa
PDF
ジャストシステムJava100本ノックのご紹介
by
JustSystems Corporation
PDF
AWS Black Belt Online Seminar 2016 AWS CloudFormation
by
Amazon Web Services Japan
PDF
AWS Black Belt Online Seminar 2018 Amazon DynamoDB Advanced Design Pattern
by
Amazon Web Services Japan
Kotlin と Rxjava2
by
Recruit Lifestyle Co., Ltd.
DMP勉強会
by
Shoho Kozawa
Linux女子部 systemd徹底入門
by
Etsuji Nakai
異次元のグラフデータベースNeo4j
by
昌桓 李
S13 Oracle Database を Microsoft Azure 上で運用する為に~基本事項とベストプラクティス
by
Microsoft Azure Japan
Apache NiFi の紹介 #streamctjp
by
Yahoo!デベロッパーネットワーク
Kubernetesによる機械学習基盤への挑戦
by
Preferred Networks
Dockerからcontainerdへの移行
by
Kohei Tokunaga
【15-B-7】無意味なアラートからの脱却 ~ Datadogを使ってモダンなモニタリングを始めよう ~
by
Developers Summit
深い親子関係のテーブル設計
by
琢磨 三浦
データ活用を加速するAWS分析サービスのご紹介
by
Amazon Web Services Japan
MHA for MySQLとDeNAのオープンソースの話
by
Yoshinori Matsunobu
分析指向データレイク実現の次の一手 ~Delta Lake、なにそれおいしいの?~(NTTデータ テクノロジーカンファレンス 2020 発表資料)
by
NTT DATA Technology & Innovation
Edge Computing と k8s でなんか話すよ
by
VirtualTech Japan Inc.
C34 ニッチだけど、社会インフラを支えるデータベース、HiRDB ~HiRDBを選ぶ人、選ばない人、その選択基準とは~ by Taichi Ishikawa
by
Insight Technology, Inc.
20201118 AWS Black Belt Online Seminar 形で考えるサーバーレス設計 サーバーレスユースケースパターン解説
by
Amazon Web Services Japan
Docker Tokyo
by
cyberblack28 Ichikawa
ジャストシステムJava100本ノックのご紹介
by
JustSystems Corporation
AWS Black Belt Online Seminar 2016 AWS CloudFormation
by
Amazon Web Services Japan
AWS Black Belt Online Seminar 2018 Amazon DynamoDB Advanced Design Pattern
by
Amazon Web Services Japan
Similar to [AWSマイスターシリーズ] Amazon DynamoDB
PDF
AWS Black Belt Online Seminar 2017 Amazon DynamoDB
by
Amazon Web Services Japan
PDF
[よくわかるクラウドデータベース] CassandraからAmazon DynamoDBへの移行事例
by
Amazon Web Services Japan
PDF
Amazon DynamoDB 初心者が理解した事
by
Hirokazu Tokuno
PDF
Amazon dynamo db、cloudant、blockchainの紹介 20160706
by
Tsuyoshi Hirayama
PDF
Amazon DynamoDB(初心者向け 超速マスター編)JAWSUG大阪
by
崇之 清水
PDF
Deep Dive: Amazon DynamoDB (db tech showcase 2016)
by
Amazon Web Services Japan
PDF
Lunch & Learn, AWS NoSQL Services
by
Insight Technology, Inc.
PDF
20120409 aws meister-reloaded-dynamo-db
by
Amazon Web Services Japan
PDF
DynamoDB MyNA・JPUG合同DB勉強会 in 東京
by
Yuko Mori
PDF
DynamoDBの初心者に伝えたい初めて触るときの勘所
by
Ryo Sasaki
PDF
[db tech showcase Tokyo 2015] A33:Amazon DynamoDB Deep Dive by アマゾン データ サービス ...
by
Insight Technology, Inc.
PPTX
Amazon DynamoDBの紹介と東急ハンズでの活用について
by
Taiji INOUE
PDF
AWS Black Belt Online Seminar AWS 体験ハンズオン 〜 Amazon DynamoDB テーブル作成編 〜
by
Amazon Web Services Japan
PDF
[よくわかるクラウドデータベース] AWSデータベースアップデート 20140117
by
Amazon Web Services Japan
PDF
AWS SDK for Smalltalk
by
Sho Yoshida
PDF
DynamoDBを導入した話
by
dcubeio
PDF
AWS Black Belt Techシリーズ Amazon Relational Database Service (RDS)
by
Amazon Web Services Japan
PPTX
DB Tech Showcase 大阪: Amazon DynamoDB Deep Dive
by
Kenta Yasukawa
PDF
AWS Blackbelt 2015シリーズ RDS
by
Amazon Web Services Japan
PDF
Ruby with AWS DynamoDB
by
Yuto Ogi
AWS Black Belt Online Seminar 2017 Amazon DynamoDB
by
Amazon Web Services Japan
[よくわかるクラウドデータベース] CassandraからAmazon DynamoDBへの移行事例
by
Amazon Web Services Japan
Amazon DynamoDB 初心者が理解した事
by
Hirokazu Tokuno
Amazon dynamo db、cloudant、blockchainの紹介 20160706
by
Tsuyoshi Hirayama
Amazon DynamoDB(初心者向け 超速マスター編)JAWSUG大阪
by
崇之 清水
Deep Dive: Amazon DynamoDB (db tech showcase 2016)
by
Amazon Web Services Japan
Lunch & Learn, AWS NoSQL Services
by
Insight Technology, Inc.
20120409 aws meister-reloaded-dynamo-db
by
Amazon Web Services Japan
DynamoDB MyNA・JPUG合同DB勉強会 in 東京
by
Yuko Mori
DynamoDBの初心者に伝えたい初めて触るときの勘所
by
Ryo Sasaki
[db tech showcase Tokyo 2015] A33:Amazon DynamoDB Deep Dive by アマゾン データ サービス ...
by
Insight Technology, Inc.
Amazon DynamoDBの紹介と東急ハンズでの活用について
by
Taiji INOUE
AWS Black Belt Online Seminar AWS 体験ハンズオン 〜 Amazon DynamoDB テーブル作成編 〜
by
Amazon Web Services Japan
[よくわかるクラウドデータベース] AWSデータベースアップデート 20140117
by
Amazon Web Services Japan
AWS SDK for Smalltalk
by
Sho Yoshida
DynamoDBを導入した話
by
dcubeio
AWS Black Belt Techシリーズ Amazon Relational Database Service (RDS)
by
Amazon Web Services Japan
DB Tech Showcase 大阪: Amazon DynamoDB Deep Dive
by
Kenta Yasukawa
AWS Blackbelt 2015シリーズ RDS
by
Amazon Web Services Japan
Ruby with AWS DynamoDB
by
Yuto Ogi
More from Amazon Web Services Japan
PDF
202205 AWS Black Belt Online Seminar Amazon VPC IP Address Manager (IPAM)
by
Amazon Web Services Japan
PDF
202205 AWS Black Belt Online Seminar Amazon FSx for OpenZFS
by
Amazon Web Services Japan
PDF
202204 AWS Black Belt Online Seminar AWS IoT Device Defender
by
Amazon Web Services Japan
PDF
Infrastructure as Code (IaC) 談義 2022
by
Amazon Web Services Japan
PDF
202204 AWS Black Belt Online Seminar Amazon Connect を活用したオンコール対応の実現
by
Amazon Web Services Japan
PDF
202204 AWS Black Belt Online Seminar Amazon Connect Salesforce連携(第1回 CTI Adap...
by
Amazon Web Services Japan
PDF
Amazon Game Tech Night #25 ゲーム業界向け機械学習最新状況アップデート
by
Amazon Web Services Japan
PPTX
20220409 AWS BLEA 開発にあたって検討したこと
by
Amazon Web Services Japan
PDF
202202 AWS Black Belt Online Seminar AWS Managed Rules for AWS WAF の活用
by
Amazon Web Services Japan
PDF
202203 AWS Black Belt Online Seminar Amazon Connect Tasks.pdf
by
Amazon Web Services Japan
PDF
SaaS テナント毎のコストを把握するための「AWS Application Cost Profiler」のご紹介
by
Amazon Web Services Japan
PDF
Amazon QuickSight の組み込み方法をちょっぴりDD
by
Amazon Web Services Japan
PDF
マルチテナント化で知っておきたいデータベースのこと
by
Amazon Web Services Japan
PDF
機密データとSaaSは共存しうるのか!?セキュリティー重視のユーザー層を取り込む為のネットワーク通信のアプローチ
by
Amazon Web Services Japan
PDF
パッケージソフトウェアを簡単にSaaS化!?既存の資産を使ったSaaS化手法のご紹介
by
Amazon Web Services Japan
PDF
202202 AWS Black Belt Online Seminar Amazon Connect Customer Profiles
by
Amazon Web Services Japan
PDF
Amazon Game Tech Night #24 KPIダッシュボードを最速で用意するために
by
Amazon Web Services Japan
PDF
202202 AWS Black Belt Online Seminar AWS SaaS Boost で始めるSaaS開発⼊⾨
by
Amazon Web Services Japan
PPTX
[20220126] JAWS-UG 2022初頭までに葬ったAWSアンチパターン大紹介
by
Amazon Web Services Japan
PDF
202111 AWS Black Belt Online Seminar AWSで構築するSmart Mirrorのご紹介
by
Amazon Web Services Japan
202205 AWS Black Belt Online Seminar Amazon VPC IP Address Manager (IPAM)
by
Amazon Web Services Japan
202205 AWS Black Belt Online Seminar Amazon FSx for OpenZFS
by
Amazon Web Services Japan
202204 AWS Black Belt Online Seminar AWS IoT Device Defender
by
Amazon Web Services Japan
Infrastructure as Code (IaC) 談義 2022
by
Amazon Web Services Japan
202204 AWS Black Belt Online Seminar Amazon Connect を活用したオンコール対応の実現
by
Amazon Web Services Japan
202204 AWS Black Belt Online Seminar Amazon Connect Salesforce連携(第1回 CTI Adap...
by
Amazon Web Services Japan
Amazon Game Tech Night #25 ゲーム業界向け機械学習最新状況アップデート
by
Amazon Web Services Japan
20220409 AWS BLEA 開発にあたって検討したこと
by
Amazon Web Services Japan
202202 AWS Black Belt Online Seminar AWS Managed Rules for AWS WAF の活用
by
Amazon Web Services Japan
202203 AWS Black Belt Online Seminar Amazon Connect Tasks.pdf
by
Amazon Web Services Japan
SaaS テナント毎のコストを把握するための「AWS Application Cost Profiler」のご紹介
by
Amazon Web Services Japan
Amazon QuickSight の組み込み方法をちょっぴりDD
by
Amazon Web Services Japan
マルチテナント化で知っておきたいデータベースのこと
by
Amazon Web Services Japan
機密データとSaaSは共存しうるのか!?セキュリティー重視のユーザー層を取り込む為のネットワーク通信のアプローチ
by
Amazon Web Services Japan
パッケージソフトウェアを簡単にSaaS化!?既存の資産を使ったSaaS化手法のご紹介
by
Amazon Web Services Japan
202202 AWS Black Belt Online Seminar Amazon Connect Customer Profiles
by
Amazon Web Services Japan
Amazon Game Tech Night #24 KPIダッシュボードを最速で用意するために
by
Amazon Web Services Japan
202202 AWS Black Belt Online Seminar AWS SaaS Boost で始めるSaaS開発⼊⾨
by
Amazon Web Services Japan
[20220126] JAWS-UG 2022初頭までに葬ったAWSアンチパターン大紹介
by
Amazon Web Services Japan
202111 AWS Black Belt Online Seminar AWSで構築するSmart Mirrorのご紹介
by
Amazon Web Services Japan
[AWSマイスターシリーズ] Amazon DynamoDB
1.
re:G ene AWS マイスターシリーズ rate Amazon
DynamoDB 2013.10.02 アマゾン データサービス ジャパン株式会社 ソリューションアーキテクト 今井 雄太 © 2012 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
2.
アジェンダ ! NoSQLとRDB ! DynamoDBとは !
DynamoDBを使ってみる ! ツールとエコシステム ! When to use ! まとめ 2 © 2012 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
3.
NoSQLとRDB 3 © 2012 Amazon.com,
Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
4.
世の中はNoSQLブーム? ! ! ! ! MongoDB Riak HBase Cassandra ! Neo4j ! CounchDB !
DynamoDB 他にもたくさん http://ja.wikipedia.org/wiki/NoSQL 4 © 2012 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
5.
NoSQL vs RDB !
NoSQL • BASE属性 • ⼤大容量量データ • スケールしやすい • 書き込みが速い • スキーマが柔軟 ! RDB • ACID属性 • Atomicity • Consistency • Isolation • Durability • トランザクション • クエリがリッチ • ジョインも得意 5 © 2012 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
6.
BASE? 6 © 2012 Amazon.com,
Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
7.
Basically Availabl, Soft
state, Eventually consistent ! RDBの提供するACID属性と対⽐比するためによく使われ る ! 厳密な⼀一貫性やデータの即時反映などをあきらめる代わ りに、スケーラビリティを取る。というような意味。 ! すべてのNoSQLが完全にBASEとは限らないが、⼀一貫性 やトランザクションなど、従来のACIDなRDBと⽐比べて、 諦めている要件がある。 7 © 2012 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
8.
NoSQL、裏裏を返すと・・ • ⼀一貫性を保持するのは苦⼿手 • トランザクション苦⼿手 • クエリはシンプル • 運⽤用が⼤大変 8 © 2012 Amazon.com,
Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
9.
NoSQL書き込み速いと⾔言っても・・・ MySQLでも1,000QPSくらい 普通に出ます。 NoSQLの真価は、データ量量が 巨⼤大になってきても性能が落落 ちないところ。 9 © 2012 Amazon.com,
Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
10.
RDBでやってきたことをそ のままできるわけではない ことに注意してNoSQLを使 いましょう! 10 © 2012 Amazon.com,
Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
11.
DynamoDBとは 11 © 2012 Amazon.com,
Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
12.
DynamoDBとは ! ・NoSQL
as a Service ! ・超⾼高速・予測可能な⼀一貫したパフォーマンス ! ・シームレスなスケーラビリティ、そして低コスト 運⽤用管理理必要なし 低レイテンシ、SSD プロビジョンスループット 無限に使えるストレージ 12 © 2012 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
13.
DynamoDBの特徴 ! 管理理不不要で信頼性が⾼高い ! プロビジョンスループット !
ストレージの容量量制限がない 13 © 2012 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
14.
特⻑⾧長1:管理理不不要で信頼性が⾼高い ! SPOFの存在しない構成 !
データは3箇所のAZに保存されるので信頼性が⾼高い ! ストレージは必要に応じて⾃自動的にパーティショニング される クライアント 14 © 2012 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
15.
特⻑⾧長2:プロビジョンスループット ! ReadとWrite、それぞれに対して必要な分だけのスルー プットキャパシティをプロビジョンする(割り当てる) ことができる !
例例えば⼀一般的なReadヘビーなDBなら • Read : 1,000 • Write : 100 ! ライトヘビーなDBなら • Read : 500 • Write : 500 ! この値はDB運⽤用中にオンラインで変更更可能 • ただし、スケールダウンに関しては⽇日に4回までしかできない ので注意 15 © 2012 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
16.
特⻑⾧長3:ストレージの容量量制限がない ! 使った分だけの従量量課⾦金金制のストレージ !
データ容量量が増えてきたのでディスクを⾜足したり、ノー ドを⾜足したりという作業が不不要 16 © 2012 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
17.
DynamoDBの料料⾦金金体系 ! プロビジョンスループットで決 まる時間料料⾦金金 • Read/Writeそれぞれプロビジョンしたスループットによって時 間あたりの料料⾦金金がきまる •
⼤大規模に利利⽤用するのであればリザーブ度度による割引もあり ! ストレージ利利⽤用量量 • 保存したデータ容量量によって決まる⽉月額利利⽤用料料⾦金金 • 計算はGBあたりの単価が適⽤用される 実際の料料⾦金金については下記を参照 http://aws.amazon.com/jp/dynamodb/pricing/ 17 © 2012 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
18.
DynamoDBを使い始めるには 1. テーブルのKeyやIndexを決める 2. Read/Writeそれぞれのスループッ トを決める Thatʼ’s
it, write your code! 18 © 2012 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
19.
DynamoDBを使ってみる 19 © 2012 Amazon.com,
Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
20.
DynamoDBの構成要素 オペレーションはHTTP APIで提供されている Client Side SDK HTTP
API Distributed Storage Service Side API Servers 20 © 2012 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
21.
提供されているAPI ! ! ! ! ! ! PutItem UpdateItem GetItem DeleteItem Query Scan ! ! ! ! ! ! BatchWriteItem BatchGetItem CreateTable DescribeTable UpdateTable DeleteTable 21 © 2012 Amazon.com,
Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
22.
提供されているAPI ! ! ! ! ! ! PutItem ! BatchWriteItem UpdateItem ! BatchGetItem SDK経由で利利⽤用するのが楽。 GetItem !
CreateTable もちろん、⾃自前実装も可能です。 DeleteItem ! DescribeTable Query ! UpdateTable Scan ! DeleteTable 22 © 2012 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
23.
実際によく使う操作 • Get/Put/Update/Delete/BatchGet • Scan •
テーブル総ナメする • Query • ハッシュ+レンジキーのみ 23 © 2012 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
24.
AWS SDKs ! 各種⾔言語むけのオフィシャルSDKを利利⽤用 Java Python PHP .NET iOS Ruby nodeJS Android 24 ©
2012 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
25.
オフィシャルSDK以外にも ! Perl •
Net::Amazon::DynamoDB ! Erlang • wagerlabs/ddb • https://github.com/wagerlabs/ddb ! Go • go-‐‑‒dynamodb • https://github.com/fabiokung/go-‐‑‒dynamodb 25 © 2012 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
26.
テーブル設計のための要素(1) ! Table •
Primary Keyとして”Hash key”もしくは”Hash key & Range key”を選択する ! プライマリキー:Hash key • Hash key単体でデータを⼀一意に識識別できるケースに使う ! プライマリキー:Hash key & Range key • Hash keyに該当する複数のデータからRange keyで絞り込み検 索索ができる ! Local Secondary Indexes • Range key以外に絞り込み検索索のためのキーを持つことができ る 26 © 2012 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
27.
テーブル設計のための要素(2) ! Attributes •
データの中⾝身。Hash key, Range keyに該当するAttributes以 外は事前に定義する必要はない。また、レコード間でAttributes が不不揃いであっても問題ない。 ! Attributesの型 • • • • • • String Number Binary String Set Number Set Binary Set 27 © 2012 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
28.
DynamoDBのデータモデル テーブル Hash keyまたはHash key
& Range key アイテム プライマリキー アトリビュート 28 © 2012 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
29.
DynamoDBのプライマリキー • ハッシュキー • シンプルなキーバリュー •
ハッシュ値なので、ソートなし • ハッシュキー+レンジキー • コンポジットプライマリーキー • レンジキーはソートあり 29 © 2012 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
30.
サンプル(1) 商品カタログ !
スキーマのイメージ • テーブル名はProducts • 商品ID(ProductId)をHash keyとするテーブル ProductId (Hash key) ProductName Price ・・・ ・・・ 1 Pen 100 ・・・ ・・・ 2 Pencil 50 ・・・ ・・・ 3 Eraser 100 ・・・ ・・・ 30 © 2012 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
31.
DynamoDBデータモデル ハッシュキーのみの場合 アイテム プライマリキー ハッシュキー アトリビュート A1-‐‑‒1 31 © 2012 Amazon.com,
Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
32.
サンプル(1) 商品カタログ !
テーブルの作成 • 商品IDをHash keyとするテーブル • Primary KeyにHashを選択して、Hash keyの名前と型を決め る 32 © 2012 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
33.
サンプル(1) 商品カタログ !
node.jsのSDKで触ってみる • データを投⼊入 var aws = require(‘aws-sdk’); aws.config.loadFromPath(‘PATH/TO/CREDENTIAL’); var dynamoDb = new aws.DynamoDB.Client(); 33 dynamoDb.putItem( { TableName:"Products", Item: { ProductId : {N:"1"}, ProductName: {S:"Pen"}, Price: {N:"100"} } }, function(err,data){ if(err){ console.log(err); }else{ console.log(data); } } ); © 2012 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
34.
サンプル(1) 商品カタログ !
node.jsのSDKで触ってみる • データを1件取得する dynamoDb.getItem( { TableName:"Products", Key: { ProductId : {N:"1"}, }, function(err,data){ if(err){ console.log(err); }else{ console.log(data); } } ); 34 © 2012 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
35.
サンプル(2) ⾏行行動ログ !
スキーマのイメージ • テーブル名はAudience • ユーザーID(AudienceId)をHash key、TimestampをRange keyとするテーブル AudienceId (Hash key) Action Url ・・・ 1 2013-10-01 00:01:01 Login ・・・ ・・・ 2 2013-10-01 00:02:02 Login ・・・ ・・・ 1 2013-10-01 00:21:00 Login ・・・ ・・・ 1 35 Timestamp (Range key) 2013-10-01 00:42:00 ViewHoge 1 2013-10-01 00:56:22 PostHoge © 2012 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
36.
DynamoDBデータモデル ! ハッシュキー+レンジキーの場合 アイテム プライマリキー レンジキー1 レンジキー2 アトリビュート A2-‐‑‒1 レンジキー3 ハッシュ キーA アトリビュート A1-‐‑‒1 アトリビュート A3-‐‑‒1 36 ©
2012 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
37.
サンプル(2) ⾏行行動ログ !
テーブルの作成 37 © 2012 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
38.
サンプル(2) ⾏行行動ログ !
node.jsのSDKで触ってみる • データを投⼊入 var data = new Array( { AudienceId: { N:"1" }, Timestamp: { S:"2013-‐‑‒10-‐‑‒01 00:01:01" }, Action: { S:"Login" } }, { AudienceId: { N:"2" }, Timestamp: { S:"2013-‐‑‒10-‐‑‒01 00:02:02" }, Action: { S:"Login" } }, { AudienceId: { N:"1" }, Timestamp: { S:"2013-‐‑‒10-‐‑‒01 00:21:00" }, Action: { S:"Login" } }, { AudienceId: { N:"1" }, Timestamp: { S:"2013-‐‑‒10-‐‑‒01 00:42:00" }, Action: { S:"ViewHoge" } }, { AudienceId: { N:"1" }, Timestamp: { S:"2013-‐‑‒10-‐‑‒01 00:56:22" }, Action: { S:"PostHoge" } } ); 38 for (var i =0; i < data.length; i++){ dynamoDb.putItem( { TableName:"Audience", Item: data[i] }, function(err,data){ if(err){ console.log(err); }else{ console.log(data); } } ); © 2012 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc. }
39.
サンプル(2) ⾏行行動ログ !
node.jsのSDKで触ってみる • あるユーザーの10⽉月1⽇日 0時10分以降降の⾏行行動ログを取得する 39 dynamoDb.query( { TableName:"Audience", KeyConditions: { "AudienceId": { ComparisonOperator:"EQ", AttributeValueList:[ {N:"1"} ] }, "Timestamp": { ComparisonOperator:"GT", AttributeValueList:[ {S:"2013-‐‑‒10-‐‑‒01 00:10:00"} ] } } }, function(err,data){ if(err){ console.log(err); }else{ console.log(data); } } ); © 2012 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
40.
サンプル(3) LSI付き⾏行行動ログ !
ユーザーのアクティビティログにLocal Secondary Indexes(LSI)をつけてみる AudienceId (Hash key) Action Url (Action-Index) ・・・ 1 2013-10-01 00:01:01 Login ・・・ ・・・ 2 2013-10-01 00:02:02 Login ・・・ ・・・ 1 2013-10-01 00:21:00 Login ・・・ ・・・ 1 40 Timestamp (Range key) 2013-10-01 00:42:00 ViewHoge 1 2013-10-01 00:56:22 PostHoge © 2012 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
41.
Local Secondary Indexes(LSI) •
Get/Put/Update/Delete/BatchGet • Scan • テーブル総ナメする • Query • ハッシュ+レンジキーのみ この制限を取り除くのがLocal Secondary Index! 41 © 2012 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
42.
Local Secondary Indexes
(LSI) ! 任意のアトリビュートに張れるQuery⽤用Index • 各テーブルに5つまで Forumの投稿を保持するテーブルの例: LSIを定義すればKeyで ないアトリビュートに関し てもQuery可能に 例: - Repliesが10件以上 - 最後の投稿がXX以降 LSIなしのテーブルでは QueryはRange Keyのみ 42 RepliesIndex LastPostIndex LSI © 2012 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
43.
なんで”Local” Secondary Indexesなの? !
ハッシュキーが⼀一致する範囲の中のSecondary Indexで あるため àハッシュキーが異異なるアイテムを横断的にQueryすることは出 来ない RepliesIndex RepliesIndexを使って1 Queryで取得可能なのは? • ForumNameがS3で Repliesが9以上 • 任意のForumNameで Repliesが9以上 à 3つハッシュキーがある ので3 Query必要 43 © 2012 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
44.
LSIを設定した場合の実際 Threadテーブルの LastPostDateTimeに LSIを設定すると 44 LastPostIndex 対応するIndexテーブルが裏で 作成/管理される • 指定したアトリビュートがレンジキー • 元のテーブルのレンジキーがアトリ ビュートに ©
2012 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
45.
アトリビュートのプロジェクション ! Index⽤用テーブルに指定したアトリビュートを複製保存 する機能 •
例例:ThreadテーブルのRepliesをLastPostIndexにプロジェク ション LastPostIndex 45 Query時にRepliesを取得する場合は読み込みコストが低減 à性能の向上、ReadThroughputの節約 © 2012 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
46.
サンプル(3)LSI付き⾏行行動ログ ! ユーザーのアクティビティログにLocal
Secondary Indexes(LSI)をつけてみる • ⼀一度度作ったテーブルのLSIは変更更できないので、新たに Audience2というテーブルを作って設定する • 今回はAction-‐‑‒IndexというLSIを作って、”Action”というアトリ ビュートに設定する 46 © 2012 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
47.
サンプル(3)LSI付き⾏行行動ログ ! Action-‐‑‒Index(LSI)を使ってデータを取得する 47 dynamoDb.query(
{ TableName:"Audience2", IndexName: “Action-‐‑‒Index”, KeyConditions: { "AudienceId": { ComparisonOperator:"EQ", AttributeValueList:[ {N:"1"} ] }, “Action": { ComparisonOperator:“EQ", AttributeValueList:[ {S:“Login"} ] } } }, function(err,data){ if(err){ console.log(err); }else{ console.log(data); } } ); © 2012 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
48.
テーブル設計で気をつけること: プライマリキー !
Hash keyとRange keyの概念念 Parition1 Partition2 Parition3 1 2 3 4 5 6 7 8 9 Range key Partition内での データの並びを 保証する DynamoDBのスループッ トは、各Partitionに負荷 が分散されたときに想定通 りの数字がでるように設計 されている。ひとつの Paritionだけではプロビ ジョンしたスループットの 数字はでないので注意。 Hash key Partition間での データ分散に利利 48 ⽤用される © 2012 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc. A,D B,E C,F
49.
テーブル設計で気をつけること: プライマリキー !
Hot Key問題:特定のHash keyに対してデータ が集中すると性能が劣劣化する(想定通りに性能 がでない)ので注意。 ! 前述のAudienceテーブルでのAudienceIdのよ うに、データが特定のキーに集中しにくいもの を選ぶ。 ! 例例えば、「年年⽉月」みたいなデータが集中しやす いキーをHash keyにするのはアンチパターン。 49 © 2012 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
50.
テーブル設計で気をつけること: LSI !
Local Secondary IndexesはストレージとIOの コストを押し上げる • LSIはいわゆる”射影”で実装されている • 射影されるアトリビュートのストレージコストが膨らむ • Write時の書き込みコストも上がる ! 本当に必要なものだけに絞ってLSIを適⽤用する ! 射影(Projection)するAttributesも必要なものに絞る 50 © 2012 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
51.
ツールとエコシステム 51 © 2012 Amazon.com,
Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
52.
データ操作は マネージメントコンソールで ! テーブルに対してSCANやQUERY、PutItemをマネージ メントコンソールから実⾏行行することができる 52 ©
2012 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
53.
DynamoDB Local !
開発/テスト⽤用のツール • 今までは開発やテストをするために実際のDynamoDBのテーブ ルを作る必要があった。これには”費⽤用が発⽣生する”、”静的なテ スト環境を作れない”、”オフラインで開発できない”などの問題 があった。 • このツールを利利⽤用することにより、開発やCIをより便便利利に⾏行行う ことができる ! JARファイルで提供され、ローカルにインストールして 動かすことができる(要Java7) ! あくまでAPIの機能的を再現しているテストツールなの で本番では利利⽤用しない ! プロビジョンスループットは再現されていないので注意 ! 詳細は http://bit.ly/1d9fN5c を参照 53 © 2012 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
54.
Transaction Library for
DynamoDB ! AWS SDK for Javaのひとつの機能としての実装 • このSDKを使うことでDynamoDB上でTransactionを利利⽤用できる • ライブラリ側でTransaction管理理テーブルを作成することにより Transactionを実現している ! 使い⽅方は次のページのサンプルコードを参照 ! 詳細は http://bit.ly/16KbppP 54 © 2012 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
55.
Transaction Library for
DynamoDB 55 © 2012 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
56.
Transaction Library for
DynamoDB 56 © 2012 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
57.
Amazon EMRのHiveから利利⽤用する !
hiveのExternal Tableとして利利⽤用可能 • DynamoDB上のデータを集計したいときなどに利利⽤用 CREATE EXTERNAL TABLE Audience ( AudienceId Int, ActionTimestamp string, Action string ) STORED BY 'org.apache.hadoop.hive.dynamodb.DynamoDBStorageHa ndler' TBLPROPERTIES ( "dynamodb.table.name" = ”Audience2", "dynamodb.column.mapping" = ”AudienceId:AudienceId, ActionTimestamp:Timestamp, Aciton:Action“ ); 57 • 詳細は http://amazn.to/19goT17 © 2012 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
58.
hiveを使ってS3へデータをバックアップする EMR上のhiveはDynamoDBだけでなくS3も External Tableとして利利⽤用できるのを活かし、 DynamoDBバックのExternal Tableから SelectしたデータをS3バックのExternal
Table にInsertする。 INSERT OVERWRITE TABLE s3_̲as_̲external_̲table SELECT * FROM dynamodb_̲as_̲external_̲table; 58 © 2012 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
59.
Amazon Redshiftにデータをロードする ! COPYコマンドでRedshiftにデータをロード COPY
audience FROM ʻ‘dynamodb://Audience2ʼ’ CREDENTIALS 'aws_̲access_̲key_̲id=<Your-‐‑‒Access-‐‑‒Key-‐‑‒ ID>;aws_̲secret_̲access_̲key=<Your-‐‑‒Secret-‐‑‒Access-‐‑‒ Key>' READRATIO 50; • 詳細は http://amazn.to/19goT17 59 © 2012 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
60.
When to use 60 ©
2012 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
61.
いつDynamoDBを使うべきか ! RDBをそのまま置き換えるのはあまりう まい使い⽅方ではない ! システムすべてをDynamoDBだけで構成 する必要はない !
RDBとうまい棲み分けを ! 例例えばシャーディングしないと格納でき ないような巨⼤大なデータだけを DynamoDBに⼊入れるなど 61 © 2012 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
62.
RDBで、性能を保ちつつ巨⼤大なデータを格 納するには 62 © 2012 Amazon.com,
Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
63.
MySQLのシャード構成で データを運⽤用する⼿手順の例例(1) シャードインデックス データインデックス マテリアライズド・ビュ ー シャードされた実データテーブル 63 © 2012 Amazon.com,
Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
64.
MySQLのシャード構成で データを運⽤用する⼿手順の例例(2) 取得したいデータ⼀一覧を取る シャードインデックス データインデックス マテリアライズド・ビュ ー シャードされた実データテーブル 64 © 2012 Amazon.com,
Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
65.
MySQLのシャード構成で データを運⽤用する⼿手順の例例(3) 欲しいデータが⼊入っている シャードノードを取得 シャードインデックス データインデックス マテリアライズド・ビュ ー シャードされた実データテーブル 65 © 2012 Amazon.com,
Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
66.
MySQLのシャード構成で データを運⽤用する⼿手順の例例(3) 実データを取得 シャードインデックス データインデックス マテリアライズド・ビュ ー シャードされた実データテーブル 66 © 2012 Amazon.com,
Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
67.
MySQLのシャード構成で データを運⽤用する⼿手順の例例(4) ビューをキャッシュ シャードインデックス データインデックス マテリアライズド・ビュ ー シャードされた実データテーブル 67 © 2012 Amazon.com,
Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
68.
スケーラビリティ(性能 x データ量量)を RDBで確保しようとすると とても⼤大変 68 ©
2012 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
69.
そういうところにこそDynamoDB 69 © 2012 Amazon.com,
Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
70.
シャードノードとシャードインデックスが 不不要になって運⽤用が楽に! データインデックス マテリアライズド・ビュ ー DynamoDB 70 © 2012 Amazon.com,
Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
71.
DynamoDBにマッチするユースケースを 考えてみる ! ユーザーの⾏行行動ログを格納 •
Hash keyにユーザーID、Range keyにタイムスタンプ • 広告のターゲティングのための⾏行行動ログ • ゲーム内のユーザーの⾏行行動を記録するためのログ ! ストレージのためのインデックス • Hash keyにObject名 • S3に格納したデータのインデックスとして ! 投票システムやフラッシュマーケティング • 投票や応募対象のIDをHash key • 短期間でスパイクするトラフィックを捌くために 71 © 2012 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
72.
ユースケース 72 © 2012 Amazon.com,
Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
73.
逆に、マッチしないユースケースは? ! 集計 •
データを全件SCANするようなユースケースはあまり向かない • やるのであればHiveやRedshiftと組み合わせる ! トランザクション • ライブラリの提供はあるが、NoSQLの特性としてもともと得意 ではない(できるがコストが⾼高い) 73 © 2012 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
74.
まとめ 74 © 2012 Amazon.com,
Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
75.
まとめ ! ! ! ! DynamoDBはNoSQL as a
Service 運⽤用の⼿手間がかからない。 NoSQLはRDBとは⽤用途が違う システムを全部DynamoDBで構築す る必要はない。適材適所でRDBと組 み合わせて使う。 75 © 2012 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
76.
参考資料料 ! Amazon
DynamoDB のベストプラクティス、使⽤用⽅方法、 およびツールなどの情報がこちらにまとまっています。 • http://aws.amazon.com/jp/dynamodb/resources/ 76 © 2012 Amazon.com, Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
77.
参考資料料 Yahooの開発したPeanutsというNoSQLと、Dynamo(オリジナル)、Cassandra、 HBaseとのコンセプトや実装の⽐比較が書かれていて、NoSQLの中⾝身や実装につ いて⾮非常に参考になります。 77 © 2012 Amazon.com,
Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
78.
ありがとうございました! 78 © 2012 Amazon.com,
Inc. and its affiliates. All rights reserved. May not be copied, modified or distributed in whole or in part without the express consent of Amazon.com, Inc.
Download