SlideShare a Scribd company logo
Intro
Amazon Dynamo DB
2
▪ Amazon DynamoDB is a fully managed NoSQL
database service that allows to create database
tables that can store and retrieve any amount of
data.
▪ It automatically manages the data traffic of tables
over multiple servers and maintains performance.
▪ It also relieves the customers from the burden of
operating and scaling a distributed database.
▪ Hence, hardware provisioning, setup,
configuration, replication, software patching,
cluster scaling, etc. is managed by Amazon.
Benefits of AWS Dynamo DB
3
▪ Scalable − Amazon DynamoDB is designed to scale.There is no need
to worry about predefined limits to the amount of data each table can
store. Any amount of data can be stored and retrieved. DynamoDB
will spread automatically with the amount of data stored as the table
grows.
▪ Fast − Amazon DynamoDB provides high throughput at very low
latency. As datasets grow, latencies remain stable due to the
distributed nature of DynamoDB's data placement and request
routing algorithms.
▪ Durable and highly available − Amazon DynamoDB replicates data
over at least 3 different data centers’ results.The system operates
and serves data even under various failure conditions.
▪ Flexible: Amazon DynamoDB allows creation of dynamic tables, i.e.
the table can have any number of attributes, including multi-valued
attributes.
▪ Cost-effective: Payment is for what we use without any minimum
charges. Its pricing structure is simple and easy to calculate.
Create DynamoDB Table
4
▪ Step 1: Create a NoSQLTable
▪ In this step, you will use the DynamoDB console to create a
table.
– In the DynamoDB console, choose Create table.
Create DynamoDB Table
5
– We will use a music library as our use case for this tutorial. In theTable
name box, type Music.
Create DynamoDB Table
6
– The partition key is used to spread data across partitions for scalability.
It’s important to choose an attribute with a wide range of values and that
is likely to have evenly distributed access patterns.Type Artist in
the Partition key box.
Create DynamoDB Table
7
– Because each artist may write many songs, you can enable easy sorting
with a sort key. Select the Add sort key check box.Type songTitle in
the Add sort key box.
Create DynamoDB Table
8
– Next, you will enable DynamoDB auto scaling for your table.
– DynamoDB auto scaling will change the read and write capacity of your
table based on request volume. Using anAWS Identity and Access
Management (AWS IAM) role called DynamoDBAutoscaleRole,
DynamoDB will manage the auto scaling process on your behalf.
DynamoDB creates this role for you the first time you enable auto scaling
in an account.
– Instruct DynamoDB to create the role by clearing the Use default
settings check box.
Create DynamoDB Table
9
– Scroll down the screen past Secondary indexes, Provisioned capacity,
andAuto Scaling to the Create button.We won't change these settings for
the tutorial.
– In the Auto Scaling section, notice that DynamoDB will create
the DynamoDBAutoscaleRole role for you.
– Now choose Create.
– When the Music table is ready to use, it appears in the table list with
a check box .
– Congratulations!You have created a NoSQL table using the DynamoDB
console.
Managing Indexes
10
▪ Indexes give you access to alternate query patterns, and can
speed up queries.This section compares and contrasts index
creation and usage in SQL and DynamoDB.
▪ Whether you are using a relational database or DynamoDB, you
should be judicious with index creation.
▪ Whenever a write occurs on a table, all of the table's indexes
must be updated.
▪ In a write-heavy environment with large tables, this can
consume large amounts of system resources.
▪ In a read-only or read-mostly environment, this is not as much
of a concern—however, you should ensure that the indexes are
actually being used by your application, and not simply taking
up space.
Creating an Index
11
▪ In DynamoDB, you can create and use a secondary index for
similar purposes.
▪ Indexes in DynamoDB are different from their relational
counterparts.When you create a secondary index, you must
specify its key attributes – a partition key and a sort key. After
you create the secondary index, you can Query it or Scan it just
as you would with a table. DynamoDB does not have a query
optimizer, so a secondary index is only used when you Query it
or Scan it.
▪ DynamoDB supports two different kinds of indexes:
– Global secondary indexes –The primary key of the index can be any two
attributes from its table.
– Local secondary indexes –The partition key of the index must be the
same as the partition key of its table. However, the sort key can be any
other attribute.
DynamoDB Query
12
▪ Allow you to find items using only primary key values from
table or secondary index
▪ Benefits:
– Returns the item matching the primary key search
– Much more efficiency because it searches indexes only
– Returns all attributes of an item, or only the ones you want
– Is eventually consistent by default but can request a consistent read
– Can use conditional operators and filters to return precise results
DynamoDB Scan
13
▪ Reads every item in the table and is operationally inefficient
▪ Looks for all items and attributes in a table by default
▪ Benefits;
– Scans can apply filters to the results to refine values
– Can return only specific attributes with
the ProjectionExpression parameter
▪ Negatives:
– The larger the data set in the table the slower performance of
a scan
– The more filters on the scan the slower the performance
– Returns only filtered results
– Only eventually consistent reads are available
DynamoDB Scans – If you must
use them
14
▪ What you should keep in mind:
– You can reduce Page Size of an operation with
the Limit parameter, to limit how much data you try to
retrieve at the same time
– Avoid performing Scans on mission-critical tables
– Program your application logic to retry any requests that
receives a response code saying that you exceeded
provisioned throughput (or increase throughput)
DynamoDB & Provisioned
Throughput
15
DynamoDB & Provisioned
Throughput
16
▪ DynamoDB auto scaling actively manages throughput capacity for
tables and global secondary indexes. With auto scaling, you define a
range (upper and lower limits) for read and write capacity units.
▪ You also define a target utilization percentage within that range.
DynamoDB auto scaling seeks to maintain your target utilization,
even as your application workload increases or decreases.
▪ With DynamoDB auto scaling, a table or a global secondary index
can increase its provisioned read and write capacity to handle
sudden increases in traffic, without request throttling.
▪ When the workload decreases, DynamoDB auto scaling can
decrease the throughput so that you don't pay for unused
provisioned capacity.
DynamoDB & Provisioned
Throughput
17
▪ If you aren't using DynamoDB auto scaling, you have to manually define
your throughput requirements. Provisioned throughput is the maximum
amount of capacity that an application can consume from a table or index.
If your application exceeds your provisioned throughput settings, it is
subject to request throttling.
▪ For example, suppose that you want to read 80 items per second from a
table.The items are 3 KB in size, and you want strongly consistent reads.
For this scenario, each read requires one provisioned read capacity unit.To
determine this, you divide the item size of the operation by 4 KB, and then
round up to the nearest whole number, as in this example:
▪ 3 KB / 4 KB = 0.75, or 1 read capacity unit
▪ For this scenario, you have to set the table's provisioned read throughput to
80 read capacity units:
▪ 1 read capacity unit per item × 80 reads per second = 80 read capacity units
DynamoDB & Provisioned
Throughput
18
▪ Now suppose that you want to write 100 items per second to
your table, and that the items are 512 bytes in size. For this
scenario, each write requires one provisioned write capacity
unit.To determine this, you divide the item size of the
operation by 1 KB, and then round up to the nearest whole
number:
▪ 512 bytes / 1 KB = 0.5, or 1
▪ For this scenario, you would want to set the table's provisioned
write throughput to 100 write capacity units:
▪ 1 write capacity unit per item × 100 writes per second
= 100 write capacity units
Summary
19

