SlideShare a Scribd company logo
Amazon
DynamoDB
OUTLINE
04
Here you could describe
the topic of the section
05
Here you could describe
the topic of the section
06
01
02
03
Timeline
Introduction
NoSQL Database
Features
Project Stages
Our Team
Timeline of Database Technology
INTRODUCTION
● Amazon DynamoDB is a fully
managed NoSQL database service
that provides fast and predictable
performance with seamless
scalability.
● DynamoDB lets you offload the
administrative burdens of operating
and scaling a distributed database.
WHY DO WE
NEED
DynamoDB?
a hotel chain with
hundreds of new guests
per day
a small app with
growing number
of users! a music player with
countless songs and
thousands of users!
We can use Amazon DynamoDB to create a database that can store and retrieve any
amount of data, and serve any level of request traffic.
Important Concepts in NoSQL!
SHARDING
PARTITIONING
As traffic grows to your site, your database might end up being a
bottleneck as its gets overloaded with more requests.
And scaling by upgrading the single database server
to something more powerful starts to get very
EXPENSIVE!
Sharding !
(or Horizontal Partitioning)
This is where sharding may help!
As breaking your big single logical database into small
databases means load is now distributed among multiple
machines and the size is more scalable as you can just add on
another node to increase the size.
Keep adding more nodes!
So, sharding can be implemented at both the application level or
the database level.
Vertical Partitioning!
Where we split data by columns or
features so we have a microblogging
platform like Twitter or the users will have
certain information about them in the
database such as their tweets, followers
and favorites.
If we partition this data vertically, then we store tweets in one
database, followers in the next and favorites in another.
Data Partitioning Criteria-Algorithmic and Dynamic
A basic Demonstration!
Creating our first DynamoDB table, adding items to our table,
and then query the table to find the items through the AWS
Management Console.
Create and Query a NoSQL table with Amazon DynamoDB
Open the AWS Management Console. Type DynamoDB in the search bar and choose to
open the DynamoDB console.
a. In the DynamoDB console, choose
Create table.
b. We will use a music library as our use
case In the Table name box, type Music.
Step 1 . Create a NoSQL table in DynamoDB
c. 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.
d. 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.
e. 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.
f. Scroll down the screen past Secondary
indexes, Provisioned capacity, and Auto Scaling
to the Create button.
choose Create.
When the Music table is ready to use, it appears
in the table list with a check box .
a. Select the Items tab. On the Items tab, choose
Create item .
b. In the data entry window, type the following:
● For the Artist attribute, type No One
You Know.
● For the songTitle attribute, type Call
Me Today.
Choose Save to save the item.
Step 2 . Add data to the NoSQL table in DynamoDB
c. Repeat the process to add a few more items to
your Music table:
● Artist: No One You Know; songTitle: My
Dog Spot
● Artist: No One You Know; songTitle:
Somewhere Down The Road
● Artist: The Acme Band; songTitle: Still
in Love
● Artist: The Acme Band; songTitle: Look
Out, World
In DynamoDB, query operations are efficient and
use keys to find data. Scan operations traverse the
entire table.
a. In the drop-down list in the dark gray banner
above the items, change Scan to Query.
For your first query, do the following:
● In the Artist box, type No One You Know,
and choose Start search. All songs
performed by No One You Know are
displayed.
Step 3. Query the NoSQL table in DynamoDB
Change the Query drop-down list back to Scan.
Select the check box next to The Acme Band. In the Actions
drop-down list, choose Delete. You will be asked whether to
delete the item. Choose Delete and your item is deleted.
Step 4. Delete an existing item.
Step 5. Delete a NoSQL table.
In the console, choose the option next to Music table and
then choose delete table.
In the confirmation dialog box, choose delete.
Let’s understand more !
DynamoDB is a great fit for mobile, web, gaming, ad tech, and IoT
applications where scalability, throughput, and reliable performance are
key considerations.
How does Dynamo DB work?
When we create the table we specify Partition Key and an
optional Sort Key, we can’t change these later but rest of
the attributes (columns) of item (row) can change. Also
each item can have different set of attributes.
Table
Table Keys
Partition Key : authorId
Sort Key : publicationDate
A DynamoDB item is nothing but a row in the table. We can change any attribute of an item except its keys: partition key
or sort key, these keys are an identification for an item; if we have to change these keys, then the only option is to delete
an item and create it again.
Item
Data Types
DynamoDB supports different data types for attributes of an item, they can be mainly categorised into the following:
Scalar Types : Number, String, Binary, Boolean and Null.
Document Types : List and Map
Set Types : Number Set, String Set, and Binary Set.
Partition & Sort Keys
Partition Key
This key is mandatory for the
DynamoDB table and item. DynamoDB
partitions the items using this key, that’s
why this key is also called as the
partition key and sometimes is also
referred as a Hash Key.
Sort key
This key can be used in conjunction
with the Partition key but it is not
mandatory. This is useful while
querying the data relating a Partition
key. We can use several different filter
functions on the sort key such as
begins with, between etc. Some times it
is also referred to as a Range Key.
Batch APIs
BatchGetItem :
This can be used to fetch items from
different tables using Partition Key and
Sort Key. In a single BatchGetItem call,
we can fetch up to 16MB data or 100
items.
BatchWriteItem:
This can be used to delete or put items
on one or more tables in DynamoDB in
one call. We can write up to 16 MB
data, which can be 25 put and delete
requests.
Query & Scan
INDEXES
Main features of Dynamo DB
Performance and
Scalability
Automatic Data
Management
Time To Live
Storage of inconsistent
schema items
Access to control rules
APPLICATIONS
DUOLINGO
MAJOR
BASEBALL
LEGUE
HESS Corp.
GE
Heathcare
NTT
DoCoMo
● Duolingo uses Amazon DynamoDB to store 31
billion items in support of an online learning site
that delivers lessons for 80 languages.
● The U.S. startup reaches more than 18 million
monthly users around the world who perform
more than six billion exercises using the free
Duolingo lessons.
● The company relies heavily on Amazon
DynamoDB not just for its highly scalable
database, but also for high performance that
reaches 24,000 read units per second and 3,300
write units per second.
Duolingo Example
● Doppler radar system that sits behind home
plate, sampling the ball position 2,000 times a
second? Or that there are two stereoscopic
imaging devices, usually positioned above the
third-base line, that sample the positions of
players on the field 30 times a second.
● All these data transactions require a system that
is fast on both reads and writes. The MLB uses a
combination of AWS components to help
process all this data. DynamoDB plays a key role
in ensuring queries are fast and reliable.
MLB Example
BENEFITS
FAST, CONSISTENT
PERFORMANCE
HIGHLY
SCALABLE
FLEXIBLE
EVENT-DRIVEN
PROGRAMMING
FULLY
MANAGED
FINE
GRAINED
ACCESS
CONTROL
DRAWBACKS
● When multi-item or cross table transactions are
required.
● When complex queries and joins are required
● When real-time analytics on historic data is required
CONCLUSIÓN
● As a non-relational database, DynamoDB is a reliable system.
● It comes with options to backup, restore and secure data, and is great for both mobile
and web apps, with the exception of special services like financial transactions and
healthcare, you can redesign almost any application with DynamoDB.
● This non-relational database is extremely convenient to build event-driven
architecture and user-friendly applications. Any shortcomings with analytic workloads
are easily rectified with the use of an analytic-focused SQL layer, making DynamoDB
a great asset for users.
ADVANCED TOPICS IN DYNAMODB
- Data modeling
- DynamoDB Scaling
- Understanding partitions
- Design patterns and best
practices
THANKS!
Presented By-
TUSHALI CHETTY (16070124059)
KRITI KATYAYAN (16070124024)
AMEYA KSHIRSAGAR (16070124025)
ADITYA NAIK (16070124033)

