SlideShare ist ein Scribd-Unternehmen logo
1 von 17
Downloaden Sie, um offline zu lesen
DynamoDB
13年9月22⽇日星期⽇日
What is DynamoDB
• 讓我們來看一段官方介紹影片
13年9月22⽇日星期⽇日
What is DynamoDB
• Managed NoSQL database service
• Features
• Schemaless
• Fast - SSD
•Reserved IOPS for R/W
13年9月22⽇日星期⽇日
Data Model
• Table - collection of items
• Items - Any number of attributes, up to 64k
13年9月22⽇日星期⽇日
Data Model
• No schema - Just provide PK
• Items are indexed by PK
• Single hash key & composite key
13年9月22⽇日星期⽇日
Working with Tables
• Specifying PK
• Hash PK - ex. ProductID
• Hash and Range PK - ex. ForumName
and Subject
• Specifying Read/Write requirements
13年9月22⽇日星期⽇日
R/W Requirements
• Read capacity units
• Strongly consistent read per second of
items up to 4KB
13年9月22⽇日星期⽇日
R/W Requirements
• Write capacity units
• The number of 1KB writes per second
13年9月22⽇日星期⽇日
Pricing
• Based on Provisioned Throughput Capacity
+ Indexed Storages
13年9月22⽇日星期⽇日
Working with Items
• Documentations
13年9月22⽇日星期⽇日
Index
13年9月22⽇日星期⽇日
Query
• A Query operation directly accesses
items from a table using the table
primary key, , or from an index using the
index key.
• Example
13年9月22⽇日星期⽇日
Scan
• The Scan operation returns one or more
items and item attributes by accessing
every item in the table.To have Amazon
DynamoDB return fewer items, you can
provide a ScanFilter.
• Example
13年9月22⽇日星期⽇日
Query & Scan cost
• For Query, all items returned are treated as
a single read operation. As a result,
Amazon DynamoDB computes the total
size of all items and then rounds up to the
next 4 KB boundary.
• In the case of a Scan operation,Amazon
DynamoDB considers the size of the items
that are evaluated.
13年9月22⽇日星期⽇日
Reference
• Getting Started
• Local Secondary Index
• Best Practice
13年9月22⽇日星期⽇日
DEMO
13年9月22⽇日星期⽇日
When to use
DynamoDB?
• If your application can fit into DynamoDB...
• If you hate to tune the database...
13年9月22⽇日星期⽇日

Weitere ähnliche Inhalte

Ähnlich wie Dynamo db

改善Programmer生活的sql技能
改善Programmer生活的sql技能改善Programmer生活的sql技能
改善Programmer生活的sql技能Rack Lin
 
AWS_Educate_Team_SCU_Volunteer_Training_0923
AWS_Educate_Team_SCU_Volunteer_Training_0923AWS_Educate_Team_SCU_Volunteer_Training_0923
AWS_Educate_Team_SCU_Volunteer_Training_0923土撥 JIE
 
Exadata那点事
Exadata那点事Exadata那点事
Exadata那点事freezr
 
基于My sql的分布式数据库实践
基于My sql的分布式数据库实践基于My sql的分布式数据库实践
基于My sql的分布式数据库实践锐 张
 
基于MySQL的分布式数据库实践
基于MySQL的分布式数据库实践基于MySQL的分布式数据库实践
基于MySQL的分布式数据库实践jackbillow
 
開放原始碼 Ch2.4 app - oss - db (ver 1.0)
開放原始碼 Ch2.4   app - oss - db (ver 1.0)開放原始碼 Ch2.4   app - oss - db (ver 1.0)
開放原始碼 Ch2.4 app - oss - db (ver 1.0)My own sweet home!
 
Google LevelDB Study Discuss
Google LevelDB Study DiscussGoogle LevelDB Study Discuss
Google LevelDB Study Discusseverestsun
 
KSDG BaaS Intro
KSDG BaaS IntroKSDG BaaS Intro
KSDG BaaS Introericpi Bi
 
分布式Key Value Store漫谈
分布式Key Value Store漫谈分布式Key Value Store漫谈
分布式Key Value Store漫谈Tim Y
 
分布式Key-value漫谈
分布式Key-value漫谈分布式Key-value漫谈
分布式Key-value漫谈lovingprince58
 
Introduction to big data
Introduction to big dataIntroduction to big data
Introduction to big data邦宇 叶
 
MySQL和IO(下)
MySQL和IO(下)MySQL和IO(下)
MySQL和IO(下)Feng Yu
 
亚马逊云计算Aws
亚马逊云计算Aws亚马逊云计算Aws
亚马逊云计算Aws锐 张
 