More Related Content

What's hot

Introducing DynamoDB
Introducing DynamoDBIntroducing DynamoDB
Introducing DynamoDB
Amazon Web Services
 
Amazon DynamoDB 深入探討
Amazon DynamoDB 深入探討Amazon DynamoDB 深入探討
Amazon DynamoDB 深入探討
Amazon Web Services
 
Deep Dive on Amazon DynamoDB
Deep Dive on Amazon DynamoDBDeep Dive on Amazon DynamoDB
Deep Dive on Amazon DynamoDB
Amazon Web Services
 
Deep Dive on Amazon DynamoDB
Deep Dive on Amazon DynamoDBDeep Dive on Amazon DynamoDB
Deep Dive on Amazon DynamoDB
Amazon Web Services
 
Introduction to Amazon DynamoDB
Introduction to Amazon DynamoDBIntroduction to Amazon DynamoDB
Introduction to Amazon DynamoDB
Amazon Web Services
 
AWS DynamoDB and Schema Design
AWS DynamoDB and Schema DesignAWS DynamoDB and Schema Design
AWS DynamoDB and Schema Design
Amazon Web Services
 
Deep Dive into DynamoDB
Deep Dive into DynamoDBDeep Dive into DynamoDB
Deep Dive into DynamoDB
AWS Germany
 
Amazon DynamoDB Workshop
Amazon DynamoDB WorkshopAmazon DynamoDB Workshop
Amazon DynamoDB Workshop
Amazon Web Services
 
Amazon DynamoDB Lessen's Learned by Beginner
Amazon DynamoDB Lessen's Learned by BeginnerAmazon DynamoDB Lessen's Learned by Beginner
Amazon DynamoDB Lessen's Learned by Beginner
Hirokazu Tokuno
 
Deep Dive on Amazon DynamoDB
Deep Dive on Amazon DynamoDBDeep Dive on Amazon DynamoDB
Deep Dive on Amazon DynamoDB
Amazon Web Services
 
(DAT201) Introduction to Amazon Redshift
(DAT201) Introduction to Amazon Redshift(DAT201) Introduction to Amazon Redshift
(DAT201) Introduction to Amazon Redshift
Amazon Web Services
 
Deep Dive on Amazon DynamoDB - AWS Online Tech Talks
Deep Dive on Amazon DynamoDB - AWS Online Tech TalksDeep Dive on Amazon DynamoDB - AWS Online Tech Talks
Deep Dive on Amazon DynamoDB - AWS Online Tech Talks
Amazon Web Services
 
AWS (Amazon Redshift) presentation
AWS (Amazon Redshift) presentationAWS (Amazon Redshift) presentation
AWS (Amazon Redshift) presentationVolodymyr Rovetskiy
 
AWS re:Invent 2016: Deep Dive on Amazon DynamoDB (DAT304)
AWS re:Invent 2016: Deep Dive on Amazon DynamoDB (DAT304)AWS re:Invent 2016: Deep Dive on Amazon DynamoDB (DAT304)
AWS re:Invent 2016: Deep Dive on Amazon DynamoDB (DAT304)
Amazon Web Services
 
Amazon Dynamo DB for Developers (김일호) - AWS DB Day
Amazon Dynamo DB for Developers (김일호) - AWS DB DayAmazon Dynamo DB for Developers (김일호) - AWS DB Day
Amazon Dynamo DB for Developers (김일호) - AWS DB Day
Amazon Web Services Korea
 
AWS July Webinar Series: Amazon Redshift Optimizing Performance
AWS July Webinar Series: Amazon Redshift Optimizing PerformanceAWS July Webinar Series: Amazon Redshift Optimizing Performance
AWS July Webinar Series: Amazon Redshift Optimizing Performance
Amazon Web Services
 
Amazon Redshift Masterclass
Amazon Redshift MasterclassAmazon Redshift Masterclass
Amazon Redshift Masterclass
Amazon Web Services
 
Amazon Redshift: Performance Tuning and Optimization
Amazon Redshift: Performance Tuning and OptimizationAmazon Redshift: Performance Tuning and Optimization
Amazon Redshift: Performance Tuning and Optimization
Amazon Web Services
 
Getting Strated with Amazon Dynamo DB (Jim Scharf) - AWS DB Day
Getting Strated with Amazon Dynamo DB (Jim Scharf) - AWS DB DayGetting Strated with Amazon Dynamo DB (Jim Scharf) - AWS DB Day
Getting Strated with Amazon Dynamo DB (Jim Scharf) - AWS DB Day
Amazon Web Services Korea
 
AWS June Webinar Series - Getting Started: Amazon Redshift
AWS June Webinar Series - Getting Started: Amazon RedshiftAWS June Webinar Series - Getting Started: Amazon Redshift
AWS June Webinar Series - Getting Started: Amazon Redshift
Amazon Web Services
 

