SlideShare a Scribd company logo
1 of 3
Download to read offline
AWS DYNAMODB TWO CASE STUDIES
Introduction
Amazon DynamoDB is a fully managed NoSQL database service that provides
fast and predictable performance with seamless scalability. It enables you to
store and retrieve any amount of data, and serve any level of request traffic. It
supports document and key-value store models, and offers built-in security,
backup and restore, and in-memory caching. Additionally, it integrates with
other AWS services such as Lambda, S3, and CloudWatch, to enable a variety
of use cases including web and mobile applications, gaming, ad tech, IoT, and
more.
DynamoDB supports both document and key-value data models, allowing you
to easily store and retrieve data using simple API operations. You can use the
document model to store complex data structures, such as JSON or XML
documents, and the key-value model to store simple data types, such as strings
and numbers.
One of the key features of DynamoDB is its ability to scale automatically. It
does this by partitioning your data across multiple servers, and automatically
adjusting the number of partitions based on the amount of data and the number
of requests. This allows DynamoDB to handle sudden increases in traffic
without any manual intervention.
DynamoDB also offers built-in security features, such as encryption at rest, and
the ability to control access to your data using IAM policies. Additionally, it
offers backup and restore capabilities, allowing you to create on-demand or
scheduled backups of your data.
DynamoDB also has in-memory caching feature which enables you to reduce
the read latency for frequently accessed data by caching it in memory.
Additionally, it integrates with other AWS services such as Lambda, S3, and
CloudWatch, to enable a variety of use cases including web and mobile
applications, gaming, ad tech, IoT, and more.
DynamoDB supports both on-demand and provisioned capacity modes. On-
demand mode allows you to pay for only what you use, with no upfront costs or
capacity planning. Provisioned mode allows you to specify the number of read
and write capacity units for a table, and pay a fixed price for that capacity.
The First case study
One example of using Amazon DynamoDB in a web application is creating a
user management system. In this scenario, DynamoDB would be used to store
information about each user, such as their name, email address, and password.
Here is an example of how the application might use DynamoDB:
1. The user signs up for the application by submitting a form that includes their
name, email address, and password.
2. The application sends this information to DynamoDB, which stores it in a
table called "Users". The primary key for this table would be the email address
of the user, and the other information (name and password) would be stored as
attributes.
3. When the user logs in to the application, they enter their email address and
password. The application sends a request to DynamoDB to retrieve the user's
information using their email address as the primary key.
4. If the email address and password match what's stored in DynamoDB, the
user is granted access to the application. If not, the login attempt is denied.
5. Once the user is logged in, the application can use DynamoDB to retrieve and
update the user's information as needed. For example, the user could update
their password, or the application could retrieve the user's name to display it on
the screen.
6. The application can also use DynamoDB's scan and query operation to
retrieve all the users information and perform any sort of analysis or reporting
on that data.
The Second case study
Another example of using Amazon DynamoDB is in an IoT application. In this
scenario, let's imagine a smart home system where multiple IoT devices such as
smart thermostat, smart lock and smart lights are sending sensor data to a
central server every few minutes.
Here is an example of how the application might use DynamoDB:
1. Each IoT device sends sensor data to a Lambda function that acts as a
message broker. The Lambda function then stores the sensor data in a
DynamoDB table called "SensorData".
2. The primary key for the table would be a composite key consisting of the
device's unique ID and a timestamp. Each item in the table would have
attributes for the sensor data, such as temperature, humidity, and motion
detection.
3. The smart home application can query the DynamoDB table to retrieve
sensor data for a specific device, or for all devices, over a specific time period.
4. The data can be used to create real-time dashboards, or to trigger actions,
such as turning on the air conditioner when the temperature exceeds a certain
threshold.
5. The application can also use DynamoDB's Global Secondary Indexes to
create more specific queries, such as finding all devices that have reported a
temperature above a certain threshold in the last hour.
6. The application could also use DynamoDB's automatic scaling to handle the
high write and read throughput required by an IoT application.

More Related Content

Similar to AWS DYNAMODB TWO CASE STUDIES.pdf

ReactJS Test Questions Answers.pdf
ReactJS Test Questions Answers.pdfReactJS Test Questions Answers.pdf
ReactJS Test Questions Answers.pdf
Skill Test for Freelancer
 
MongoDB and the Internet of Things
MongoDB and the Internet of ThingsMongoDB and the Internet of Things
MongoDB and the Internet of Things
MongoDB
 

Similar to AWS DYNAMODB TWO CASE STUDIES.pdf (20)

Cloud economics design, capacity and operational concerns
Cloud economics  design, capacity and operational concernsCloud economics  design, capacity and operational concerns
Cloud economics design, capacity and operational concerns
 
Serverlessusecase workshop feb3_v2
Serverlessusecase workshop feb3_v2Serverlessusecase workshop feb3_v2
Serverlessusecase workshop feb3_v2
 