分布式文件实践经验交流
分布式文件实践经验交流分布式文件实践经验交流
分布式文件实践经验交流凯 李
 

Ähnlich wie Dynamo db (17)

改善Programmer生活的sql技能
改善Programmer生活的sql技能改善Programmer生活的sql技能
改善Programmer生活的sql技能
 
Something about Kafka - Why Kafka is so fast
Something about Kafka - Why Kafka is so fastSomething about Kafka - Why Kafka is so fast
Something about Kafka - Why Kafka is so fast
 
AWS_Educate_Team_SCU_Volunteer_Training_0923
AWS_Educate_Team_SCU_Volunteer_Training_0923AWS_Educate_Team_SCU_Volunteer_Training_0923
AWS_Educate_Team_SCU_Volunteer_Training_0923
 
Exadata那点事
Exadata那点事Exadata那点事
Exadata那点事
 
基于My sql的分布式数据库实践
基于My sql的分布式数据库实践基于My sql的分布式数据库实践
基于My sql的分布式数据库实践
 
基于MySQL的分布式数据库实践
基于MySQL的分布式数据库实践基于MySQL的分布式数据库实践
基于MySQL的分布式数据库实践
 
Level db
Level dbLevel db
Level db
 
開放原始碼 Ch2.4 app - oss - db (ver 1.0)
開放原始碼 Ch2.4   app - oss - db (ver 1.0)開放原始碼 Ch2.4   app - oss - db (ver 1.0)
開放原始碼 Ch2.4 app - oss - db (ver 1.0)
 
Google LevelDB Study Discuss
Google LevelDB Study DiscussGoogle LevelDB Study Discuss
Google LevelDB Study Discuss
 
KSDG BaaS Intro
KSDG BaaS IntroKSDG BaaS Intro
KSDG BaaS Intro
 
Databases on AWS
Databases on AWSDatabases on AWS
Databases on AWS
 
分布式Key Value Store漫谈
分布式Key Value Store漫谈分布式Key Value Store漫谈
分布式Key Value Store漫谈
 
分布式Key-value漫谈
分布式Key-value漫谈分布式Key-value漫谈
分布式Key-value漫谈
 
Introduction to big data
Introduction to big dataIntroduction to big data
Introduction to big data
 
MySQL和IO(下)
MySQL和IO(下)MySQL和IO(下)
MySQL和IO(下)
 
亚马逊云计算Aws
亚马逊云计算Aws亚马逊云计算Aws
亚马逊云计算Aws
 
分布式文件实践经验交流
分布式文件实践经验交流分布式文件实践经验交流
分布式文件实践经验交流
 

Mehr von Andy Dai

Grpc + python.key
Grpc + python.keyGrpc + python.key
Grpc + python.keyAndy Dai
 
該怎麼樣(認真的)部署你的 Python Web 應用程式?
該怎麼樣(認真的)部署你的 Python Web 應用程式?該怎麼樣(認真的)部署你的 Python Web 應用程式?
該怎麼樣(認真的)部署你的 Python Web 應用程式?Andy Dai
 
Power UP your CLI
Power UP your CLIPower UP your CLI
Power UP your CLIAndy Dai
 
Search search search
Search search searchSearch search search
Search search searchAndy Dai
 
Django channels
Django channelsDjango channels
Django channelsAndy Dai
 
Django Third party packages
Django Third party packagesDjango Third party packages
Django Third party packagesAndy Dai
 
Practical django secuirty
Practical django secuirtyPractical django secuirty
Practical django secuirtyAndy Dai
 
總之來講講 Search
總之來講講 Search總之來講講 Search
總之來講講 SearchAndy Dai
 
Python web meetup 11 18
Python web meetup 11 18Python web meetup 11 18
Python web meetup 11 18Andy Dai
 
Django in heavy load environment
Django in heavy load environmentDjango in heavy load environment
Django in heavy load environmentAndy Dai
 
電腦不只會幫你選土豆,還會幫你選新聞
電腦不只會幫你選土豆,還會幫你選新聞電腦不只會幫你選土豆,還會幫你選新聞
電腦不只會幫你選土豆,還會幫你選新聞Andy Dai
 
用 Python 打造你自己的 summly
用 Python 打造你自己的 summly用 Python 打造你自己的 summly
用 Python 打造你自己的 summlyAndy Dai
 
Tradeoffs of replacing core components
Tradeoffs of replacing core componentsTradeoffs of replacing core components
Tradeoffs of replacing core componentsAndy Dai
 
ElastiCache
ElastiCacheElastiCache
ElastiCacheAndy Dai
 
Django deploy
Django deployDjango deploy
Django deployAndy Dai
 