What's hot (20)

Introducing DynamoDB
Introducing DynamoDBIntroducing DynamoDB
Introducing DynamoDB
 
Amazon DynamoDB 深入探討
Amazon DynamoDB 深入探討Amazon DynamoDB 深入探討
Amazon DynamoDB 深入探討
 
Deep Dive on Amazon DynamoDB
Deep Dive on Amazon DynamoDBDeep Dive on Amazon DynamoDB
Deep Dive on Amazon DynamoDB
 
Deep Dive on Amazon DynamoDB
Deep Dive on Amazon DynamoDBDeep Dive on Amazon DynamoDB
Deep Dive on Amazon DynamoDB
 
Introduction to Amazon DynamoDB
Introduction to Amazon DynamoDBIntroduction to Amazon DynamoDB
Introduction to Amazon DynamoDB
 
AWS DynamoDB and Schema Design
AWS DynamoDB and Schema DesignAWS DynamoDB and Schema Design
AWS DynamoDB and Schema Design
 
Deep Dive into DynamoDB
Deep Dive into DynamoDBDeep Dive into DynamoDB
Deep Dive into DynamoDB
 
Amazon DynamoDB Workshop
Amazon DynamoDB WorkshopAmazon DynamoDB Workshop
Amazon DynamoDB Workshop
 
Amazon DynamoDB Lessen's Learned by Beginner
Amazon DynamoDB Lessen's Learned by BeginnerAmazon DynamoDB Lessen's Learned by Beginner
Amazon DynamoDB Lessen's Learned by Beginner
 
Deep Dive on Amazon DynamoDB
Deep Dive on Amazon DynamoDBDeep Dive on Amazon DynamoDB
Deep Dive on Amazon DynamoDB
 
(DAT201) Introduction to Amazon Redshift
(DAT201) Introduction to Amazon Redshift(DAT201) Introduction to Amazon Redshift
(DAT201) Introduction to Amazon Redshift
 
Deep Dive on Amazon DynamoDB - AWS Online Tech Talks
Deep Dive on Amazon DynamoDB - AWS Online Tech TalksDeep Dive on Amazon DynamoDB - AWS Online Tech Talks
Deep Dive on Amazon DynamoDB - AWS Online Tech Talks
 
AWS (Amazon Redshift) presentation
AWS (Amazon Redshift) presentationAWS (Amazon Redshift) presentation
AWS (Amazon Redshift) presentation
 
AWS re:Invent 2016: Deep Dive on Amazon DynamoDB (DAT304)
AWS re:Invent 2016: Deep Dive on Amazon DynamoDB (DAT304)AWS re:Invent 2016: Deep Dive on Amazon DynamoDB (DAT304)
AWS re:Invent 2016: Deep Dive on Amazon DynamoDB (DAT304)
 
Amazon Dynamo DB for Developers (김일호) - AWS DB Day
Amazon Dynamo DB for Developers (김일호) - AWS DB DayAmazon Dynamo DB for Developers (김일호) - AWS DB Day
Amazon Dynamo DB for Developers (김일호) - AWS DB Day
 
AWS July Webinar Series: Amazon Redshift Optimizing Performance
AWS July Webinar Series: Amazon Redshift Optimizing PerformanceAWS July Webinar Series: Amazon Redshift Optimizing Performance
AWS July Webinar Series: Amazon Redshift Optimizing Performance
 
Amazon Redshift Masterclass
Amazon Redshift MasterclassAmazon Redshift Masterclass
Amazon Redshift Masterclass
 
Amazon Redshift: Performance Tuning and Optimization
Amazon Redshift: Performance Tuning and OptimizationAmazon Redshift: Performance Tuning and Optimization
Amazon Redshift: Performance Tuning and Optimization
 
Getting Strated with Amazon Dynamo DB (Jim Scharf) - AWS DB Day
Getting Strated with Amazon Dynamo DB (Jim Scharf) - AWS DB DayGetting Strated with Amazon Dynamo DB (Jim Scharf) - AWS DB Day
Getting Strated with Amazon Dynamo DB (Jim Scharf) - AWS DB Day
 
AWS June Webinar Series - Getting Started: Amazon Redshift
AWS June Webinar Series - Getting Started: Amazon RedshiftAWS June Webinar Series - Getting Started: Amazon Redshift
AWS June Webinar Series - Getting Started: Amazon Redshift
 

Similar to Dynamo db

Dynamo db pros and cons
Dynamo db  pros and consDynamo db  pros and cons
Dynamo db pros and consSaniya Khalsa
 
The Rise Of Scanamo: Async Access For DynamoDB In Scala
The Rise Of Scanamo: Async Access For DynamoDB In ScalaThe Rise Of Scanamo: Async Access For DynamoDB In Scala
The Rise Of Scanamo: Async Access For DynamoDB In Scala
Knoldus Inc.
 
Amazon DynamoDB
Amazon DynamoDBAmazon DynamoDB
Amazon DynamoDB
Kriti Katyayan
 
AWS database services
AWS database servicesAWS database services
AWS database services
Nagesh Ramamoorthy
 
The Rise of Scanamo: Async Access for DynamoDB in Scala
The Rise of Scanamo: Async Access for DynamoDB in ScalaThe Rise of Scanamo: Async Access for DynamoDB in Scala
The Rise of Scanamo: Async Access for DynamoDB in Scala
Knoldus Inc.
 
Amazon RedShift - Ianni Vamvadelis
Amazon RedShift - Ianni VamvadelisAmazon RedShift - Ianni Vamvadelis
Amazon RedShift - Ianni Vamvadelis
huguk
 
AWS re:Invent 2016| DAT318 | Migrating from RDBMS to NoSQL: How Sony Moved fr...
AWS re:Invent 2016| DAT318 | Migrating from RDBMS to NoSQL: How Sony Moved fr...AWS re:Invent 2016| DAT318 | Migrating from RDBMS to NoSQL: How Sony Moved fr...
AWS re:Invent 2016| DAT318 | Migrating from RDBMS to NoSQL: How Sony Moved fr...
Amazon Web Services
 
