SlideShare a Scribd company logo
Relational database service –DynamoDB
Amazon DynamoDB is a fully managed NoSQL database service that provides fast
and low-latency performance that scales with ease.
Developers can create a table in Amazon DynamoDB and write an unlimited
number of items with consistent latency.
Amazon DynamoDB can provide consistent performance levels by automatically
distributing the data and traffic for a table over multiple partitions.
To help maintain consistent, fast performance levels, all table data is stored on
high-performance SSD disk drives.
© 2020 KL University – The contents of this presentation are an intellectual and
copyrighted property of KL University.
Data Model
The basic components of the Amazon DynamoDB data model include tables, items,
and attributes.
Individual items in an Amazon DynamoDB table can have any number of attributes,
although there is a limit of 400KB on the item size.
© 2020 KL University – The contents of this presentation are an intellectual and
copyrighted property of KL University.
Data Types
Amazon DynamoDB supports a wide range of data types for attributes.
Data types fall into three major categories: Scalar, Set, or Document.
Scalar Data Types A scalar type represents exactly one value.
Amazon DynamoDB supports the following five scalar types:
String Text and variable length characters up to 400KB.
Supports Unicode with UTF8 encoding
Number Positive or negative number with up to 38 digits of precision
Binary Binary data, images, compressed objects up to 400KB in size
Boolean Binary flag representing a true or false value
Null Represents a blank, empty, or unknown state.
Note:String, Number, Binary, Boolean cannot be empty.
© 2020 KL University – The contents of this presentation are an intellectual and
copyrighted property of KL University.
Set Data Types Sets are useful to represent a unique list of one or more scalar
values. Each value in a set needs to be unique and must be the same data type.
Sets do not guarantee order. Amazon DynamoDB supports three set types:
String Set, Number Set, and Binary Set.
String Set Unique list of String attributes
Number Set Unique list of Number attributes
Binary Set Unique list of Binary attributes
Document Data Types Document type is useful to represent multiple nested
attributes, similar to the structure of a JSON file. Amazon DynamoDB supports
two document types: List and Map. Multiple Lists and Maps can be combined and
nested to create complex structures.
List Each List can be used to store an ordered list of attributes of different data types.
Map Each Map can be used to store an unordered list of key/value pairs. Maps can
be used to represent the structure of any JSON object.
© 2020 KL University – The contents of this presentation are an intellectual and
copyrighted property of KL University.
Primary Key
Amazon DynamoDB supports two types of primary keys, and this configuration
cannot be changed after a table has been created:
Partition Key The primary key is made of one attribute, a partition (or hash) key.
Amazon DynamoDB builds an unordered hash index on this primary key attribute.
Partition and Sort Key The primary key is made of two attributes. The first attribute
is the partition key and the second one is the sort (or range) key. Each item in the
table is uniquely identified by the combination of its partition and sort key values.
It is possible for two items to have the same partition key value, but those two items
must have different sort key values.
© 2020 KL University – The contents of this presentation are an intellectual and
copyrighted property of KL University.
Provisioned Capacity
When you create an Amazon DynamoDB table, you are required to provision a
certain amount of read and write capacity to handle your expected workloads.
Based on your configuration settings, DynamoDB will then provision the right
amount of infrastructure capacity to meet your requirements with sustained,
low-latency response times.
Overall capacity is measured in read and write capacity units.
These values can later be scaled up or down by using an UpdateTable action.
© 2020 KL University – The contents of this presentation are an intellectual and
copyrighted property of KL University.
Secondary Indexes
A secondary index lets you query the data in the table using an alternate key, in
Addition to queries against the primary key.
Amazon DynamoDB supports two different kinds of indexes:
Global Secondary Index The global secondary index is an index with a partition
and sort key that can be different from those on the table. You can create or
delete a global secondary index on a table at any time.
Local Secondary Index The local secondary index is an index that has the same
partition key attribute as the primary key of the table, but a different sort key.
You can only create a local secondary index when you create a table.
© 2020 KL University – The contents of this presentation are an intellectual and
copyrighted property of KL University.
Writing and Reading Data
Amazon DynamoDB also provides multiple querying options that let you search a table
or an index or retrieve back a specific item or a batch of items.
Writing Items
Amazon DynamoDB provides three primary API actions to create, update, and delete
items: PutItem, UpdateItem, and DeleteItem.
Using the PutItem action, you can create a new item with one or more attributes.
The UpdateItem action will find existing items based on the primary key and replace
the attributes. This operation can be useful to only update a single attribute and leave
the other attributes unchanged.
Finally, you can remove an item from a table by using DeleteItem and specifying a
specific primary key.
Reading Items
After an item has been created, it can be retrieved through a direct lookup by calling
the GetItem action or through a search using the Query or Scan action.
GetItem allows you to retrieve an item based on its primary key.
© 2020 KL University – The contents of this presentation are an intellectual and
copyrighted property of KL University.
Eventual Consistency
When reading items from Amazon DynamoDB, the operation can be either eventually
consistent or strongly consistent.
Eventually Consistent Reads When you read data, the response might not reflect the
results of a recently completed write operation. The response might include some stale
data. Consistency across all copies of the data is usually reached within a second; if you
repeat your read request after a short time, the response returns the latest data.
Strongly Consistent Reads When you issue a strongly consistent read request, Amazon
DynamoDB returns a response with the most up-to-date data that reflects updates by all
prior related write operations to which Amazon DynamoDB returned a successful response.
A strongly consistent read might be less available in the case of a network delay or outage.
You can request a strongly consistent read result by specifying optional parameters in your
request.
© 2020 KL University – The contents of this presentation are an intellectual and
copyrighted property of KL University.
Batch Operations
Amazon DynamoDB also provides several operations designed for working with large
Batches of items, including BatchGetItem and BatchWriteItem. Using the BatchWriteItem
action, you can perform up to 25 item creates or updates with a single operation.
Searching Items
Amazon DynamoDB also gives you two operations, Query and Scan, that can be used to
search a table or an index. A Query operation is the primary search operation you can use
to find items in a table or a secondary index using only primary key attribute values. Each
Query requires a partition key attribute name and a distinct value to search. You can
Optionally provide a sort key value and use a comparison operator to refine the search
results. Results are automatically sorted by the primary key and are limited to 1MB.
In contrast to a Query, a Scan operation will read every item in a table or a secondary index.
By default, a Scan operation returns all of the data attributes for every item in the table or
index. Each request can return up to 1MB of data. Items can be filtered out using
expressions, but this can be a resource-intensive operation. If the result set for a Query or
a Scan exceeds 1MB, you can page through the results in 1MB increments.
© 2020 KL University – The contents of this presentation are an intellectual and
copyrighted property of KL University.
Scaling and Partitioning
Amazon DynamoDB table can scale horizontally through the use of partitions to meet the
storage and performance requirements of your application.
Each individual partition represents a unit of compute and storage capacity.
As storage or capacity requirements change, Amazon DynamoDB can split a partition to
accommodate more data or higher provisioned request rates.
After a partition is split, however, it cannot be merged back together.
© 2020 KL University – The contents of this presentation are an intellectual and
copyrighted property of KL University.
Security
Amazon DynamoDB gives you granular control over the access rights and permissions
for users and administrators. Amazon DynamoDB integrates with the IAM service to
Provide strong control over permissions using policies. You can create one or more
policies that allow or deny specific operations on specific tables. You can also use
conditions to restrict access to individual items or attributes.
All operations must first be authenticated as a valid user or user session. Applications
that need to read and write from Amazon DynamoDB need to obtain a set of
temporary or permanent access control keys.
Amazon DynamoDB Streams
A common requirement for many applications is to keep track of recent changes and
then perform some kind of processing on the changed records. Amazon DynamoDB
Streams makes it easy to get a list of item modifications for the last 24-hour period.
For example, you might need to calculate metrics on a rolling basis and update a
dashboard, or maybe synchronize two tables or log activity and changes to an audit
trail. With Amazon DynamoDB Streams, these types of applications become easier
to build. © 2020 KL University – The contents of this presentation are an intellectual and
copyrighted property of KL University.