More Related Content

Similar to Amazon DynamoDB

Dynamo db
Dynamo dbDynamo db
Dynamo db
Parag Patil
 
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.
 
Introduction to Amazon DynamoDB
Introduction to Amazon DynamoDBIntroduction to Amazon DynamoDB
Introduction to Amazon DynamoDB
Amazon Web Services
 
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
 
AWS Webcast - Build high-scale applications with Amazon DynamoDB
AWS Webcast - Build high-scale applications with Amazon DynamoDBAWS Webcast - Build high-scale applications with Amazon DynamoDB
AWS Webcast - Build high-scale applications with Amazon DynamoDB
Amazon Web 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
Knoldus Inc.
 
Deep Dive on Amazon DynamoDB
Deep Dive on Amazon DynamoDBDeep Dive on Amazon DynamoDB
Deep Dive on Amazon DynamoDB
Amazon Web Services
 
Dynamo db pros and cons
Dynamo db  pros and consDynamo db  pros and cons
Dynamo db pros and cons
Saniya Khalsa
 
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
 
Getting started with Amazon Dynamo BD
Getting started with Amazon Dynamo BDGetting started with Amazon Dynamo BD
Getting started with Amazon Dynamo BD
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
 
Introduction to Amazon DynamoDB
Introduction to Amazon DynamoDBIntroduction to Amazon DynamoDB
Introduction to Amazon DynamoDB
Amazon Web Services
 