Databases on aws part 1
Databases on aws   part 1Databases on aws   part 1
Databases on aws part 1
Parag Patil
 
Db2 performance tuning for dummies
Db2 performance tuning for dummiesDb2 performance tuning for dummies
Db2 performance tuning for dummies
Angel Dueñas Neyra
 
GCP Data Engineer cheatsheet
GCP Data Engineer cheatsheetGCP Data Engineer cheatsheet
GCP Data Engineer cheatsheet
Guang Xu
 
Sap abap
Sap abapSap abap
Sap abap
nrj10
 
GIDS 2016 Understanding and Building No SQLs
GIDS 2016 Understanding and Building No SQLsGIDS 2016 Understanding and Building No SQLs
GIDS 2016 Understanding and Building No SQLs
techmaddy
 
Amazon Redshift 與 Amazon Redshift Spectrum 幫您建立現代化資料倉儲 (Level 300)
Amazon Redshift 與 Amazon Redshift Spectrum 幫您建立現代化資料倉儲 (Level 300)Amazon Redshift 與 Amazon Redshift Spectrum 幫您建立現代化資料倉儲 (Level 300)
Amazon Redshift 與 Amazon Redshift Spectrum 幫您建立現代化資料倉儲 (Level 300)
Amazon Web Services
 
Amazon DynamoDB by Aswin
Amazon DynamoDB by AswinAmazon DynamoDB by Aswin
Amazon DynamoDB by AswinAgate Studio
 
Gcp data engineer
Gcp data engineerGcp data engineer
Gcp data engineer
Narendranath Reddy T
 
DB2 LUW V11.1 CERTIFICATION TRAINING PART #1
DB2 LUW V11.1 CERTIFICATION TRAINING PART #1DB2 LUW V11.1 CERTIFICATION TRAINING PART #1
DB2 LUW V11.1 CERTIFICATION TRAINING PART #1
sunildupakuntla
 
Production NoSQL in an Hour: Introduction to Amazon DynamoDB (DAT101) | AWS r...
Production NoSQL in an Hour: Introduction to Amazon DynamoDB (DAT101) | AWS r...Production NoSQL in an Hour: Introduction to Amazon DynamoDB (DAT101) | AWS r...
Production NoSQL in an Hour: Introduction to Amazon DynamoDB (DAT101) | AWS r...
Amazon Web Services
 
Dynamo vs Mongo
Dynamo vs MongoDynamo vs Mongo
Dynamo vs Mongo
Amar Das
 
Compare DynamoDB vs. MongoDB
Compare DynamoDB vs. MongoDBCompare DynamoDB vs. MongoDB
Compare DynamoDB vs. MongoDB
Amar Das
 
Maximizing performance via tuning and optimization
Maximizing performance via tuning and optimizationMaximizing performance via tuning and optimization
Maximizing performance via tuning and optimization
MariaDB plc
 

Similar to Dynamo db (20)

Dynamo db pros and cons
Dynamo db  pros and consDynamo db  pros and cons
Dynamo db pros and cons
 
The Rise Of Scanamo: Async Access For DynamoDB In Scala
The Rise Of Scanamo: Async Access For DynamoDB In ScalaThe Rise Of Scanamo: Async Access For DynamoDB In Scala
The Rise Of Scanamo: Async Access For DynamoDB In Scala
 
Amazon DynamoDB
Amazon DynamoDBAmazon DynamoDB
Amazon DynamoDB
 
AWS database services
AWS database servicesAWS database services
AWS database services
 
The Rise of Scanamo: Async Access for DynamoDB in Scala
The Rise of Scanamo: Async Access for DynamoDB in ScalaThe Rise of Scanamo: Async Access for DynamoDB in Scala
The Rise of Scanamo: Async Access for DynamoDB in Scala
 
Amazon RedShift - Ianni Vamvadelis
Amazon RedShift - Ianni VamvadelisAmazon RedShift - Ianni Vamvadelis
Amazon RedShift - Ianni Vamvadelis
 
AWS re:Invent 2016| DAT318 | Migrating from RDBMS to NoSQL: How Sony Moved fr...
AWS re:Invent 2016| DAT318 | Migrating from RDBMS to NoSQL: How Sony Moved fr...AWS re:Invent 2016| DAT318 | Migrating from RDBMS to NoSQL: How Sony Moved fr...
AWS re:Invent 2016| DAT318 | Migrating from RDBMS to NoSQL: How Sony Moved fr...
 
Databases on aws part 1
Databases on aws   part 1Databases on aws   part 1
Databases on aws part 1
 
Db2 performance tuning for dummies
Db2 performance tuning for dummiesDb2 performance tuning for dummies
Db2 performance tuning for dummies
 
GCP Data Engineer cheatsheet
GCP Data Engineer cheatsheetGCP Data Engineer cheatsheet
GCP Data Engineer cheatsheet
 
Sap abap
Sap abapSap abap
Sap abap
 
GIDS 2016 Understanding and Building No SQLs
GIDS 2016 Understanding and Building No SQLsGIDS 2016 Understanding and Building No SQLs
GIDS 2016 Understanding and Building No SQLs
 
Amazon Redshift 與 Amazon Redshift Spectrum 幫您建立現代化資料倉儲 (Level 300)
Amazon Redshift 與 Amazon Redshift Spectrum 幫您建立現代化資料倉儲 (Level 300)Amazon Redshift 與 Amazon Redshift Spectrum 幫您建立現代化資料倉儲 (Level 300)
Amazon Redshift 與 Amazon Redshift Spectrum 幫您建立現代化資料倉儲 (Level 300)
 
Amazon DynamoDB by Aswin
Amazon DynamoDB by AswinAmazon DynamoDB by Aswin
Amazon DynamoDB by Aswin
 
Gcp data engineer
Gcp data engineerGcp data engineer
Gcp data engineer
 
