Dynamo DB
Dynamo DB
Dynamo DB
NoSQL
• Storage, retrieval of databases
• NoSQL is a non-relational database that is used to store the data in the nontabular
form.
• Document databases
• Key-value databases
• Wide-column stores
• Graph databases
Document based database
• Stores data in JSON, BSON, or XML documents.
• Flexible schema, other documents in the db need not
have the same schema
• Easy creation and minimal maintenance
• No dynamic relationship b/w documents so they can
independent of each other
Key-Value databases
• Simplest form of nosql db.
• Every data element stored in key-value pairs.
• Values can be strings, numbers or complex objects
• Data retrieved by using a unique key allotted to each data element.
• Simplicity, speed
Wide-column stores
• Store data in column instead of rows.
• designed to read data more efficiently and retrieve the
data with greater speed.
• A columnar database is used to store a large amount of
data.
Graph databases
• Focuses on relationship between the elements.
• Stores data in the form of nodes in the database.
• easy to identify the relationship between the data by
using the links.
• The speed depends upon the number of relationships
among the database elements.
AWS DDB
• Fully managed NoSQL database service that provides
fast and predictable performance with seamless
scalability.
• DynamoDB provides on-demand backup capability.
It allows you to create full backups of your tables for
long-term retention.
• OPTIONAL###Programming done using Boto3 library in
python
• You can access Amazon DynamoDB using the AWS
Management Console, AWS CLI, or the DynamoDB
API.
Naming Conventions
• Meaningful and concise.
• Case - sensitive
• Table & index names - 3 – 255 characters
• Attribute names – atleast 1 char long
• Contains [a-z], [A-Z], [0-9], (_),(-),(.)
Data Types
• Scalar Types
• Document Types
• Set Types
Scalar Types
• Can represent only one value--
• Number
• String
• Binary
• Boolean
• Null
Document types
• can represent a complex structure with nested
attributes, such as you would find in a JSON document
• Types are – list, map
Set Types
• Can represent multiple scalar values-
• Types – string set, number set, binary set.
Core Components
• Tables – group of items
• Items – group of attributes (ROWS)
• Attributes – data element (COLUMN)
Primary key
**primary key must be scalar(single value), string, number or binary.
Provide primary key at the time of table creation.