0% found this document useful (0 votes)
2 views

Load Data into a

The document outlines a project using Amazon DynamoDB, a fully managed NoSQL database known for its speed and flexibility. The author details their experience creating tables, loading data, and managing attributes, highlighting the advantages of DynamoDB over relational databases, such as its ability to handle dynamic schemas. Additionally, it discusses the use of AWS CloudShell and CLI for efficient resource management and data loading.

Uploaded by

teatinosnothotel
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views

Load Data into a

The document outlines a project using Amazon DynamoDB, a fully managed NoSQL database known for its speed and flexibility. The author details their experience creating tables, loading data, and managing attributes, highlighting the advantages of DynamoDB over relational databases, such as its ability to handle dynamic schemas. Additionally, it discusses the use of AWS CloudShell and CLI for efficient resource management and data loading.

Uploaded by

teatinosnothotel
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 14

nextwork.

org

Load Data into a


DynamoDB Table
Dineshraj Dhanapathy
Dineshraj Dhanapathy
NextWork Student NextWork.org

Introducing Today's Project!


What is Amazon DynamoDB?
Amazon DynamoDB is a fully managed NoSQL database that offers fast
performance, scalability, and flexibility. It’s useful for handling high-traffic
applications, real-time data, and dynamic schemas.

How I used Amazon DynamoDB in this project


In today's project, I used Amazon DynamoDB to create tables, load data, and
update records. I also explored batch writing, querying, and managing attributes,
gaining hands-on experience with NoSQL databases.

One thing I didn't expect in this project was...


One thing I didn't expect in this project was how flexible DynamoDB is compared to
relational databases. Being able to store items with different attributes without a
fixed schema was really insightful.
Dineshraj Dhanapathy
NextWork Student NextWork.org

This project took me...


This project took me a few hours to complete, including creating tables, loading
data, and updating records. Exploring DynamoDB’s flexibility and speed made the
learning process engaging and valuable.
Dineshraj Dhanapathy
NextWork Student NextWork.org

Create a DynamoDB table


DynamoDB tables organize data using items and attributes instead of fixed rows
and columns. Each item can have a unique set of attributes, offering flexibility not
possible in relational databases.

An attribute is a piece of data describing an item in DynamoDB. Each item can have
multiple attributes, and unlike relational databases, items in DynamoDB can have
unique attribute sets.
Dineshraj Dhanapathy
NextWork Student NextWork.org
Dineshraj Dhanapathy
NextWork Student NextWork.org

Read and Write Capacity


Read capacity units (RCUs) and write capacity units (WCUs) are measures of
DynamoDB's performance. 1 RCU supports 2 reads/sec, while 1 WCU allows 1
write/sec. Usage impacts cost and scalability.

Amazon DynamoDB's Free Tier covers 25GB storage, 25 RCUs, and 25 WCUs,
handling 200M requests/month for free. I turned off auto scaling to avoid
unexpected costs and control resource allocation.
Dineshraj Dhanapathy
NextWork Student NextWork.org
Dineshraj Dhanapathy
NextWork Student NextWork.org

Using CLI and CloudShell


AWS CloudShell is a browser-based shell in the AWS Management Console that
lets you run commands. It comes with AWS CLI pre-installed, making it easy to
manage AWS resources without setup.

AWS CLI is a command-line tool that allows users to create, manage, and automate
AWS resources using commands instead of the AWS console, making cloud
operations faster and more efficient.

I ran a CLI command in AWS CloudShell that created four DynamoDB tables:
ContentCatalog, Forum, Post, and Comment, each with defined attributes, key
schemas, and provisioned throughput settings.
Dineshraj Dhanapathy
NextWork Student NextWork.org

Loading Data with CLI


I ran a CLI command in AWS CloudShell that used batch-write-item to load data
into four DynamoDB tables: ContentCatalog, Forum, Post, and Comment, by
reading data from JSON files.
Dineshraj Dhanapathy
NextWork Student NextWork.org

Observing Item Attributes


Dineshraj Dhanapathy
NextWork Student NextWork.org

I checked a ContentCatalog item, which had the following attributes: id, content
type, difficulty, price, project category, URL, published status, and title—all defining
the project’s details.

I checked another ContentCatalog item, which had a different set of attributes:


Services, title, URL, videotype, etc.,
Dineshraj Dhanapathy
NextWork Student NextWork.org

Benefits of DynamoDB
A benefit of DynamoDB over relational databases is flexibility because each item
can have unique attributes, unlike relational databases that require uniform
columns. This makes it ideal for e-commerce and dynamic data.

Another benefit over relational databases is speed because DynamoDB uses


partition keys to quickly locate items, while relational databases must scan entire
tables, which slows down performance for large datasets.
Dineshraj Dhanapathy
NextWork Student NextWork.org
NextWork.org

Everyone
should be in a
job they love.
Check out nextwork.org for
more projects

You might also like