Getting started with Amazon DynamoDB
Getting started with Amazon DynamoDBGetting started with Amazon DynamoDB
Getting started with Amazon DynamoDB
Amazon Web Services
 
How to Migrate from Cassandra to Amazon DynamoDB - AWS Online Tech Talks
How to Migrate from Cassandra to Amazon DynamoDB - AWS Online Tech TalksHow to Migrate from Cassandra to Amazon DynamoDB - AWS Online Tech Talks
How to Migrate from Cassandra to Amazon DynamoDB - AWS Online Tech Talks
Amazon Web Services
 
Deep Dive into DynamoDB
Deep Dive into DynamoDBDeep Dive into DynamoDB
Deep Dive into DynamoDB
AWS Germany
 
How and when to use NoSQL
How and when to use NoSQLHow and when to use NoSQL
How and when to use NoSQL
Amazon Web Services
 
(WRK302) Event-Driven Programming
(WRK302) Event-Driven Programming(WRK302) Event-Driven Programming
(WRK302) Event-Driven Programming
Amazon Web Services
 
MongoDB for Beginners
MongoDB for BeginnersMongoDB for Beginners
MongoDB for Beginners
Enoch Joshua
 
Ibm redbook
Ibm redbookIbm redbook
Ibm redbook
Rahul Verma
 
Introduction to aws dynamo db
Introduction to aws dynamo dbIntroduction to aws dynamo db
Introduction to aws dynamo db
Omid Vahdaty
 

Similar to Amazon DynamoDB (20)

Dynamo db
Dynamo dbDynamo db
Dynamo db
 
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
 
Introduction to Amazon DynamoDB
Introduction to Amazon DynamoDBIntroduction to Amazon DynamoDB
Introduction to Amazon DynamoDB
 
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...
 
AWS Webcast - Build high-scale applications with Amazon DynamoDB
AWS Webcast - Build high-scale applications with Amazon DynamoDBAWS Webcast - Build high-scale applications with Amazon DynamoDB
AWS Webcast - Build high-scale applications with Amazon DynamoDB
 
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
 
Deep Dive on Amazon DynamoDB
Deep Dive on Amazon DynamoDBDeep Dive on Amazon DynamoDB
Deep Dive on Amazon DynamoDB
 
Dynamo db pros and cons
Dynamo db  pros and consDynamo db  pros and cons
Dynamo db pros and cons
 
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
 
Getting started with Amazon Dynamo BD
Getting started with Amazon Dynamo BDGetting started with Amazon Dynamo BD
Getting started with Amazon Dynamo BD
 
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
 
Introduction to Amazon DynamoDB
Introduction to Amazon DynamoDBIntroduction to Amazon DynamoDB
Introduction to Amazon DynamoDB
 
Getting started with Amazon DynamoDB
Getting started with Amazon DynamoDBGetting started with Amazon DynamoDB
Getting started with Amazon DynamoDB
 
How to Migrate from Cassandra to Amazon DynamoDB - AWS Online Tech Talks
How to Migrate from Cassandra to Amazon DynamoDB - AWS Online Tech TalksHow to Migrate from Cassandra to Amazon DynamoDB - AWS Online Tech Talks
How to Migrate from Cassandra to Amazon DynamoDB - AWS Online Tech Talks
 
