DynamoDB
Last updated
Last updated
Amazon DynamoDB is a fully managed NoSQL database service offered by Amazon Web Services (AWS).
It is designed for developers who need a fast, scalable, and highly available database for modern applications.
it can store any amount of data and serve any amount of traffic, therefore, you can expect a good performance even when it scales up.
At a high level, Amazon DynamoDB is designed for high availability, durability, and consistently low latency (typically in the single digit milliseconds) performance.
Amazon DynamoDB runs on a fleet of AWS managed servers that leverage solid state drives (SSDs) to create an optimized, high-density storage platform.
This platform decouples performance from table size and eliminates the need for the working set of data to fit in memory while still returning consistent, low latency responses to queries.
As a managed service, Amazon DynamoDB abstracts its underlying architectural details from the user.
Main Components
Attributes
This is the simplest element in DynamoDB that stores data without any further division. Each attribute has a name and a value.
DynamoDB supports various data types for attributes, including strings, numbers, binary data, lists, and maps. Attributes are used to store the actual data in your items.
Items
Items are individual data records within a DynamoDB table.
Tables
Tables are the highest-level data structures in DynamoDB. They are where you store your data.
Each table consists of items, and each item represents an individual data record.
Tables are schema-less, meaning that items within a table do not need to have the same attributes, allowing flexibility in your data modeling.
DynamoDB is schema-less, and what does schema-less mean? it means that DynamoDB doesn’t require a schema to create a table, allowing you to define your data structure dynamically.
It utilizes the concept of items (records) and attributes (fields) to store and retrieve data.
The structure of a DynamoDB table is also comprised of Primary Keys, Partition Keys, Sort Keys and Partitions
Basically keys work the same as it happens in JSON documents
Real-time Application
Require low-latency access to data.
Internet of Things (IoT) applications for managing device data.
Gaming applications for user profiles, leaderboards, and in-game items.
Session Management & User Authentication
For web and mobile apps
Ad Tech Platform
For tracking user behavior and ad impressions.
Content Management Systems and catalogs
Sign in to the AWS Management Console and open the DynamoDB console.
In the navigation pane on the left side of the console, choose Dashboard.
On the right side of the console, choose Create Table.
Fill in the table details as depicted below
After filling in the details click on Create:
At this point your table is ready and you can start adding data into it.