This lab walks you through Amazon DynamoDB features. We will create a table in Amazon DynamoDB to store information and then query that information from the DynamoDB table.
Duration: 30 minutes
AWS Region: US East (N. Virginia) us-east-1
DynamoDB is a fast and flexible NoSQL database designed for applications that need consistent, single-digit millisecond latency at any scale.it is a fully managed database and it supports both document and key value data models.
It has a very flexible data model. This means that you don't need to define your database schema upfront. It also has reliable performance.
DynamoDB is a good fit for mobile gaming, ad-tech, IoT and many other applications.
DynamoDB tables consist of
Items (Think of a row of data in a table).
Attributes ((Think of a column of data in a table).
Supports key-value and document data structures.
Key= the name of the data. Value= the data itself.
Document can be written in JSON, HTML or XML.
DynamoDB- Primary Keys
DynamoDB stores and retrieves data based on a Primary key
DynamoDB also uses Partition keys to determine the physical location data is stored.
If you are using a partition key as your Primary key, then no items will have the same Partition key.
Composite Keys (Partition Key + Sort Key) can be used in Combination.
Two items may have the same partition key, but must have a different sort key.
All items with the same partition key are stored together and then sorted according to the sort key value.
DynamoDB allows you to store multiple items with the same partition keys.
Log into AWS Management Console.
Create a DynamoDB table.
Insert data into that DynamoDB table.
Search for an item in the DynamoDB table.