More Related Content

Similar to CO3-Session-6(AmazonDynamoDB).ppt (20)

PPTX
MongoDB Database With Docker.pptx MongoDB Database With Docker.pptx
pateljeel24
 
PPTX
DynamoDB Database Integration.pptx it's dynamodb databse related stufs
yashconestoga
 
PPTX
MongoDB - An Introduction
dinkar thakur
 
DOCX
OBIEE publisher with Report creation - Tutorial
onlinetrainingplacements
 
DOCX
Annotating search results from web databases
JPINFOTECH JAYAPRAKASH
 
PPTX
Dynamo db
Parag Patil
 
PDF
Amazon-Redshift-dBT-Best-Practices_paper.pdf
Hoang CHi THang
 
PDF
Info cube modeling_dimension_design_erada_bw_infoalert
Phani Kumar
 
PPTX
What Are the Key Steps in Scraping Product Data from Amazon India.pptx
Productdata Scrape
 
PDF
What Are the Key Steps in Scraping Product Data from Amazon India.pdf
Productdata Scrape
 
PPTX
The Rise Of Scanamo: Async Access For DynamoDB In Scala
Knoldus Inc.
 
PDF
AWS data storage Amazon S3, Amazon RDS.pdf
Datacademy.ai
 
DOCX
Annotating search results from web databases
IEEEFINALYEARPROJECTS
 