Deep Dive into DynamoDB
Deep Dive into DynamoDBDeep Dive into DynamoDB
Deep Dive into DynamoDB
 
How and when to use NoSQL
How and when to use NoSQLHow and when to use NoSQL
How and when to use NoSQL
 
(WRK302) Event-Driven Programming
(WRK302) Event-Driven Programming(WRK302) Event-Driven Programming
(WRK302) Event-Driven Programming
 
MongoDB for Beginners
MongoDB for BeginnersMongoDB for Beginners
MongoDB for Beginners
 
Ibm redbook
Ibm redbookIbm redbook
Ibm redbook
 
Introduction to aws dynamo db
Introduction to aws dynamo dbIntroduction to aws dynamo db
Introduction to aws dynamo db
 

More from Kriti Katyayan

Yellowpages SEO
Yellowpages SEOYellowpages SEO
Yellowpages SEO
Kriti Katyayan
 
Distributed Ledger Technology
Distributed Ledger TechnologyDistributed Ledger Technology
Distributed Ledger Technology
Kriti Katyayan
 
Edify
Edify Edify
File Protection
File ProtectionFile Protection
File Protection
Kriti Katyayan
 
Energy crisis
Energy crisisEnergy crisis
Energy crisis
Kriti Katyayan
 
Bio ppt
Bio pptBio ppt
Kriti
KritiKriti
Ion c .ppt
Ion c .pptIon c .ppt
Ion c .ppt
Kriti Katyayan
 
Ion channels.ppt
Ion channels.pptIon channels.ppt
Ion channels.ppt
Kriti Katyayan
 

More from Kriti Katyayan (9)

Yellowpages SEO
Yellowpages SEOYellowpages SEO
Yellowpages SEO
 
Distributed Ledger Technology
Distributed Ledger TechnologyDistributed Ledger Technology
Distributed Ledger Technology
 
Edify
Edify Edify
Edify
 
File Protection
File ProtectionFile Protection
File Protection
 
Energy crisis
Energy crisisEnergy crisis
Energy crisis
 
Bio ppt
Bio pptBio ppt
Bio ppt
 
Kriti
KritiKriti
Kriti
 
Ion c .ppt
Ion c .pptIon c .ppt
Ion c .ppt
 
Ion channels.ppt
Ion channels.pptIon channels.ppt
Ion channels.ppt
 

Recently uploaded

DECODING JAVA THREAD DUMPS: MASTER THE ART OF ANALYSIS
DECODING JAVA THREAD DUMPS: MASTER THE ART OF ANALYSISDECODING JAVA THREAD DUMPS: MASTER THE ART OF ANALYSIS
DECODING JAVA THREAD DUMPS: MASTER THE ART OF ANALYSIS
Tier1 app
 
Building API data products on top of your real-time data infrastructure
Building API data products on top of your real-time data infrastructureBuilding API data products on top of your real-time data infrastructure
Building API data products on top of your real-time data infrastructure
confluent
 
Boost Your Savings with These Money Management Apps
Boost Your Savings with These Money Management AppsBoost Your Savings with These Money Management Apps
Boost Your Savings with These Money Management Apps
Jhone kinadey
 
Migration From CH 1.0 to CH 2.0 and Mule 4.6 & Java 17 Upgrade.pptx
Migration From CH 1.0 to CH 2.0 and  Mule 4.6 & Java 17 Upgrade.pptxMigration From CH 1.0 to CH 2.0 and  Mule 4.6 & Java 17 Upgrade.pptx
Migration From CH 1.0 to CH 2.0 and Mule 4.6 & Java 17 Upgrade.pptx
ervikas4
 
Beginner's Guide to Observability@Devoxx PL 2024
Beginner's  Guide to Observability@Devoxx PL 2024Beginner's  Guide to Observability@Devoxx PL 2024
Beginner's Guide to Observability@Devoxx PL 2024
michniczscribd
 
The Comprehensive Guide to Validating Audio-Visual Performances.pdf
The Comprehensive Guide to Validating Audio-Visual Performances.pdfThe Comprehensive Guide to Validating Audio-Visual Performances.pdf
The Comprehensive Guide to Validating Audio-Visual Performances.pdf
kalichargn70th171
 
