DDB Flashcards
(10 cards)
DDB row limits
Each row maximum 400kb including primary key(s) (keys, if its a composite key)
RCU and WCU speeds
1WCU - write 1kb per second
1RCU - read 4kb per second (strongly consistent read) (connects to leader/writer node directly)
1RCU - read 8kb per second (eventual consistent read)
Backups in DDB
On-demand
- You manually do full copy of table and remove when backup not needed anymore.
- Use case is backing up and migrating data to another region
Point in time recovery
- Disabled by default
- 1s granularity
- Per table basis
Query vs Scan in DDB
Query can only filter by primary and sort key.
Scan can filter by other columns. RCU will still be used on the rows touched by the scan - not just the results of the scan
LSI vs GSI
LSI
- Extra sort keys (max 5)
- Must be created during table creation
- Uses RCU and WCU from base table
GSI
- Created at any time
- New partition and sort key based on base table
- New set of RCU and WCU from base table
- Eventually consistent. Replication from base to GSI is async
DDB Global Tables architecture and conflict resolution
Master-master replication. All countries re writers and readers. Sub-second replication to other instances. Last writer wins
AWS ElasticSearch is not server less
Not serverless. AWS injects compute into your VPC
AWS Neptune
Graph DB. Feature set like RDS
AWS Quantum Ledger DB
Immutable, append-only, ledger db. Blockchain essentially, but not a publicly accessible one. Document db model.
AWS Athena
Pay as you go big data query engine. Like presto.
- Define a schema
- On query, data is loaded through this schema