DOCX
JAVA 2013 IEEE DATAMINING PROJECT Annotating search results from web databases
IEEEGLOBALSOFTTECHNOLOGIES
 
PPTX
Introduction to MongoDB
S.Shayan Daneshvar
 
PDF
AWS MLS-C01 Exam Study Notes
Tiffany Jachja
 
PPT
No SQL and MongoDB - Hyderabad Scalability Meetup
Hyderabad Scalability Meetup
 
PDF
AWS DYNAMODB TWO CASE STUDIES.pdf
hayhadiabbas
 
ODP
The Rise of Scanamo: Async Access for DynamoDB in Scala
Knoldus Inc.
 
PDF
Ooluk Data Dictionary Manager
Siddhesh Prabhu
 
MongoDB Database With Docker.pptx MongoDB Database With Docker.pptx
pateljeel24
 
DynamoDB Database Integration.pptx it's dynamodb databse related stufs
yashconestoga
 
MongoDB - An Introduction
dinkar thakur
 
OBIEE publisher with Report creation - Tutorial
onlinetrainingplacements
 
Annotating search results from web databases
JPINFOTECH JAYAPRAKASH
 
Dynamo db
Parag Patil
 
Amazon-Redshift-dBT-Best-Practices_paper.pdf
Hoang CHi THang
 
Info cube modeling_dimension_design_erada_bw_infoalert
Phani Kumar
 
What Are the Key Steps in Scraping Product Data from Amazon India.pptx
Productdata Scrape
 
What Are the Key Steps in Scraping Product Data from Amazon India.pdf
Productdata Scrape
 
The Rise Of Scanamo: Async Access For DynamoDB In Scala
Knoldus Inc.
 
AWS data storage Amazon S3, Amazon RDS.pdf
Datacademy.ai
 
Annotating search results from web databases
IEEEFINALYEARPROJECTS
 
JAVA 2013 IEEE DATAMINING PROJECT Annotating search results from web databases
IEEEGLOBALSOFTTECHNOLOGIES
 
Introduction to MongoDB
S.Shayan Daneshvar
 
AWS MLS-C01 Exam Study Notes
Tiffany Jachja
 
No SQL and MongoDB - Hyderabad Scalability Meetup
Hyderabad Scalability Meetup
 
AWS DYNAMODB TWO CASE STUDIES.pdf
hayhadiabbas
 
The Rise of Scanamo: Async Access for DynamoDB in Scala
Knoldus Inc.
 
Ooluk Data Dictionary Manager
Siddhesh Prabhu
 

Recently uploaded (20)