DB2 LUW V11.1 CERTIFICATION TRAINING PART #1
DB2 LUW V11.1 CERTIFICATION TRAINING PART #1DB2 LUW V11.1 CERTIFICATION TRAINING PART #1
DB2 LUW V11.1 CERTIFICATION TRAINING PART #1
 
Production NoSQL in an Hour: Introduction to Amazon DynamoDB (DAT101) | AWS r...
Production NoSQL in an Hour: Introduction to Amazon DynamoDB (DAT101) | AWS r...Production NoSQL in an Hour: Introduction to Amazon DynamoDB (DAT101) | AWS r...
Production NoSQL in an Hour: Introduction to Amazon DynamoDB (DAT101) | AWS r...
 
Dynamo vs Mongo
Dynamo vs MongoDynamo vs Mongo
Dynamo vs Mongo
 
Compare DynamoDB vs. MongoDB
Compare DynamoDB vs. MongoDBCompare DynamoDB vs. MongoDB
Compare DynamoDB vs. MongoDB
 
Maximizing performance via tuning and optimization
Maximizing performance via tuning and optimizationMaximizing performance via tuning and optimization
Maximizing performance via tuning and optimization
 

More from Parag Patil

Aws overview part 1(iam and storage services)
Aws overview   part 1(iam and storage services)Aws overview   part 1(iam and storage services)
Aws overview part 1(iam and storage services)
Parag Patil
 
Aws overview part 2(compute services)
Aws overview   part 2(compute services)Aws overview   part 2(compute services)
Aws overview part 2(compute services)
Parag Patil
 
Aws object storage and cdn(s3, glacier and cloud front) part 1
Aws object storage and cdn(s3, glacier and cloud front)   part 1Aws object storage and cdn(s3, glacier and cloud front)   part 1
Aws object storage and cdn(s3, glacier and cloud front) part 1
Parag Patil
 
Billing & pricing
Billing & pricing Billing & pricing
Billing & pricing
Parag Patil
 
Databases overview & concepts
Databases overview & conceptsDatabases overview & concepts
Databases overview & concepts
Parag Patil
 
Spring boot-application
Spring boot-applicationSpring boot-application
Spring boot-application
Parag Patil
 
Databases on aws part 2
Databases on aws   part 2Databases on aws   part 2
Databases on aws part 2
Parag Patil
 
Aws object storage and cdn(s3, glacier and cloud front) part 2
Aws object storage and cdn(s3, glacier and cloud front)   part 2Aws object storage and cdn(s3, glacier and cloud front)   part 2
Aws object storage and cdn(s3, glacier and cloud front) part 2
Parag Patil
 
Security
SecuritySecurity
Security
Parag Patil
 
Development tools
Development toolsDevelopment tools
Development tools
Parag Patil
 
Cloud concepts-and-technologies
Cloud concepts-and-technologiesCloud concepts-and-technologies
Cloud concepts-and-technologies
Parag Patil
 
Aws overview part 3(databases, dns and management services)
Aws overview   part 3(databases, dns and management services)Aws overview   part 3(databases, dns and management services)
Aws overview part 3(databases, dns and management services)
Parag Patil
 
Word press site
Word press siteWord press site
Word press site
Parag Patil
 
Aws object storage and cdn(s3, glacier and cloud front) part 3
Aws object storage and cdn(s3, glacier and cloud front)   part 3Aws object storage and cdn(s3, glacier and cloud front)   part 3
Aws object storage and cdn(s3, glacier and cloud front) part 3
Parag Patil
 
Elastic beanstalk
Elastic beanstalkElastic beanstalk
Elastic beanstalk
Parag Patil
 
Identity access management (iam)
Identity access management (iam)Identity access management (iam)
Identity access management (iam)
Parag Patil
 

More from Parag Patil (16)

Aws overview part 1(iam and storage services)
Aws overview   part 1(iam and storage services)Aws overview   part 1(iam and storage services)
Aws overview part 1(iam and storage services)
 
Aws overview part 2(compute services)
Aws overview   part 2(compute services)Aws overview   part 2(compute services)
Aws overview part 2(compute services)
 
Aws object storage and cdn(s3, glacier and cloud front) part 1
Aws object storage and cdn(s3, glacier and cloud front)   part 1Aws object storage and cdn(s3, glacier and cloud front)   part 1
Aws object storage and cdn(s3, glacier and cloud front) part 1
 
Billing & pricing
Billing & pricing Billing & pricing
Billing & pricing
 
Databases overview & concepts
Databases overview & conceptsDatabases overview & concepts
Databases overview & concepts
 
Spring boot-application
Spring boot-applicationSpring boot-application
Spring boot-application
 
Databases on aws part 2
Databases on aws   part 2Databases on aws   part 2
Databases on aws part 2
 
Aws object storage and cdn(s3, glacier and cloud front) part 2
Aws object storage and cdn(s3, glacier and cloud front)   part 2Aws object storage and cdn(s3, glacier and cloud front)   part 2
Aws object storage and cdn(s3, glacier and cloud front) part 2
 
Security
SecuritySecurity
Security
 
Development tools
Development toolsDevelopment tools
Development tools
 
Cloud concepts-and-technologies
Cloud concepts-and-technologiesCloud concepts-and-technologies
Cloud concepts-and-technologies
 
Aws overview part 3(databases, dns and management services)
Aws overview   part 3(databases, dns and management services)Aws overview   part 3(databases, dns and management services)
Aws overview part 3(databases, dns and management services)
 
Word press site
Word press siteWord press site
Word press site
 
Aws object storage and cdn(s3, glacier and cloud front) part 3
Aws object storage and cdn(s3, glacier and cloud front)   part 3Aws object storage and cdn(s3, glacier and cloud front)   part 3
Aws object storage and cdn(s3, glacier and cloud front) part 3
 
Elastic beanstalk
Elastic beanstalkElastic beanstalk
Elastic beanstalk
 
Identity access management (iam)
Identity access management (iam)Identity access management (iam)
Identity access management (iam)
 

Recently uploaded

