Amazon DynamoDB is a nonrelational database that delivers reliable performance at any scale. It’s a fully managed, multi-region, multi-master database that provides consistent single-digit millisecond latency, and offers built-in security, backup and restore, and in-memory caching.
~ Automated data duplication over three availability-zones in a sole region.
~ A provisioned-throughput model where you can easily adjust the read and write units at any given time formed on the authentic application usage.
~ Data can be backed up to S3.
~ Pay-per-use model – you only pay for what you use, you don’t have to pay for any hardware or service that you haven’t used.
~ With the help of Amazon’s IAM Service you can apply security and access control.
In DynamoDB, all the tables, items, and attributes are the main elements that you actually work with. A table is generally a group of items, and each item is a group of attributes. DynamoDB uses the main keys to remarkably recognize each item in the table and alternate indexes to support more querying flexibility.
The basic DynamoDB components:
Items are accessed using their primary key, but you can also use indexes. Indexes give a substitute (and performant) way of retrieving the data. Each index has its own main key and this key is used when they perform index lookups.
DynamoDB supports 2 types of index
1. Local secondary index
2. Global secondary index
A global secondary indexes is called global because it applies to the entire table, and secondary because the first real index is the primary hash key. In contrast, local secondary indexes are said to be local to a specific hash key. In that case you could have multiple items with the same hash key, but different range keys, and you could access those items using only the hash key.
Query level: create, update, delete, list, describe
Item/attribute level: add, update, delete
Query: query a table with hash key and range key. Result limit 1 MB
Scan: reads all items from table
Amazon DynamoDB has gained a lot of popularity in gaming & IoT industry. We have experienced developers who provide you the best Amazon Web Services. If you have a project and need our help then you can get in touch with our team.