Orca: Nocode Graphical Editor for Container Orchestration
Orca: Nocode Graphical Editor for Container OrchestrationOrca: Nocode Graphical Editor for Container Orchestration
Orca: Nocode Graphical Editor for Container Orchestration
Pedro J. Molina
 
The Power of Visual Regression Testing_ Why It Is Critical for Enterprise App...
The Power of Visual Regression Testing_ Why It Is Critical for Enterprise App...The Power of Visual Regression Testing_ Why It Is Critical for Enterprise App...
The Power of Visual Regression Testing_ Why It Is Critical for Enterprise App...
kalichargn70th171
 
The Rising Future of CPaaS in the Middle East 2024
The Rising Future of CPaaS in the Middle East 2024The Rising Future of CPaaS in the Middle East 2024
The Rising Future of CPaaS in the Middle East 2024
Yara Milbes
 
Penify - Let AI do the Documentation, you write the Code.
Penify - Let AI do the Documentation, you write the Code.Penify - Let AI do the Documentation, you write the Code.
Penify - Let AI do the Documentation, you write the Code.
KrishnaveniMohan1
 
Microsoft-Power-Platform-Adoption-Planning.pptx
Microsoft-Power-Platform-Adoption-Planning.pptxMicrosoft-Power-Platform-Adoption-Planning.pptx
Microsoft-Power-Platform-Adoption-Planning.pptx
jrodriguezq3110
 