BEst VASHIKARAN SPECIALIST 9463629203 in UK Baba ji Love Marriage problem sol...
BEst VASHIKARAN SPECIALIST 9463629203 in UK Baba ji Love Marriage problem sol...BEst VASHIKARAN SPECIALIST 9463629203 in UK Baba ji Love Marriage problem sol...
BEst VASHIKARAN SPECIALIST 9463629203 in UK Baba ji Love Marriage problem sol...
gitapress3
 
Best Catering Event Planner Miso-Hungry.pptx
Best Catering Event Planner  Miso-Hungry.pptxBest Catering Event Planner  Miso-Hungry.pptx
Best Catering Event Planner Miso-Hungry.pptx
Miso Hungry
 
SIMBA SQUAD : Best seo company in perth
SIMBA SQUAD :  Best seo company in perthSIMBA SQUAD :  Best seo company in perth
SIMBA SQUAD : Best seo company in perth
ridebiler
 
Office Business Furnishings | Office Equipment
Office Business Furnishings |  Office EquipmentOffice Business Furnishings |  Office Equipment
Office Business Furnishings | Office Equipment
OFWD
 
Comprehensive Water Damage Restoration Services
Comprehensive Water Damage Restoration ServicesComprehensive Water Damage Restoration Services
Comprehensive Water Damage Restoration Services
kleenupdisaster
 
Elevate Your Brand with Digital Marketing for Fashion Industry
Elevate Your Brand with Digital Marketing for Fashion IndustryElevate Your Brand with Digital Marketing for Fashion Industry
Elevate Your Brand with Digital Marketing for Fashion Industry
Matebiz Pvt. Ltd
 
DOJO Training Center - Empowering Workforce Excellence
DOJO Training Center - Empowering Workforce ExcellenceDOJO Training Center - Empowering Workforce Excellence
DOJO Training Center - Empowering Workforce Excellence
Himanshu
 
Inspect Edge & NSPIRE Inspection Application - Streamline Housing Inspections
Inspect Edge & NSPIRE Inspection Application - Streamline Housing InspectionsInspect Edge & NSPIRE Inspection Application - Streamline Housing Inspections
Inspect Edge & NSPIRE Inspection Application - Streamline Housing Inspections
inspectedge1
 
Best steel industrial company LLC in UAE
Best steel industrial company LLC in UAEBest steel industrial company LLC in UAE
Best steel industrial company LLC in UAE
alafnanmetals
 
Islamabad No 1 Amil Baba In Pakistan amil baba kala ilm.docx
Islamabad No 1 Amil Baba In Pakistan amil baba kala ilm.docxIslamabad No 1 Amil Baba In Pakistan amil baba kala ilm.docx
Islamabad No 1 Amil Baba In Pakistan amil baba kala ilm.docx
amilabibi1
 
Solar Panel For Home Price List In india
Solar Panel For Home Price List In indiaSolar Panel For Home Price List In india
Solar Panel For Home Price List In india
janhaviconaxweb
 
What Are the Latest Trends in Endpoint Security for 2024?
What Are the Latest Trends in Endpoint Security for 2024?What Are the Latest Trends in Endpoint Security for 2024?
What Are the Latest Trends in Endpoint Security for 2024?
VRS Technologies
 
Nature’s Paradise Glamorous And Sustainable Designs For Your Outdoor Living S...
Nature’s Paradise Glamorous And Sustainable Designs For Your Outdoor Living S...Nature’s Paradise Glamorous And Sustainable Designs For Your Outdoor Living S...
Nature’s Paradise Glamorous And Sustainable Designs For Your Outdoor Living S...
Landscape Express
 
BesT panDit Ji LoVe problem solution 9463629203 UK uSA California New Zealand...
BesT panDit Ji LoVe problem solution 9463629203 UK uSA California New Zealand...BesT panDit Ji LoVe problem solution 9463629203 UK uSA California New Zealand...
BesT panDit Ji LoVe problem solution 9463629203 UK uSA California New Zealand...
gitapress3
 
Maximizing Efficiency with Integrated Water Management Systems
Maximizing Efficiency with Integrated Water Management SystemsMaximizing Efficiency with Integrated Water Management Systems
Maximizing Efficiency with Integrated Water Management Systems
Irri Design Studio
 
Delightful Finds: Unveiling the Power of Gifts Under 100
Delightful Finds: Unveiling the Power of Gifts Under 100Delightful Finds: Unveiling the Power of Gifts Under 100
Delightful Finds: Unveiling the Power of Gifts Under 100
JoyTree Global
 
Get your dream bridal look with top North Indian makeup artist - Pallavi Kadale
Get your dream bridal look with top North Indian makeup artist - Pallavi KadaleGet your dream bridal look with top North Indian makeup artist - Pallavi Kadale
Get your dream bridal look with top North Indian makeup artist - Pallavi Kadale
Pallavi Makeup Artist
 
How Does Littering Affect the Environment.
How Does Littering Affect the Environment.How Does Littering Affect the Environment.
How Does Littering Affect the Environment.
ClenliDirect
 
Reliable Logistics Solutions - Truxcargo
Reliable Logistics Solutions - TruxcargoReliable Logistics Solutions - Truxcargo
Reliable Logistics Solutions - Truxcargo
Truxcargo
 
Chandigarh call garal serives 9512450098
Chandigarh call garal serives 9512450098Chandigarh call garal serives 9512450098
Chandigarh call garal serives 9512450098
Chandigarh export services garal
 

Recently uploaded (20)

BEst VASHIKARAN SPECIALIST 9463629203 in UK Baba ji Love Marriage problem sol...
BEst VASHIKARAN SPECIALIST 9463629203 in UK Baba ji Love Marriage problem sol...BEst VASHIKARAN SPECIALIST 9463629203 in UK Baba ji Love Marriage problem sol...
BEst VASHIKARAN SPECIALIST 9463629203 in UK Baba ji Love Marriage problem sol...
 
Best Catering Event Planner Miso-Hungry.pptx
Best Catering Event Planner  Miso-Hungry.pptxBest Catering Event Planner  Miso-Hungry.pptx
Best Catering Event Planner Miso-Hungry.pptx
 