Build your own trello witihin 100 LOC (with Meteor)
Build your own trello witihin 100 LOC (with Meteor)Build your own trello witihin 100 LOC (with Meteor)
Build your own trello witihin 100 LOC (with Meteor)Andy Dai
 
Boost your django admin with Grappelli
Boost your django admin with GrappelliBoost your django admin with Grappelli
Boost your django admin with GrappelliAndy Dai
 

Mehr von Andy Dai (17)

Grpc + python.key
Grpc + python.keyGrpc + python.key
Grpc + python.key
 
該怎麼樣(認真的)部署你的 Python Web 應用程式?
該怎麼樣(認真的)部署你的 Python Web 應用程式?該怎麼樣(認真的)部署你的 Python Web 應用程式?
該怎麼樣(認真的)部署你的 Python Web 應用程式?
 
Power UP your CLI
Power UP your CLIPower UP your CLI
Power UP your CLI
 
Search search search
Search search searchSearch search search
Search search search
 
Django channels
Django channelsDjango channels
Django channels
 
Django Third party packages
Django Third party packagesDjango Third party packages
Django Third party packages
 
Practical django secuirty
Practical django secuirtyPractical django secuirty
Practical django secuirty
 
總之來講講 Search
總之來講講 Search總之來講講 Search
總之來講講 Search
 
Python web meetup 11 18
Python web meetup 11 18Python web meetup 11 18
Python web meetup 11 18
 
Django in heavy load environment
Django in heavy load environmentDjango in heavy load environment
Django in heavy load environment
 
電腦不只會幫你選土豆,還會幫你選新聞
電腦不只會幫你選土豆,還會幫你選新聞電腦不只會幫你選土豆,還會幫你選新聞
電腦不只會幫你選土豆,還會幫你選新聞
 
用 Python 打造你自己的 summly
用 Python 打造你自己的 summly用 Python 打造你自己的 summly
用 Python 打造你自己的 summly
 
Tradeoffs of replacing core components
Tradeoffs of replacing core componentsTradeoffs of replacing core components
Tradeoffs of replacing core components
 
ElastiCache
ElastiCacheElastiCache
ElastiCache
 
Django deploy
Django deployDjango deploy
Django deploy
 
Build your own trello witihin 100 LOC (with Meteor)
Build your own trello witihin 100 LOC (with Meteor)Build your own trello witihin 100 LOC (with Meteor)
Build your own trello witihin 100 LOC (with Meteor)
 
Boost your django admin with Grappelli
Boost your django admin with GrappelliBoost your django admin with Grappelli
Boost your django admin with Grappelli
 

Dynamo db

  • 2. What is DynamoDB • 讓我們來看一段官方介紹影片 13年9月22⽇日星期⽇日
  • 3. What is DynamoDB • Managed NoSQL database service • Features • Schemaless • Fast - SSD •Reserved IOPS for R/W 13年9月22⽇日星期⽇日
  • 4. Data Model • Table - collection of items • Items - Any number of attributes, up to 64k 13年9月22⽇日星期⽇日
  • 5. Data Model • No schema - Just provide PK • Items are indexed by PK • Single hash key & composite key 13年9月22⽇日星期⽇日
  • 6. Working with Tables • Specifying PK • Hash PK - ex. ProductID • Hash and Range PK - ex. ForumName and Subject • Specifying Read/Write requirements 13年9月22⽇日星期⽇日
  • 7. R/W Requirements • Read capacity units • Strongly consistent read per second of items up to 4KB 13年9月22⽇日星期⽇日
  • 8. R/W Requirements • Write capacity units • The number of 1KB writes per second 13年9月22⽇日星期⽇日
  • 9. Pricing • Based on Provisioned Throughput Capacity + Indexed Storages 13年9月22⽇日星期⽇日
  • 10. Working with Items • Documentations 13年9月22⽇日星期⽇日
  • 12. Query • A Query operation directly accesses items from a table using the table primary key, , or from an index using the index key. • Example 13年9月22⽇日星期⽇日
  • 13. Scan • The Scan operation returns one or more items and item attributes by accessing every item in the table.To have Amazon DynamoDB return fewer items, you can provide a ScanFilter. • Example 13年9月22⽇日星期⽇日
  • 14. Query & Scan cost • For Query, all items returned are treated as a single read operation. As a result, Amazon DynamoDB computes the total size of all items and then rounds up to the next 4 KB boundary. • In the case of a Scan operation,Amazon DynamoDB considers the size of the items that are evaluated. 13年9月22⽇日星期⽇日
  • 15. Reference • Getting Started • Local Secondary Index • Best Practice 13年9月22⽇日星期⽇日
  • 17. When to use DynamoDB? • If your application can fit into DynamoDB... • If you hate to tune the database... 13年9月22⽇日星期⽇日