AWS/Storage and Databases

[Storage and Databases] Amazon DynamoDB

brightlightkim 2022. 5. 4. 02:27

Nonrelational databases

In a nonrelational database, you create tables. A table is a place where you can store and query data.

Nonrelational databases are sometimes referred to as “NoSQL databases” because they use structures other than rows and columns to organize data. One type of structural approach for nonrelational databases is key-value pairs. With key-value pairs, data is organized into items (keys), and items have attributes (values). You can think of attributes as being different features of your data.

 

In a key-value database, you can add or remove attributes from items in the table at any time. Additionally, not every item in the table has to have the same attributes. 

 

Example of data in a nonrelational database:

 

Key                Value  

1 Name: John Doe
Address: 123 Any Street
Favorite drink: Medium latte
2 Name: Mary Major
Address: 100 Main Street
Birthday: July 5, 1994

Amazon DynamoDB

Amazon DynamoDB is a key-value database service. It delivers single-digit millisecond performance at any scale.

  • Non-relational database
  • Purpose built
  • Millisecond response time
  • Fully managed
  • Highly Scalable

Features of DynamoDB

DynamoDB is serverless, which means that you do not have to provision, patch, or manage servers

 

You also do not have to install, maintain, or operate the software.

 

Automatic scaling

As the size of your database shrinks or grows, DynamoDB automatically scales to adjust for changes in capacity while maintaining consistent performance. 

 

This makes it a suitable choice for use cases that require high performance while scaling.

 

 

Amazon RDS vs DynamoDB

 

  • Relational Database >> Complex analysis of Data
    • Sales Supply Management >> Analyze >> RDS

  • Anything else
    • DynamoDB