SIMBA SQUAD : Best seo company in perth
SIMBA SQUAD :  Best seo company in perthSIMBA SQUAD :  Best seo company in perth
SIMBA SQUAD : Best seo company in perth
 
Office Business Furnishings | Office Equipment
Office Business Furnishings |  Office EquipmentOffice Business Furnishings |  Office Equipment
Office Business Furnishings | Office Equipment
 
Comprehensive Water Damage Restoration Services
Comprehensive Water Damage Restoration ServicesComprehensive Water Damage Restoration Services
Comprehensive Water Damage Restoration Services
 
Elevate Your Brand with Digital Marketing for Fashion Industry
Elevate Your Brand with Digital Marketing for Fashion IndustryElevate Your Brand with Digital Marketing for Fashion Industry
Elevate Your Brand with Digital Marketing for Fashion Industry
 
DOJO Training Center - Empowering Workforce Excellence
DOJO Training Center - Empowering Workforce ExcellenceDOJO Training Center - Empowering Workforce Excellence
DOJO Training Center - Empowering Workforce Excellence
 
Inspect Edge & NSPIRE Inspection Application - Streamline Housing Inspections
Inspect Edge & NSPIRE Inspection Application - Streamline Housing InspectionsInspect Edge & NSPIRE Inspection Application - Streamline Housing Inspections
Inspect Edge & NSPIRE Inspection Application - Streamline Housing Inspections
 
Best steel industrial company LLC in UAE
Best steel industrial company LLC in UAEBest steel industrial company LLC in UAE
Best steel industrial company LLC in UAE
 
Islamabad No 1 Amil Baba In Pakistan amil baba kala ilm.docx
Islamabad No 1 Amil Baba In Pakistan amil baba kala ilm.docxIslamabad No 1 Amil Baba In Pakistan amil baba kala ilm.docx
Islamabad No 1 Amil Baba In Pakistan amil baba kala ilm.docx
 
Solar Panel For Home Price List In india
Solar Panel For Home Price List In indiaSolar Panel For Home Price List In india
Solar Panel For Home Price List In india
 
What Are the Latest Trends in Endpoint Security for 2024?
What Are the Latest Trends in Endpoint Security for 2024?What Are the Latest Trends in Endpoint Security for 2024?
What Are the Latest Trends in Endpoint Security for 2024?
 
Nature’s Paradise Glamorous And Sustainable Designs For Your Outdoor Living S...
Nature’s Paradise Glamorous And Sustainable Designs For Your Outdoor Living S...Nature’s Paradise Glamorous And Sustainable Designs For Your Outdoor Living S...
Nature’s Paradise Glamorous And Sustainable Designs For Your Outdoor Living S...
 
BesT panDit Ji LoVe problem solution 9463629203 UK uSA California New Zealand...
BesT panDit Ji LoVe problem solution 9463629203 UK uSA California New Zealand...BesT panDit Ji LoVe problem solution 9463629203 UK uSA California New Zealand...
BesT panDit Ji LoVe problem solution 9463629203 UK uSA California New Zealand...
 
Maximizing Efficiency with Integrated Water Management Systems
Maximizing Efficiency with Integrated Water Management SystemsMaximizing Efficiency with Integrated Water Management Systems
Maximizing Efficiency with Integrated Water Management Systems
 
Delightful Finds: Unveiling the Power of Gifts Under 100
Delightful Finds: Unveiling the Power of Gifts Under 100Delightful Finds: Unveiling the Power of Gifts Under 100
Delightful Finds: Unveiling the Power of Gifts Under 100
 
Get your dream bridal look with top North Indian makeup artist - Pallavi Kadale
Get your dream bridal look with top North Indian makeup artist - Pallavi KadaleGet your dream bridal look with top North Indian makeup artist - Pallavi Kadale
Get your dream bridal look with top North Indian makeup artist - Pallavi Kadale
 
How Does Littering Affect the Environment.
How Does Littering Affect the Environment.How Does Littering Affect the Environment.
How Does Littering Affect the Environment.
 
Reliable Logistics Solutions - Truxcargo
Reliable Logistics Solutions - TruxcargoReliable Logistics Solutions - Truxcargo
Reliable Logistics Solutions - Truxcargo
 
Chandigarh call garal serives 9512450098
Chandigarh call garal serives 9512450098Chandigarh call garal serives 9512450098
Chandigarh call garal serives 9512450098
 