Why Apache Kafka Clusters Are Like Galaxies (And Other Cosmic Kafka Quandarie...
Why Apache Kafka Clusters Are Like Galaxies (And Other Cosmic Kafka Quandarie...Why Apache Kafka Clusters Are Like Galaxies (And Other Cosmic Kafka Quandarie...
Why Apache Kafka Clusters Are Like Galaxies (And Other Cosmic Kafka Quandarie...
Paul Brebner
 
一比一原版(USF毕业证)旧金山大学毕业证如何办理
一比一原版(USF毕业证)旧金山大学毕业证如何办理一比一原版(USF毕业证)旧金山大学毕业证如何办理
一比一原版(USF毕业证)旧金山大学毕业证如何办理
dakas1
 
14 th Edition of International conference on computer vision
14 th Edition of International conference on computer vision14 th Edition of International conference on computer vision
14 th Edition of International conference on computer vision
ShulagnaSarkar2
 
一比一原版(UMN毕业证)明尼苏达大学毕业证如何办理
一比一原版(UMN毕业证)明尼苏达大学毕业证如何办理一比一原版(UMN毕业证)明尼苏达大学毕业证如何办理
一比一原版(UMN毕业证)明尼苏达大学毕业证如何办理
dakas1
 
ppt on the brain chip neuralink.pptx
ppt  on   the brain  chip neuralink.pptxppt  on   the brain  chip neuralink.pptx
ppt on the brain chip neuralink.pptx
Reetu63
 
Superpower Your Apache Kafka Applications Development with Complementary Open...
Superpower Your Apache Kafka Applications Development with Complementary Open...Superpower Your Apache Kafka Applications Development with Complementary Open...
Superpower Your Apache Kafka Applications Development with Complementary Open...
Paul Brebner
 
Secure-by-Design Using Hardware and Software Protection for FDA Compliance
Secure-by-Design Using Hardware and Software Protection for FDA ComplianceSecure-by-Design Using Hardware and Software Protection for FDA Compliance
Secure-by-Design Using Hardware and Software Protection for FDA Compliance
ICS
 
How GenAI Can Improve Supplier Performance Management.pdf
How GenAI Can Improve Supplier Performance Management.pdfHow GenAI Can Improve Supplier Performance Management.pdf
How GenAI Can Improve Supplier Performance Management.pdf
Zycus
 
美洲杯赔率投注网【​网址​🎉3977·EE​🎉】
美洲杯赔率投注网【​网址​🎉3977·EE​🎉】美洲杯赔率投注网【​网址​🎉3977·EE​🎉】
美洲杯赔率投注网【​网址​🎉3977·EE​🎉】
widenerjobeyrl638
 

Recently uploaded (20)

DECODING JAVA THREAD DUMPS: MASTER THE ART OF ANALYSIS
DECODING JAVA THREAD DUMPS: MASTER THE ART OF ANALYSISDECODING JAVA THREAD DUMPS: MASTER THE ART OF ANALYSIS
DECODING JAVA THREAD DUMPS: MASTER THE ART OF ANALYSIS
 
Building API data products on top of your real-time data infrastructure
Building API data products on top of your real-time data infrastructureBuilding API data products on top of your real-time data infrastructure
Building API data products on top of your real-time data infrastructure
 
Boost Your Savings with These Money Management Apps
Boost Your Savings with These Money Management AppsBoost Your Savings with These Money Management Apps
Boost Your Savings with These Money Management Apps
 
Migration From CH 1.0 to CH 2.0 and Mule 4.6 & Java 17 Upgrade.pptx
Migration From CH 1.0 to CH 2.0 and  Mule 4.6 & Java 17 Upgrade.pptxMigration From CH 1.0 to CH 2.0 and  Mule 4.6 & Java 17 Upgrade.pptx
Migration From CH 1.0 to CH 2.0 and Mule 4.6 & Java 17 Upgrade.pptx
 
Beginner's Guide to Observability@Devoxx PL 2024
Beginner's  Guide to Observability@Devoxx PL 2024Beginner's  Guide to Observability@Devoxx PL 2024
Beginner's Guide to Observability@Devoxx PL 2024
 
The Comprehensive Guide to Validating Audio-Visual Performances.pdf
The Comprehensive Guide to Validating Audio-Visual Performances.pdfThe Comprehensive Guide to Validating Audio-Visual Performances.pdf
The Comprehensive Guide to Validating Audio-Visual Performances.pdf
 
Orca: Nocode Graphical Editor for Container Orchestration
Orca: Nocode Graphical Editor for Container OrchestrationOrca: Nocode Graphical Editor for Container Orchestration
Orca: Nocode Graphical Editor for Container Orchestration
 
The Power of Visual Regression Testing_ Why It Is Critical for Enterprise App...
The Power of Visual Regression Testing_ Why It Is Critical for Enterprise App...The Power of Visual Regression Testing_ Why It Is Critical for Enterprise App...
The Power of Visual Regression Testing_ Why It Is Critical for Enterprise App...
 
The Rising Future of CPaaS in the Middle East 2024
The Rising Future of CPaaS in the Middle East 2024The Rising Future of CPaaS in the Middle East 2024
The Rising Future of CPaaS in the Middle East 2024
 
Penify - Let AI do the Documentation, you write the Code.
Penify - Let AI do the Documentation, you write the Code.Penify - Let AI do the Documentation, you write the Code.
Penify - Let AI do the Documentation, you write the Code.
 
Microsoft-Power-Platform-Adoption-Planning.pptx
Microsoft-Power-Platform-Adoption-Planning.pptxMicrosoft-Power-Platform-Adoption-Planning.pptx
Microsoft-Power-Platform-Adoption-Planning.pptx
 
Why Apache Kafka Clusters Are Like Galaxies (And Other Cosmic Kafka Quandarie...
Why Apache Kafka Clusters Are Like Galaxies (And Other Cosmic Kafka Quandarie...Why Apache Kafka Clusters Are Like Galaxies (And Other Cosmic Kafka Quandarie...
Why Apache Kafka Clusters Are Like Galaxies (And Other Cosmic Kafka Quandarie...
 
一比一原版(USF毕业证)旧金山大学毕业证如何办理
一比一原版(USF毕业证)旧金山大学毕业证如何办理一比一原版(USF毕业证)旧金山大学毕业证如何办理
一比一原版(USF毕业证)旧金山大学毕业证如何办理
 
14 th Edition of International conference on computer vision
14 th Edition of International conference on computer vision14 th Edition of International conference on computer vision
14 th Edition of International conference on computer vision
 
一比一原版(UMN毕业证)明尼苏达大学毕业证如何办理
一比一原版(UMN毕业证)明尼苏达大学毕业证如何办理一比一原版(UMN毕业证)明尼苏达大学毕业证如何办理
一比一原版(UMN毕业证)明尼苏达大学毕业证如何办理
 
ppt on the brain chip neuralink.pptx
ppt  on   the brain  chip neuralink.pptxppt  on   the brain  chip neuralink.pptx
ppt on the brain chip neuralink.pptx
 
Superpower Your Apache Kafka Applications Development with Complementary Open...
Superpower Your Apache Kafka Applications Development with Complementary Open...Superpower Your Apache Kafka Applications Development with Complementary Open...
Superpower Your Apache Kafka Applications Development with Complementary Open...
 
Secure-by-Design Using Hardware and Software Protection for FDA Compliance
Secure-by-Design Using Hardware and Software Protection for FDA ComplianceSecure-by-Design Using Hardware and Software Protection for FDA Compliance
Secure-by-Design Using Hardware and Software Protection for FDA Compliance
 
How GenAI Can Improve Supplier Performance Management.pdf
How GenAI Can Improve Supplier Performance Management.pdfHow GenAI Can Improve Supplier Performance Management.pdf
How GenAI Can Improve Supplier Performance Management.pdf
 
美洲杯赔率投注网【​网址​🎉3977·EE​🎉】
美洲杯赔率投注网【​网址​🎉3977·EE​🎉】美洲杯赔率投注网【​网址​🎉3977·EE​🎉】
美洲杯赔率投注网【​网址​🎉3977·EE​🎉】
 

Amazon DynamoDB

  • 2. OUTLINE 04 Here you could describe the topic of the section 05 Here you could describe the topic of the section 06 01 02 03 Timeline Introduction NoSQL Database Features Project Stages Our Team
  • 3. Timeline of Database Technology
  • 4. INTRODUCTION ● Amazon DynamoDB is a fully managed NoSQL database service that provides fast and predictable performance with seamless scalability. ● DynamoDB lets you offload the administrative burdens of operating and scaling a distributed database.
  • 5.
  • 6.
  • 8. a hotel chain with hundreds of new guests per day a small app with growing number of users! a music player with countless songs and thousands of users!
  • 9. We can use Amazon DynamoDB to create a database that can store and retrieve any amount of data, and serve any level of request traffic.
  • 10. Important Concepts in NoSQL! SHARDING PARTITIONING
  • 11. As traffic grows to your site, your database might end up being a bottleneck as its gets overloaded with more requests. And scaling by upgrading the single database server to something more powerful starts to get very EXPENSIVE!
  • 12. Sharding ! (or Horizontal Partitioning) This is where sharding may help! As breaking your big single logical database into small databases means load is now distributed among multiple machines and the size is more scalable as you can just add on another node to increase the size. Keep adding more nodes! So, sharding can be implemented at both the application level or the database level.
  • 13. Vertical Partitioning! Where we split data by columns or features so we have a microblogging platform like Twitter or the users will have certain information about them in the database such as their tweets, followers and favorites. If we partition this data vertically, then we store tweets in one database, followers in the next and favorites in another.
  • 15. A basic Demonstration! Creating our first DynamoDB table, adding items to our table, and then query the table to find the items through the AWS Management Console.
  • 16. Create and Query a NoSQL table with Amazon DynamoDB Open the AWS Management Console. Type DynamoDB in the search bar and choose to open the DynamoDB console.
  • 17. a. In the DynamoDB console, choose Create table. b. We will use a music library as our use case In the Table name box, type Music. Step 1 . Create a NoSQL table in DynamoDB
  • 18. c. 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. d. 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.
  • 19. e. 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. f. Scroll down the screen past Secondary indexes, Provisioned capacity, and Auto Scaling to the Create button. choose Create. When the Music table is ready to use, it appears in the table list with a check box .
  • 20. a. Select the Items tab. On the Items tab, choose Create item . b. In the data entry window, type the following: ● For the Artist attribute, type No One You Know. ● For the songTitle attribute, type Call Me Today. Choose Save to save the item. Step 2 . Add data to the NoSQL table in DynamoDB
  • 21. c. Repeat the process to add a few more items to your Music table: ● Artist: No One You Know; songTitle: My Dog Spot ● Artist: No One You Know; songTitle: Somewhere Down The Road ● Artist: The Acme Band; songTitle: Still in Love ● Artist: The Acme Band; songTitle: Look Out, World
  • 22. In DynamoDB, query operations are efficient and use keys to find data. Scan operations traverse the entire table. a. In the drop-down list in the dark gray banner above the items, change Scan to Query. For your first query, do the following: ● In the Artist box, type No One You Know, and choose Start search. All songs performed by No One You Know are displayed. Step 3. Query the NoSQL table in DynamoDB
  • 23. Change the Query drop-down list back to Scan. Select the check box next to The Acme Band. In the Actions drop-down list, choose Delete. You will be asked whether to delete the item. Choose Delete and your item is deleted. Step 4. Delete an existing item. Step 5. Delete a NoSQL table. In the console, choose the option next to Music table and then choose delete table. In the confirmation dialog box, choose delete.
  • 24. Let’s understand more ! DynamoDB is a great fit for mobile, web, gaming, ad tech, and IoT applications where scalability, throughput, and reliable performance are key considerations.
  • 25. How does Dynamo DB work?
  • 26. When we create the table we specify Partition Key and an optional Sort Key, we can’t change these later but rest of the attributes (columns) of item (row) can change. Also each item can have different set of attributes. Table Table Keys Partition Key : authorId Sort Key : publicationDate
  • 27. A DynamoDB item is nothing but a row in the table. We can change any attribute of an item except its keys: partition key or sort key, these keys are an identification for an item; if we have to change these keys, then the only option is to delete an item and create it again. Item Data Types DynamoDB supports different data types for attributes of an item, they can be mainly categorised into the following: Scalar Types : Number, String, Binary, Boolean and Null. Document Types : List and Map Set Types : Number Set, String Set, and Binary Set.
  • 28. Partition & Sort Keys Partition Key This key is mandatory for the DynamoDB table and item. DynamoDB partitions the items using this key, that’s why this key is also called as the partition key and sometimes is also referred as a Hash Key. Sort key This key can be used in conjunction with the Partition key but it is not mandatory. This is useful while querying the data relating a Partition key. We can use several different filter functions on the sort key such as begins with, between etc. Some times it is also referred to as a Range Key.
  • 29. Batch APIs BatchGetItem : This can be used to fetch items from different tables using Partition Key and Sort Key. In a single BatchGetItem call, we can fetch up to 16MB data or 100 items. BatchWriteItem: This can be used to delete or put items on one or more tables in DynamoDB in one call. We can write up to 16 MB data, which can be 25 put and delete requests.
  • 32. Main features of Dynamo DB Performance and Scalability Automatic Data Management Time To Live Storage of inconsistent schema items Access to control rules
  • 34. ● Duolingo uses Amazon DynamoDB to store 31 billion items in support of an online learning site that delivers lessons for 80 languages. ● The U.S. startup reaches more than 18 million monthly users around the world who perform more than six billion exercises using the free Duolingo lessons. ● The company relies heavily on Amazon DynamoDB not just for its highly scalable database, but also for high performance that reaches 24,000 read units per second and 3,300 write units per second. Duolingo Example
  • 35. ● Doppler radar system that sits behind home plate, sampling the ball position 2,000 times a second? Or that there are two stereoscopic imaging devices, usually positioned above the third-base line, that sample the positions of players on the field 30 times a second. ● All these data transactions require a system that is fast on both reads and writes. The MLB uses a combination of AWS components to help process all this data. DynamoDB plays a key role in ensuring queries are fast and reliable. MLB Example
  • 37. DRAWBACKS ● When multi-item or cross table transactions are required. ● When complex queries and joins are required ● When real-time analytics on historic data is required
  • 38. CONCLUSIÓN ● As a non-relational database, DynamoDB is a reliable system. ● It comes with options to backup, restore and secure data, and is great for both mobile and web apps, with the exception of special services like financial transactions and healthcare, you can redesign almost any application with DynamoDB. ● This non-relational database is extremely convenient to build event-driven architecture and user-friendly applications. Any shortcomings with analytic workloads are easily rectified with the use of an analytic-focused SQL layer, making DynamoDB a great asset for users.
  • 39. ADVANCED TOPICS IN DYNAMODB - Data modeling - DynamoDB Scaling - Understanding partitions - Design patterns and best practices
  • 40. THANKS! Presented By- TUSHALI CHETTY (16070124059) KRITI KATYAYAN (16070124024) AMEYA KSHIRSAGAR (16070124025) ADITYA NAIK (16070124033)