PDF
Why Businesses Are Switching to Open Source Alternatives to Crystal Reports.pdf
Varsha Nayak
 
PDF
Executive Business Intelligence Dashboards
vandeslie24
 
PPTX
Tally_Basic_Operations_Presentation.pptx
AditiBansal54083
 
PDF
Automate Cybersecurity Tasks with Python
VICTOR MAESTRE RAMIREZ
 
PDF
Odoo CRM vs Zoho CRM: Honest Comparison 2025
Odiware Technologies Private Limited
 
PPTX
Tally software_Introduction_Presentation
AditiBansal54083
 
PDF
MiniTool Partition Wizard 12.8 Crack License Key LATEST
hashhshs786
 
PDF
HiHelloHR – Simplify HR Operations for Modern Workplaces
HiHelloHR
 
PDF
유니티에서 Burst Compiler+ThreadedJobs+SIMD 적용사례
Seongdae Kim
 
PDF
vMix Pro 28.0.0.42 Download vMix Registration key Bundle
kulindacore
 
PDF
Streamline Contractor Lifecycle- TECH EHS Solution
TECH EHS Solution
 
PDF
GetOnCRM Speeds Up Agentforce 3 Deployment for Enterprise AI Wins.pdf
GetOnCRM Solutions
 
PDF
Alexander Marshalov - How to use AI Assistants with your Monitoring system Q2...
VictoriaMetrics
 
PDF
Thread In Android-Mastering Concurrency for Responsive Apps.pdf
Nabin Dhakal
 
PDF
Linux Certificate of Completion - LabEx Certificate
VICTOR MAESTRE RAMIREZ
 
PPTX
An Introduction to ZAP by Checkmarx - Official Version
Simon Bennetts
 
PPTX
Platform for Enterprise Solution - Java EE5
abhishekoza1981
 
PPTX
Comprehensive Guide: Shoviv Exchange to Office 365 Migration Tool 2025
Shoviv Software
 
PPTX
3uTools Full Crack Free Version Download [Latest] 2025
muhammadgurbazkhan
 
PDF
Unlock Efficiency with Insurance Policy Administration Systems
Insurance Tech Services
 
Why Businesses Are Switching to Open Source Alternatives to Crystal Reports.pdf
Varsha Nayak
 
Executive Business Intelligence Dashboards
vandeslie24
 
Tally_Basic_Operations_Presentation.pptx
AditiBansal54083
 
Automate Cybersecurity Tasks with Python
VICTOR MAESTRE RAMIREZ
 
Odoo CRM vs Zoho CRM: Honest Comparison 2025
Odiware Technologies Private Limited
 
Tally software_Introduction_Presentation
AditiBansal54083
 
MiniTool Partition Wizard 12.8 Crack License Key LATEST
hashhshs786
 
HiHelloHR – Simplify HR Operations for Modern Workplaces
HiHelloHR
 
유니티에서 Burst Compiler+ThreadedJobs+SIMD 적용사례
Seongdae Kim
 
vMix Pro 28.0.0.42 Download vMix Registration key Bundle
kulindacore
 
Streamline Contractor Lifecycle- TECH EHS Solution
TECH EHS Solution
 
GetOnCRM Speeds Up Agentforce 3 Deployment for Enterprise AI Wins.pdf
GetOnCRM Solutions
 
Alexander Marshalov - How to use AI Assistants with your Monitoring system Q2...
VictoriaMetrics
 
Thread In Android-Mastering Concurrency for Responsive Apps.pdf
Nabin Dhakal
 
Linux Certificate of Completion - LabEx Certificate
VICTOR MAESTRE RAMIREZ
 
An Introduction to ZAP by Checkmarx - Official Version
Simon Bennetts
 
Platform for Enterprise Solution - Java EE5
abhishekoza1981
 
Comprehensive Guide: Shoviv Exchange to Office 365 Migration Tool 2025
Shoviv Software
 
3uTools Full Crack Free Version Download [Latest] 2025
muhammadgurbazkhan
 
