SlideShare a Scribd company logo
1 of 28
REALTIME
RECORDIN
G OF DATA
IN AWS
DYNAMO
DB
BY: Shelly & Sagar
overview
■ BRIEF HISTORY OF DATA PROCESSING
■ RELATIONAL (SQL)VS. NONRELATIONAL
(NOSQL)
■ Why noSQL?
■ ACIDVS CAP
■ DynamoDB- what is it?
■ DynamoDB ARCHITECTURE
■ Conditional Writes
■ Provisioned throughput
■ QUERYVS SCAN
■ Operations
■ Benefits
■ Limitations
■ DEMO
TIMELINE OF
DATABASE
TECHNOLOG
Y
RELATIONAL (SQL)VS. NONRELATIONAL
(NOSQL)
Optimised for storage Optimised for compute
Normalized/relational Denormalized/hierarchical
Ad hoc queries Instantiated views
Scale vertically Scale horizontally
Good for OLAP Built for OLTP at scale
SQL NOSQL
DATA STORAGE FORMAT IN SQL
DATA STORAGE FORMAT IN SQL
Why noSQL?
■ DataVelocity – Huge data getting generated
in less time
■ DataVariety – Structured, semi-structures
and unstructured
■ DataVolume –Terabytes and petabytes of
data
■ Dynamic Schema – Flexible data model
■ Auto-sharding – Horizontal scalability
■ Continuous Availability
■ Integrated Caching
■ Replication – Automatic replication to support
high availability
■ Dynamic provisioned throughput
Acid vs CAP
■ ACID properties relates to relational databases
• Atomicity
– Requires each transaction to be all or nothing
• Consistency
– Brings databases from one valid state to another
• Isolation
–Takes care of concurrent execution and avoid overwriting
• Durability
– Committed transactions will remain so in the event of power loss,
crashes etc.
■ CAP theorem relates to noSQL database
• Consistency
– All nodes see the same data at the same time
• Availability
– A guarantee that every request receives a response about whether it
was successful or failed
• Partition tolerance
–The system continues to operate despite arbitrary message loss or
failure of part of the system)
DynamoDB-
what is it?
■ Fully managed nosql database service on
AWS
■ Data model in the form of tables
■ Data stored in the form of items (name –
value attributes)
■ Automatic scaling
■ – Provisioned throughput – Storage scaling
– Distributed architecture
■ Easy Administration
■ Monitoring of tables using CloudWatch
■ Integration with EMR (Elastic MapReduce)
■ – Analyze data and store in S3
BENEFITS OF DYNAMODB
 CONSISTERNT,PREDICTABLE PERFORAMNCE
• single milli second latency
• < 5ms reads OR <10ms writes
• backed by SSD drives
 FLEXIBLE DATA MODEL
• key/attribute pairs
• no schema required
• easy to create and adjust
 SEAMLESS SCALABILITY
• no table size limits
• unlimited storage
• no downtime
 DURABLE