Dynamo db

  • 2. Amazon Dynamo DB 2 ▪ Amazon DynamoDB is a fully managed NoSQL database service that allows to create database tables that can store and retrieve any amount of data. ▪ It automatically manages the data traffic of tables over multiple servers and maintains performance. ▪ It also relieves the customers from the burden of operating and scaling a distributed database. ▪ Hence, hardware provisioning, setup, configuration, replication, software patching, cluster scaling, etc. is managed by Amazon.
  • 3. Benefits of AWS Dynamo DB 3 ▪ Scalable − Amazon DynamoDB is designed to scale.There is no need to worry about predefined limits to the amount of data each table can store. Any amount of data can be stored and retrieved. DynamoDB will spread automatically with the amount of data stored as the table grows. ▪ Fast − Amazon DynamoDB provides high throughput at very low latency. As datasets grow, latencies remain stable due to the distributed nature of DynamoDB's data placement and request routing algorithms. ▪ Durable and highly available − Amazon DynamoDB replicates data over at least 3 different data centers’ results.The system operates and serves data even under various failure conditions. ▪ Flexible: Amazon DynamoDB allows creation of dynamic tables, i.e. the table can have any number of attributes, including multi-valued attributes. ▪ Cost-effective: Payment is for what we use without any minimum charges. Its pricing structure is simple and easy to calculate.
  • 4. Create DynamoDB Table 4 ▪ Step 1: Create a NoSQLTable ▪ In this step, you will use the DynamoDB console to create a table. – In the DynamoDB console, choose Create table.
  • 5. Create DynamoDB Table 5 – We will use a music library as our use case for this tutorial. In theTable name box, type Music.
  • 6. Create DynamoDB Table 6 – The partition key is used to spread data across partitions for scalability. It’s important to choose an attribute with a wide range of values and that is likely to have evenly distributed access patterns.Type Artist in the Partition key box.
  • 7. Create DynamoDB Table 7 – Because each artist may write many songs, you can enable easy sorting with a sort key. Select the Add sort key check box.Type songTitle in the Add sort key box.
  • 8. Create DynamoDB Table 8 – Next, you will enable DynamoDB auto scaling for your table. – DynamoDB auto scaling will change the read and write capacity of your table based on request volume. Using anAWS Identity and Access Management (AWS IAM) role called DynamoDBAutoscaleRole, DynamoDB will manage the auto scaling process on your behalf. DynamoDB creates this role for you the first time you enable auto scaling in an account. – Instruct DynamoDB to create the role by clearing the Use default settings check box.
  • 9. Create DynamoDB Table 9 – Scroll down the screen past Secondary indexes, Provisioned capacity, andAuto Scaling to the Create button.We won't change these settings for the tutorial. – In the Auto Scaling section, notice that DynamoDB will create the DynamoDBAutoscaleRole role for you. – Now choose Create. – When the Music table is ready to use, it appears in the table list with a check box . – Congratulations!You have created a NoSQL table using the DynamoDB console.
  • 10. Managing Indexes 10 ▪ Indexes give you access to alternate query patterns, and can speed up queries.This section compares and contrasts index creation and usage in SQL and DynamoDB. ▪ Whether you are using a relational database or DynamoDB, you should be judicious with index creation. ▪ Whenever a write occurs on a table, all of the table's indexes must be updated. ▪ In a write-heavy environment with large tables, this can consume large amounts of system resources. ▪ In a read-only or read-mostly environment, this is not as much of a concern—however, you should ensure that the indexes are actually being used by your application, and not simply taking up space.
  • 11. Creating an Index 11 ▪ In DynamoDB, you can create and use a secondary index for similar purposes. ▪ Indexes in DynamoDB are different from their relational counterparts.When you create a secondary index, you must specify its key attributes – a partition key and a sort key. After you create the secondary index, you can Query it or Scan it just as you would with a table. DynamoDB does not have a query optimizer, so a secondary index is only used when you Query it or Scan it. ▪ DynamoDB supports two different kinds of indexes: – Global secondary indexes –The primary key of the index can be any two attributes from its table. – Local secondary indexes –The partition key of the index must be the same as the partition key of its table. However, the sort key can be any other attribute.
  • 12. DynamoDB Query 12 ▪ Allow you to find items using only primary key values from table or secondary index ▪ Benefits: – Returns the item matching the primary key search – Much more efficiency because it searches indexes only – Returns all attributes of an item, or only the ones you want – Is eventually consistent by default but can request a consistent read – Can use conditional operators and filters to return precise results
  • 13. DynamoDB Scan 13 ▪ Reads every item in the table and is operationally inefficient ▪ Looks for all items and attributes in a table by default ▪ Benefits; – Scans can apply filters to the results to refine values – Can return only specific attributes with the ProjectionExpression parameter ▪ Negatives: – The larger the data set in the table the slower performance of a scan – The more filters on the scan the slower the performance – Returns only filtered results – Only eventually consistent reads are available
  • 14. DynamoDB Scans – If you must use them 14 ▪ What you should keep in mind: – You can reduce Page Size of an operation with the Limit parameter, to limit how much data you try to retrieve at the same time – Avoid performing Scans on mission-critical tables – Program your application logic to retry any requests that receives a response code saying that you exceeded provisioned throughput (or increase throughput)
  • 16. DynamoDB & Provisioned Throughput 16 ▪ DynamoDB auto scaling actively manages throughput capacity for tables and global secondary indexes. With auto scaling, you define a range (upper and lower limits) for read and write capacity units. ▪ You also define a target utilization percentage within that range. DynamoDB auto scaling seeks to maintain your target utilization, even as your application workload increases or decreases. ▪ With DynamoDB auto scaling, a table or a global secondary index can increase its provisioned read and write capacity to handle sudden increases in traffic, without request throttling. ▪ When the workload decreases, DynamoDB auto scaling can decrease the throughput so that you don't pay for unused provisioned capacity.
  • 17. DynamoDB & Provisioned Throughput 17 ▪ If you aren't using DynamoDB auto scaling, you have to manually define your throughput requirements. Provisioned throughput is the maximum amount of capacity that an application can consume from a table or index. If your application exceeds your provisioned throughput settings, it is subject to request throttling. ▪ For example, suppose that you want to read 80 items per second from a table.The items are 3 KB in size, and you want strongly consistent reads. For this scenario, each read requires one provisioned read capacity unit.To determine this, you divide the item size of the operation by 4 KB, and then round up to the nearest whole number, as in this example: ▪ 3 KB / 4 KB = 0.75, or 1 read capacity unit ▪ For this scenario, you have to set the table's provisioned read throughput to 80 read capacity units: ▪ 1 read capacity unit per item × 80 reads per second = 80 read capacity units
  • 18. DynamoDB & Provisioned Throughput 18 ▪ Now suppose that you want to write 100 items per second to your table, and that the items are 512 bytes in size. For this scenario, each write requires one provisioned write capacity unit.To determine this, you divide the item size of the operation by 1 KB, and then round up to the nearest whole number: ▪ 512 bytes / 1 KB = 0.5, or 1 ▪ For this scenario, you would want to set the table's provisioned write throughput to 100 write capacity units: ▪ 1 write capacity unit per item × 100 writes per second = 100 write capacity units

Editor's Notes

  1. https://aws.amazon.com/getting-started/tutorials/create-nosql-table/
  2. https://aws.amazon.com/getting-started/tutorials/create-nosql-table/
  3. https://aws.amazon.com/getting-started/tutorials/create-nosql-table/
  4. https://aws.amazon.com/getting-started/tutorials/create-nosql-table/
  5. https://aws.amazon.com/getting-started/tutorials/create-nosql-table/
  6. https://aws.amazon.com/getting-started/tutorials/create-nosql-table/