Unlock Efficiency with Insurance Policy Administration Systems
Insurance Tech Services
 
Ad

CO3-Session-6(AmazonDynamoDB).ppt

  • 1. Relational database service –DynamoDB Amazon DynamoDB is a fully managed NoSQL database service that provides fast and low-latency performance that scales with ease. Developers can create a table in Amazon DynamoDB and write an unlimited number of items with consistent latency. Amazon DynamoDB can provide consistent performance levels by automatically distributing the data and traffic for a table over multiple partitions. To help maintain consistent, fast performance levels, all table data is stored on high-performance SSD disk drives. © 2020 KL University – The contents of this presentation are an intellectual and copyrighted property of KL University.
  • 2. Data Model The basic components of the Amazon DynamoDB data model include tables, items, and attributes. Individual items in an Amazon DynamoDB table can have any number of attributes, although there is a limit of 400KB on the item size. © 2020 KL University – The contents of this presentation are an intellectual and copyrighted property of KL University.
  • 3. Data Types Amazon DynamoDB supports a wide range of data types for attributes. Data types fall into three major categories: Scalar, Set, or Document. Scalar Data Types A scalar type represents exactly one value. Amazon DynamoDB supports the following five scalar types: String Text and variable length characters up to 400KB. Supports Unicode with UTF8 encoding Number Positive or negative number with up to 38 digits of precision Binary Binary data, images, compressed objects up to 400KB in size Boolean Binary flag representing a true or false value Null Represents a blank, empty, or unknown state. Note:String, Number, Binary, Boolean cannot be empty. © 2020 KL University – The contents of this presentation are an intellectual and copyrighted property of KL University.
  • 4. Set Data Types Sets are useful to represent a unique list of one or more scalar values. Each value in a set needs to be unique and must be the same data type. Sets do not guarantee order. Amazon DynamoDB supports three set types: String Set, Number Set, and Binary Set. String Set Unique list of String attributes Number Set Unique list of Number attributes Binary Set Unique list of Binary attributes Document Data Types Document type is useful to represent multiple nested attributes, similar to the structure of a JSON file. Amazon DynamoDB supports two document types: List and Map. Multiple Lists and Maps can be combined and nested to create complex structures. List Each List can be used to store an ordered list of attributes of different data types. Map Each Map can be used to store an unordered list of key/value pairs. Maps can be used to represent the structure of any JSON object. © 2020 KL University – The contents of this presentation are an intellectual and copyrighted property of KL University.
  • 5. Primary Key Amazon DynamoDB supports two types of primary keys, and this configuration cannot be changed after a table has been created: Partition Key The primary key is made of one attribute, a partition (or hash) key. Amazon DynamoDB builds an unordered hash index on this primary key attribute. Partition and Sort Key The primary key is made of two attributes. The first attribute is the partition key and the second one is the sort (or range) key. Each item in the table is uniquely identified by the combination of its partition and sort key values. It is possible for two items to have the same partition key value, but those two items must have different sort key values. © 2020 KL University – The contents of this presentation are an intellectual and copyrighted property of KL University.
  • 6. Provisioned Capacity When you create an Amazon DynamoDB table, you are required to provision a certain amount of read and write capacity to handle your expected workloads. Based on your configuration settings, DynamoDB will then provision the right amount of infrastructure capacity to meet your requirements with sustained, low-latency response times. Overall capacity is measured in read and write capacity units. These values can later be scaled up or down by using an UpdateTable action. © 2020 KL University – The contents of this presentation are an intellectual and copyrighted property of KL University.
  • 7. Secondary Indexes A secondary index lets you query the data in the table using an alternate key, in Addition to queries against the primary key. Amazon DynamoDB supports two different kinds of indexes: Global Secondary Index The global secondary index is an index with a partition and sort key that can be different from those on the table. You can create or delete a global secondary index on a table at any time. Local Secondary Index The local secondary index is an index that has the same partition key attribute as the primary key of the table, but a different sort key. You can only create a local secondary index when you create a table. © 2020 KL University – The contents of this presentation are an intellectual and copyrighted property of KL University.
  • 8. Writing and Reading Data Amazon DynamoDB also provides multiple querying options that let you search a table or an index or retrieve back a specific item or a batch of items. Writing Items Amazon DynamoDB provides three primary API actions to create, update, and delete items: PutItem, UpdateItem, and DeleteItem. Using the PutItem action, you can create a new item with one or more attributes. The UpdateItem action will find existing items based on the primary key and replace the attributes. This operation can be useful to only update a single attribute and leave the other attributes unchanged. Finally, you can remove an item from a table by using DeleteItem and specifying a specific primary key. Reading Items After an item has been created, it can be retrieved through a direct lookup by calling the GetItem action or through a search using the Query or Scan action. GetItem allows you to retrieve an item based on its primary key. © 2020 KL University – The contents of this presentation are an intellectual and copyrighted property of KL University.
  • 9. Eventual Consistency When reading items from Amazon DynamoDB, the operation can be either eventually consistent or strongly consistent. Eventually Consistent Reads When you read data, the response might not reflect the results of a recently completed write operation. The response might include some stale data. Consistency across all copies of the data is usually reached within a second; if you repeat your read request after a short time, the response returns the latest data. Strongly Consistent Reads When you issue a strongly consistent read request, Amazon DynamoDB returns a response with the most up-to-date data that reflects updates by all prior related write operations to which Amazon DynamoDB returned a successful response. A strongly consistent read might be less available in the case of a network delay or outage. You can request a strongly consistent read result by specifying optional parameters in your request. © 2020 KL University – The contents of this presentation are an intellectual and copyrighted property of KL University.
  • 10. Batch Operations Amazon DynamoDB also provides several operations designed for working with large Batches of items, including BatchGetItem and BatchWriteItem. Using the BatchWriteItem action, you can perform up to 25 item creates or updates with a single operation. Searching Items Amazon DynamoDB also gives you two operations, Query and Scan, that can be used to search a table or an index. A Query operation is the primary search operation you can use to find items in a table or a secondary index using only primary key attribute values. Each Query requires a partition key attribute name and a distinct value to search. You can Optionally provide a sort key value and use a comparison operator to refine the search results. Results are automatically sorted by the primary key and are limited to 1MB. In contrast to a Query, a Scan operation will read every item in a table or a secondary index. By default, a Scan operation returns all of the data attributes for every item in the table or index. Each request can return up to 1MB of data. Items can be filtered out using expressions, but this can be a resource-intensive operation. If the result set for a Query or a Scan exceeds 1MB, you can page through the results in 1MB increments. © 2020 KL University – The contents of this presentation are an intellectual and copyrighted property of KL University.
  • 11. Scaling and Partitioning Amazon DynamoDB table can scale horizontally through the use of partitions to meet the storage and performance requirements of your application. Each individual partition represents a unit of compute and storage capacity. As storage or capacity requirements change, Amazon DynamoDB can split a partition to accommodate more data or higher provisioned request rates. After a partition is split, however, it cannot be merged back together. © 2020 KL University – The contents of this presentation are an intellectual and copyrighted property of KL University.
  • 12. Security Amazon DynamoDB gives you granular control over the access rights and permissions for users and administrators. Amazon DynamoDB integrates with the IAM service to Provide strong control over permissions using policies. You can create one or more policies that allow or deny specific operations on specific tables. You can also use conditions to restrict access to individual items or attributes. All operations must first be authenticated as a valid user or user session. Applications that need to read and write from Amazon DynamoDB need to obtain a set of temporary or permanent access control keys. Amazon DynamoDB Streams A common requirement for many applications is to keep track of recent changes and then perform some kind of processing on the changed records. Amazon DynamoDB Streams makes it easy to get a list of item modifications for the last 24-hour period. For example, you might need to calculate metrics on a rolling basis and update a dashboard, or maybe synchronize two tables or log activity and changes to an audit trail. With Amazon DynamoDB Streams, these types of applications become easier to build. © 2020 KL University – The contents of this presentation are an intellectual and copyrighted property of KL University.