• consistent disk writes only
• replication across data canters and availability zones
DynamoDB ARCHITECTURE
PRIMARY
KEY
(MANDATO
RY FOR
EVERY
TABLE) –
HASH OR
HASH +
RANGE
DATA
MODEL IN
THE FORM
OF TABLES
DATA
STORED IN
THE FORM
OF ITEMS
(NAME –
VALUE
ATTRIBUTE
S)
SECONDAR
Y INDEXES
FOR
IMPROVED
PERFORMA
NCE
–
LOCALSEC
ONDARYIN
DEX
–
GLOBALSE
CONDARYI
NDEX
• SCALAR
DATA TYPE
(NUMBER,
STRING
ETC) OR
QUERYVS
SCAN
• Query
– Search based on primary key and examines only matching data
– Maximum 1MB result
– Query result sorted by range key
– Query result can be opted to give strong consistency
– Query can be done based on secondary index
– Requires less provisioned throughput
– Query performance depends on amount of data retrieved
• Scan
– Examines every item and then applies filter
– Maximum 1MB result
– Scan result is always eventually consistent
– Required high provisioned throughput
– Scan performance depends on table size
– Secondary index does not have any impact on scan performance
– Parallel scan can be performed usingTotalSegments
Components of the System
Nodemcu
DHT11 temperature and
moisture sensor
OLED Display
Architecture of the system
Code –To
connect to
AWS IOT
server
■ #include "FS.h"
#include <ESP8266WiFi.h>
#include <PubSubClient.h
#include <NTPClient.h>
#include <WiFiUdp.h>
const char* AWS_endpoint = "a3hu9vk57nb9k8-ats.iot.us-east-
1.amazonaws.com"; //MQTT broker ipvoid callback(char* topic, byte*
payload, unsigned int length) {
Serial.print("Message arrived [");
Serial.print(topic);
Serial.print("] ");
for (int i = 0; i < length; i++) {
Serial.print((char)payload[i]);
}
Serial.println();
}
WiFiClientSecure espClient;
PubSubClient client(AWS_endpoint, 8883, callback, espClient)
Library for
showing data on
OLED Display
■ #include <Wire.h>
#include <Adafruit_GFX.h>
#include <Adafruit_SSD1306.h>
#define SCREEN_WIDTH 128 // OLED
display width, in pixels
#define SCREEN_HEIGHT 64 // OLED
display height, in pixels
// Declaration for an SSD1306 display
connected to I2C (SDA, SCL pins)
Adafruit_SSD1306
display(SCREEN_WIDTH,
SCREEN_HEIGHT, &Wire, -1);
Library for
reading from
DHT sensor
■ #include <DHT.h>
void loop()
{
float h = dht.readHumidity(); // Reading
Temperature form DHT sensor
float t = dht.readTemperature(); //
Reading Humidity form DHT sensor
float tF=(t*1.8)+32;
if (isnan(h) || isnan(t))
{
Serial.println("Failed to read from DHT
sensor!");
return;
UPLOADING
CODETOTHE
HARDWARE
CREATINGTHE URLTO CONNECTTO
AWS IOT CORE
STRATINGTHE MQTT PROTOCOLTO
RECEIVE DATA
DATA RECEIVEDTHROIGHT MQTT
PROTOCOL
DATA STORED IN AWS DYNAMO DB
DATA SEEN FROMTHE OUTPUT
SCREEN OF ARDUINO IDE
LETS GO FOR
DEMO
LIMITATION
S of
DynamoDB
64KB limit on item size (row size)
1 MB limit on fetching data
Pay more if you want strongly consistent data
Size is multiple of 4KB (provisioning throughput wastage)
Cannot join tables
Indexes should be created during table creation only
No triggers or server side scripts
Limited comparison capability (no not_null, contains etc)
References ■ https://docs.aws.amazon.com/amazondyn
amodb/
■ http://en.wikipedia.org/wiki/Consistent_ha
shing
■ https://youtu.be/vCRXqVld8_c
■ https://youtu.be/28FS2qix2u4
■ https://electronicsinnovation.com/storing-
esp8266-data-into-amazon-dynamodb-
using-aws-iot-coremqtt-arduino/
■ https://www.slideshare.net/AmazonWebSe
rvices/introduction-to-amazon-dynamodb-
73191648
THANKYOU
Dynamodb ppt

More Related Content

What's hot

What's hot (20)

Amazon Redshift
Amazon Redshift Amazon Redshift
Amazon Redshift
 
Big Data Analytics Architectural Patterns and Best Practices (ANT201-R1) - AW...
Big Data Analytics Architectural Patterns and Best Practices (ANT201-R1) - AW...Big Data Analytics Architectural Patterns and Best Practices (ANT201-R1) - AW...
Big Data Analytics Architectural Patterns and Best Practices (ANT201-R1) - AW...
 
Introduction to Amazon EC2
Introduction to Amazon EC2Introduction to Amazon EC2
Introduction to Amazon EC2
 
Introduction to Amazon EC2
Introduction to Amazon EC2Introduction to Amazon EC2
Introduction to Amazon EC2
 
AWS 101: Introduction to AWS
AWS 101: Introduction to AWSAWS 101: Introduction to AWS
AWS 101: Introduction to AWS
 
Introduction to Amazon Relational Database Service
Introduction to Amazon Relational Database ServiceIntroduction to Amazon Relational Database Service
Introduction to Amazon Relational Database Service
 
AWS Lambda를 기반으로한 실시간 빅테이터 처리하기
AWS Lambda를 기반으로한 실시간 빅테이터 처리하기AWS Lambda를 기반으로한 실시간 빅테이터 처리하기
AWS Lambda를 기반으로한 실시간 빅테이터 처리하기
 
Intro to AWS Lambda
Intro to AWS Lambda Intro to AWS Lambda
Intro to AWS Lambda
 
Intro to AWS: EC2 & Compute Services
Intro to AWS: EC2 & Compute ServicesIntro to AWS: EC2 & Compute Services
Intro to AWS: EC2 & Compute Services
 
What is AWS?
What is AWS?What is AWS?
What is AWS?
 
AWS Architecting In The Cloud
AWS Architecting In The CloudAWS Architecting In The Cloud
AWS Architecting In The Cloud
 
Introducing AWS Elastic Beanstalk
Introducing AWS Elastic BeanstalkIntroducing AWS Elastic Beanstalk
Introducing AWS Elastic Beanstalk
 
AWS Lake Formation Deep Dive
AWS Lake Formation Deep DiveAWS Lake Formation Deep Dive
AWS Lake Formation Deep Dive
 
AWS Webcast - Website Hosting in the Cloud
AWS Webcast - Website Hosting in the CloudAWS Webcast - Website Hosting in the Cloud
AWS Webcast - Website Hosting in the Cloud
 
Intro to AWS: Database Services
Intro to AWS: Database ServicesIntro to AWS: Database Services
Intro to AWS: Database Services
 
ABCs of AWS: S3
ABCs of AWS: S3ABCs of AWS: S3
ABCs of AWS: S3
 
AWS Simple Storage Service (s3)
AWS Simple Storage Service (s3) AWS Simple Storage Service (s3)
AWS Simple Storage Service (s3)
 
실시간 스트리밍 분석 Kinesis Data Analytics Deep Dive
실시간 스트리밍 분석  Kinesis Data Analytics Deep Dive실시간 스트리밍 분석  Kinesis Data Analytics Deep Dive
실시간 스트리밍 분석 Kinesis Data Analytics Deep Dive
 
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
 
Webinar | Introduction to Amazon DynamoDB
Webinar | Introduction to Amazon DynamoDBWebinar | Introduction to Amazon DynamoDB
Webinar | Introduction to Amazon DynamoDB
 

Similar to Dynamodb ppt

Similar to Dynamodb ppt (20)

Introducing the ultimate MariaDB cloud, SkySQL
Introducing the ultimate MariaDB cloud, SkySQLIntroducing the ultimate MariaDB cloud, SkySQL
Introducing the ultimate MariaDB cloud, SkySQL
 
Aerospike Hybrid Memory Architecture
Aerospike Hybrid Memory ArchitectureAerospike Hybrid Memory Architecture
Aerospike Hybrid Memory Architecture
 
AWS Analytics
AWS AnalyticsAWS Analytics
AWS Analytics
 
Redshift overview
Redshift overviewRedshift overview
Redshift overview
 
Argus Production Monitoring at Salesforce
Argus Production Monitoring at SalesforceArgus Production Monitoring at Salesforce
Argus Production Monitoring at Salesforce
 
Argus Production Monitoring at Salesforce
Argus Production Monitoring at Salesforce Argus Production Monitoring at Salesforce
Argus Production Monitoring at Salesforce
 
Building Your Data Warehouse with Amazon Redshift
Building Your Data Warehouse with Amazon RedshiftBuilding Your Data Warehouse with Amazon Redshift
Building Your Data Warehouse with Amazon Redshift
 
[よくわかるAmazon Redshift in 大阪]Amazon Redshift最新情報と導入事例のご紹介
[よくわかるAmazon Redshift in 大阪]Amazon Redshift最新情報と導入事例のご紹介[よくわかるAmazon Redshift in 大阪]Amazon Redshift最新情報と導入事例のご紹介
[よくわかるAmazon Redshift in 大阪]Amazon Redshift最新情報と導入事例のご紹介
 
Public Cloud Workshop
Public Cloud WorkshopPublic Cloud Workshop
Public Cloud Workshop
 
AWS Webcast - Redshift Overview and New Features
AWS Webcast - Redshift Overview and New Features AWS Webcast - Redshift Overview and New Features
AWS Webcast - Redshift Overview and New Features
 
London Redshift Meetup - July 2017
London Redshift Meetup - July 2017London Redshift Meetup - July 2017
London Redshift Meetup - July 2017
 
AWS Certified Cloud Practitioner Course S11-S17
AWS Certified Cloud Practitioner Course S11-S17AWS Certified Cloud Practitioner Course S11-S17
AWS Certified Cloud Practitioner Course S11-S17
 
Chicago Kafka Meetup
Chicago Kafka MeetupChicago Kafka Meetup
Chicago Kafka Meetup
 
Introduction to ClustrixDB
Introduction to ClustrixDBIntroduction to ClustrixDB
Introduction to ClustrixDB
 
Red Hat Storage Roadmap
Red Hat Storage RoadmapRed Hat Storage Roadmap
Red Hat Storage Roadmap
 
Red Hat Storage Roadmap
Red Hat Storage RoadmapRed Hat Storage Roadmap
Red Hat Storage Roadmap
 
(ISM304) Oracle to Amazon RDS MySQL & Aurora: How Gallup Made the Move
(ISM304) Oracle to Amazon RDS MySQL & Aurora: How Gallup Made the Move(ISM304) Oracle to Amazon RDS MySQL & Aurora: How Gallup Made the Move
(ISM304) Oracle to Amazon RDS MySQL & Aurora: How Gallup Made the Move
 
Leveraging Amazon Redshift for your Data Warehouse
Leveraging Amazon Redshift for your Data WarehouseLeveraging Amazon Redshift for your Data Warehouse
Leveraging Amazon Redshift for your Data Warehouse
 
In-memory ColumnStore Index
In-memory ColumnStore IndexIn-memory ColumnStore Index
In-memory ColumnStore Index
 
Big Data on AWS
Big Data on AWSBig Data on AWS
Big Data on AWS
 

Recently uploaded

Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
WSO2
 
TrustArc Webinar - Unified Trust Center for Privacy, Security, Compliance, an...
TrustArc Webinar - Unified Trust Center for Privacy, Security, Compliance, an...TrustArc Webinar - Unified Trust Center for Privacy, Security, Compliance, an...
TrustArc Webinar - Unified Trust Center for Privacy, Security, Compliance, an...
TrustArc
 

Recently uploaded (20)

Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
Simplifying Mobile A11y Presentation.pptx
Simplifying Mobile A11y Presentation.pptxSimplifying Mobile A11y Presentation.pptx
Simplifying Mobile A11y Presentation.pptx
 
WSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering Developers
 
ChatGPT and Beyond - Elevating DevOps Productivity
ChatGPT and Beyond - Elevating DevOps ProductivityChatGPT and Beyond - Elevating DevOps Productivity
ChatGPT and Beyond - Elevating DevOps Productivity
 
Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Less Is More: Utilizing Ballerina to Architect a Cloud Data Platform
Less Is More: Utilizing Ballerina to Architect a Cloud Data PlatformLess Is More: Utilizing Ballerina to Architect a Cloud Data Platform
Less Is More: Utilizing Ballerina to Architect a Cloud Data Platform
 
Decarbonising Commercial Real Estate: The Role of Operational Performance
Decarbonising Commercial Real Estate: The Role of Operational PerformanceDecarbonising Commercial Real Estate: The Role of Operational Performance
Decarbonising Commercial Real Estate: The Role of Operational Performance
 
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontology
 
Design and Development of a Provenance Capture Platform for Data Science
Design and Development of a Provenance Capture Platform for Data ScienceDesign and Development of a Provenance Capture Platform for Data Science
Design and Development of a Provenance Capture Platform for Data Science
 
Modernizing Legacy Systems Using Ballerina
Modernizing Legacy Systems Using BallerinaModernizing Legacy Systems Using Ballerina
Modernizing Legacy Systems Using Ballerina
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
 
The Zero-ETL Approach: Enhancing Data Agility and Insight
The Zero-ETL Approach: Enhancing Data Agility and InsightThe Zero-ETL Approach: Enhancing Data Agility and Insight
The Zero-ETL Approach: Enhancing Data Agility and Insight
 
TrustArc Webinar - Unified Trust Center for Privacy, Security, Compliance, an...
TrustArc Webinar - Unified Trust Center for Privacy, Security, Compliance, an...TrustArc Webinar - Unified Trust Center for Privacy, Security, Compliance, an...
TrustArc Webinar - Unified Trust Center for Privacy, Security, Compliance, an...
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 
Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)
 

Dynamodb ppt

  • 1. REALTIME RECORDIN G OF DATA IN AWS DYNAMO DB BY: Shelly & Sagar
  • 2. overview ■ BRIEF HISTORY OF DATA PROCESSING ■ RELATIONAL (SQL)VS. NONRELATIONAL (NOSQL) ■ Why noSQL? ■ ACIDVS CAP ■ DynamoDB- what is it? ■ DynamoDB ARCHITECTURE ■ Conditional Writes ■ Provisioned throughput ■ QUERYVS SCAN ■ Operations ■ Benefits ■ Limitations ■ DEMO
  • 4. RELATIONAL (SQL)VS. NONRELATIONAL (NOSQL) Optimised for storage Optimised for compute Normalized/relational Denormalized/hierarchical Ad hoc queries Instantiated views Scale vertically Scale horizontally Good for OLAP Built for OLTP at scale SQL NOSQL
  • 7. Why noSQL? ■ DataVelocity – Huge data getting generated in less time ■ DataVariety – Structured, semi-structures and unstructured ■ DataVolume –Terabytes and petabytes of data ■ Dynamic Schema – Flexible data model ■ Auto-sharding – Horizontal scalability ■ Continuous Availability ■ Integrated Caching ■ Replication – Automatic replication to support high availability ■ Dynamic provisioned throughput
  • 8. Acid vs CAP ■ ACID properties relates to relational databases • Atomicity – Requires each transaction to be all or nothing • Consistency – Brings databases from one valid state to another • Isolation –Takes care of concurrent execution and avoid overwriting • Durability – Committed transactions will remain so in the event of power loss, crashes etc. ■ CAP theorem relates to noSQL database • Consistency – All nodes see the same data at the same time • Availability – A guarantee that every request receives a response about whether it was successful or failed • Partition tolerance –The system continues to operate despite arbitrary message loss or failure of part of the system)
  • 9. DynamoDB- what is it? ■ Fully managed nosql database service on AWS ■ Data model in the form of tables ■ Data stored in the form of items (name – value attributes) ■ Automatic scaling ■ – Provisioned throughput – Storage scaling – Distributed architecture ■ Easy Administration ■ Monitoring of tables using CloudWatch ■ Integration with EMR (Elastic MapReduce) ■ – Analyze data and store in S3
  • 10. BENEFITS OF DYNAMODB  CONSISTERNT,PREDICTABLE PERFORAMNCE • single milli second latency • < 5ms reads OR <10ms writes • backed by SSD drives  FLEXIBLE DATA MODEL • key/attribute pairs • no schema required • easy to create and adjust  SEAMLESS SCALABILITY • no table size limits • unlimited storage • no downtime  DURABLE • consistent disk writes only • replication across data canters and availability zones
  • 11. DynamoDB ARCHITECTURE PRIMARY KEY (MANDATO RY FOR EVERY TABLE) – HASH OR HASH + RANGE DATA MODEL IN THE FORM OF TABLES DATA STORED IN THE FORM OF ITEMS (NAME – VALUE ATTRIBUTE S) SECONDAR Y INDEXES FOR IMPROVED PERFORMA NCE – LOCALSEC ONDARYIN DEX – GLOBALSE CONDARYI NDEX • SCALAR DATA TYPE (NUMBER, STRING ETC) OR
  • 12. QUERYVS SCAN • Query – Search based on primary key and examines only matching data – Maximum 1MB result – Query result sorted by range key – Query result can be opted to give strong consistency – Query can be done based on secondary index – Requires less provisioned throughput – Query performance depends on amount of data retrieved • Scan – Examines every item and then applies filter – Maximum 1MB result – Scan result is always eventually consistent – Required high provisioned throughput – Scan performance depends on table size – Secondary index does not have any impact on scan performance – Parallel scan can be performed usingTotalSegments
  • 13. Components of the System Nodemcu DHT11 temperature and moisture sensor OLED Display
  • 15. Code –To connect to AWS IOT server ■ #include "FS.h" #include <ESP8266WiFi.h> #include <PubSubClient.h #include <NTPClient.h> #include <WiFiUdp.h> const char* AWS_endpoint = "a3hu9vk57nb9k8-ats.iot.us-east- 1.amazonaws.com"; //MQTT broker ipvoid callback(char* topic, byte* payload, unsigned int length) { Serial.print("Message arrived ["); Serial.print(topic); Serial.print("] "); for (int i = 0; i < length; i++) { Serial.print((char)payload[i]); } Serial.println(); } WiFiClientSecure espClient; PubSubClient client(AWS_endpoint, 8883, callback, espClient)
  • 16. Library for showing data on OLED Display ■ #include <Wire.h> #include <Adafruit_GFX.h> #include <Adafruit_SSD1306.h> #define SCREEN_WIDTH 128 // OLED display width, in pixels #define SCREEN_HEIGHT 64 // OLED display height, in pixels // Declaration for an SSD1306 display connected to I2C (SDA, SCL pins) Adafruit_SSD1306 display(SCREEN_WIDTH, SCREEN_HEIGHT, &Wire, -1);
  • 17. Library for reading from DHT sensor ■ #include <DHT.h> void loop() { float h = dht.readHumidity(); // Reading Temperature form DHT sensor float t = dht.readTemperature(); // Reading Humidity form DHT sensor float tF=(t*1.8)+32; if (isnan(h) || isnan(t)) { Serial.println("Failed to read from DHT sensor!"); return;
  • 22. DATA STORED IN AWS DYNAMO DB
  • 23. DATA SEEN FROMTHE OUTPUT SCREEN OF ARDUINO IDE
  • 25. LIMITATION S of DynamoDB 64KB limit on item size (row size) 1 MB limit on fetching data Pay more if you want strongly consistent data Size is multiple of 4KB (provisioning throughput wastage) Cannot join tables Indexes should be created during table creation only No triggers or server side scripts Limited comparison capability (no not_null, contains etc)
  • 26. References ■ https://docs.aws.amazon.com/amazondyn amodb/ ■ http://en.wikipedia.org/wiki/Consistent_ha shing ■ https://youtu.be/vCRXqVld8_c ■ https://youtu.be/28FS2qix2u4 ■ https://electronicsinnovation.com/storing- esp8266-data-into-amazon-dynamodb- using-aws-iot-coremqtt-arduino/ ■ https://www.slideshare.net/AmazonWebSe rvices/introduction-to-amazon-dynamodb- 73191648