# DynamoDB
#aws #cloud #databases #nosql
Key value and document fully serverless database NoSQL solution by AWS which can guarantee consistent read and write speed at any scale. It is not relational like a RDS and is a table not a database
Features:
- Fully managed
- Scales Horizontally
- Multiregion
- Multimaster
- Durable database
- Built-in Security
- Backup and restore
- In-memory cacheing
Provides: Eventual Consistent Reads (default) Strongly Consistent Reads
# Table Structure
# Reads:
When data needs to be updated it has to write updates to all copies. It is possible for data to be inconsistent if you are reading from a copy which has yet to be updated. You have the ability to choose the read consistency in DynamoDB to meet your needs.
# DynamoDB Streams
Creates a sort of queue when ever a item is modified for 24 hour. The information could be created on certain triggers.
# DAX
A highly available, in memory cache for DynamoDB, which improves performance to microsecond level. It only optimizes the read latency and you will not need to modify application logic and can be easily be introduced to application utilizing the DynamoDB directly.
- Optimized only for DynamoDB
- Does not support lazy loading
- Elasticache will be harder to be implemented than DAX
- Elasticachedoesnot work out of the box like DAX even though elasticace supports datastores required for DynamoDB
# DynamoDB Global tables
A multi region or multi active database (Multi-master) which does asynchronous replication across different regions.