[IJET-V2I2P8] Authors:Ms. Madhushree M.Kubsad
[IJET-V2I2P8] Authors:Ms. Madhushree M.Kubsad[IJET-V2I2P8] Authors:Ms. Madhushree M.Kubsad
[IJET-V2I2P8] Authors:Ms. Madhushree M.Kubsad
 
ReactJS Test Questions Answers.pdf
ReactJS Test Questions Answers.pdfReactJS Test Questions Answers.pdf
ReactJS Test Questions Answers.pdf
 
A Novel Computing Paradigm for Data Protection in Cloud Computing
A Novel Computing Paradigm for Data Protection in Cloud ComputingA Novel Computing Paradigm for Data Protection in Cloud Computing
A Novel Computing Paradigm for Data Protection in Cloud Computing
 
Cloud Computing
Cloud ComputingCloud Computing
Cloud Computing
 
N - Tier Applications, Enterprise Java Beans, Component technologies
N - Tier Applications, Enterprise Java Beans, Component technologiesN - Tier Applications, Enterprise Java Beans, Component technologies
N - Tier Applications, Enterprise Java Beans, Component technologies
 
MongoDB and the Internet of Things
MongoDB and the Internet of ThingsMongoDB and the Internet of Things
MongoDB and the Internet of Things
 
Weather data meets ibm cloud. part 2 storage and query of weather data - ib...
Weather data meets ibm cloud. part 2   storage and query of weather data - ib...Weather data meets ibm cloud. part 2   storage and query of weather data - ib...
Weather data meets ibm cloud. part 2 storage and query of weather data - ib...
 
Technology Overview
Technology OverviewTechnology Overview
Technology Overview
 
Microsoft Azure Big Data Analytics
Microsoft Azure Big Data AnalyticsMicrosoft Azure Big Data Analytics
Microsoft Azure Big Data Analytics
 
Unit 6.pptx
Unit 6.pptxUnit 6.pptx
Unit 6.pptx
 
DEVELOPING APPLICATION FOR CLOUD – A PROGRAMMER’S PERSPECTIVE
DEVELOPING APPLICATION FOR CLOUD – A PROGRAMMER’S PERSPECTIVEDEVELOPING APPLICATION FOR CLOUD – A PROGRAMMER’S PERSPECTIVE
DEVELOPING APPLICATION FOR CLOUD – A PROGRAMMER’S PERSPECTIVE
 
Best Practices for Running MongoDB on AWS - AWS May 2016 Webinar Series
Best Practices for Running MongoDB on AWS - AWS May 2016 Webinar SeriesBest Practices for Running MongoDB on AWS - AWS May 2016 Webinar Series
Best Practices for Running MongoDB on AWS - AWS May 2016 Webinar Series
 
AWS April Webinar Series - Easily Build and Scale Mobile Apps with AWS Mobile...
AWS April Webinar Series - Easily Build and Scale Mobile Apps with AWS Mobile...AWS April Webinar Series - Easily Build and Scale Mobile Apps with AWS Mobile...
AWS April Webinar Series - Easily Build and Scale Mobile Apps with AWS Mobile...
 
How Oath (a Verizon Company) Built a Multi-Region GDPR Application with Amazo...
How Oath (a Verizon Company) Built a Multi-Region GDPR Application with Amazo...How Oath (a Verizon Company) Built a Multi-Region GDPR Application with Amazo...
How Oath (a Verizon Company) Built a Multi-Region GDPR Application with Amazo...
 
Introduction to AWS IoT
Introduction to AWS IoTIntroduction to AWS IoT
Introduction to AWS IoT
 
Implementare e gestire soluzioni per l'Internet of Things (IoT) in modo rapid...
Implementare e gestire soluzioni per l'Internet of Things (IoT) in modo rapid...Implementare e gestire soluzioni per l'Internet of Things (IoT) in modo rapid...
Implementare e gestire soluzioni per l'Internet of Things (IoT) in modo rapid...
 
An Introduction to Cloud Computing (2009)
An Introduction to Cloud Computing (2009)An Introduction to Cloud Computing (2009)
An Introduction to Cloud Computing (2009)
 
Build Your Mobile App Faster with AWS Mobile Services
Build Your Mobile App Faster with AWS Mobile ServicesBuild Your Mobile App Faster with AWS Mobile Services
Build Your Mobile App Faster with AWS Mobile Services
 

More from hayhadiabbas (10)

lecture 1+2.pdf
lecture 1+2.pdflecture 1+2.pdf
lecture 1+2.pdf
 
lecture 3+4.pdf
lecture 3+4.pdflecture 3+4.pdf
lecture 3+4.pdf
 
Batch processing using AWS LAMBDA.pdf
Batch processing using AWS LAMBDA.pdfBatch processing using AWS LAMBDA.pdf
Batch processing using AWS LAMBDA.pdf
 
S3 Security Mechanisms.pdf
S3 Security Mechanisms.pdfS3 Security Mechanisms.pdf
S3 Security Mechanisms.pdf
 
Sentiment Analysis Using AWS Services Features and Challenges.pdf
Sentiment Analysis Using AWS Services Features and Challenges.pdfSentiment Analysis Using AWS Services Features and Challenges.pdf
Sentiment Analysis Using AWS Services Features and Challenges.pdf
 
Amazon Cognito Principles.pdf
Amazon Cognito Principles.pdfAmazon Cognito Principles.pdf
Amazon Cognito Principles.pdf
 
Immigration to Cloud Benefits and Drawbacks.pdf
Immigration to Cloud Benefits and Drawbacks.pdfImmigration to Cloud Benefits and Drawbacks.pdf
Immigration to Cloud Benefits and Drawbacks.pdf
 
_Haider Hadi Abbas Google Scholar
_Haider Hadi Abbas Google Scholar_Haider Hadi Abbas Google Scholar
_Haider Hadi Abbas Google Scholar
 
Introduction_to_Cloud_Computing.pptx
Introduction_to_Cloud_Computing.pptxIntroduction_to_Cloud_Computing.pptx
Introduction_to_Cloud_Computing.pptx
 
Dip 4 ece-1 & 2
Dip 4 ece-1 & 2Dip 4 ece-1 & 2
Dip 4 ece-1 & 2
 

Recently uploaded

The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
heathfieldcps1
 

Recently uploaded (20)

Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfUnit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the Classroom
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 

AWS DYNAMODB TWO CASE STUDIES.pdf

  • 1. AWS DYNAMODB TWO CASE STUDIES Introduction Amazon DynamoDB is a fully managed NoSQL database service that provides fast and predictable performance with seamless scalability. It enables you to store and retrieve any amount of data, and serve any level of request traffic. It supports document and key-value store models, and offers built-in security, backup and restore, and in-memory caching. Additionally, it integrates with other AWS services such as Lambda, S3, and CloudWatch, to enable a variety of use cases including web and mobile applications, gaming, ad tech, IoT, and more. DynamoDB supports both document and key-value data models, allowing you to easily store and retrieve data using simple API operations. You can use the document model to store complex data structures, such as JSON or XML documents, and the key-value model to store simple data types, such as strings and numbers. One of the key features of DynamoDB is its ability to scale automatically. It does this by partitioning your data across multiple servers, and automatically adjusting the number of partitions based on the amount of data and the number of requests. This allows DynamoDB to handle sudden increases in traffic without any manual intervention. DynamoDB also offers built-in security features, such as encryption at rest, and the ability to control access to your data using IAM policies. Additionally, it offers backup and restore capabilities, allowing you to create on-demand or scheduled backups of your data. DynamoDB also has in-memory caching feature which enables you to reduce the read latency for frequently accessed data by caching it in memory. Additionally, it integrates with other AWS services such as Lambda, S3, and
  • 2. CloudWatch, to enable a variety of use cases including web and mobile applications, gaming, ad tech, IoT, and more. DynamoDB supports both on-demand and provisioned capacity modes. On- demand mode allows you to pay for only what you use, with no upfront costs or capacity planning. Provisioned mode allows you to specify the number of read and write capacity units for a table, and pay a fixed price for that capacity. The First case study One example of using Amazon DynamoDB in a web application is creating a user management system. In this scenario, DynamoDB would be used to store information about each user, such as their name, email address, and password. Here is an example of how the application might use DynamoDB: 1. The user signs up for the application by submitting a form that includes their name, email address, and password. 2. The application sends this information to DynamoDB, which stores it in a table called "Users". The primary key for this table would be the email address of the user, and the other information (name and password) would be stored as attributes. 3. When the user logs in to the application, they enter their email address and password. The application sends a request to DynamoDB to retrieve the user's information using their email address as the primary key. 4. If the email address and password match what's stored in DynamoDB, the user is granted access to the application. If not, the login attempt is denied. 5. Once the user is logged in, the application can use DynamoDB to retrieve and update the user's information as needed. For example, the user could update their password, or the application could retrieve the user's name to display it on the screen.
  • 3. 6. The application can also use DynamoDB's scan and query operation to retrieve all the users information and perform any sort of analysis or reporting on that data. The Second case study Another example of using Amazon DynamoDB is in an IoT application. In this scenario, let's imagine a smart home system where multiple IoT devices such as smart thermostat, smart lock and smart lights are sending sensor data to a central server every few minutes. Here is an example of how the application might use DynamoDB: 1. Each IoT device sends sensor data to a Lambda function that acts as a message broker. The Lambda function then stores the sensor data in a DynamoDB table called "SensorData". 2. The primary key for the table would be a composite key consisting of the device's unique ID and a timestamp. Each item in the table would have attributes for the sensor data, such as temperature, humidity, and motion detection. 3. The smart home application can query the DynamoDB table to retrieve sensor data for a specific device, or for all devices, over a specific time period. 4. The data can be used to create real-time dashboards, or to trigger actions, such as turning on the air conditioner when the temperature exceeds a certain threshold. 5. The application can also use DynamoDB's Global Secondary Indexes to create more specific queries, such as finding all devices that have reported a temperature above a certain threshold in the last hour. 6. The application could also use DynamoDB's automatic scaling to handle the high write and read throughput required by an IoT application.