All technological notes.
Amazon DynamoDB 常考篇目NoSQL database
Scales to massive workloads, distributed database
IAM for security, authorization and administrationStandard & Infrequent Access (IA) Table ClassDynamoDB is made of Tables
table has a Primary Key (must be decided at creation time)table can have an infinite number of items (= rows)item has attributes (can be added over time – can be null)
item is 400KB(not suitable to store large objects)DynamoDB you can rapidly evolve schemas
Control how you manage your table’s capacity (read/write throughput)
Provisioned Mode (default)
Read Capacity Units (RCU) & Write Capacity Units (WCU)On-Demand Mode
Sample:
DynamoDB Stream ProcessingOrdered stream of item-level modifications (create/update/delete) in a table
Use cases:
AWS Lambda on changes to your DynamoDB table2 Types of Stream processing in DynamoDB
DynamoDB Streams
AWS Lambda Triggers, or DynamoDB Stream Kinesis adapterKinesis Data Streams (newer)
AWS Lambda, Kinesis Data Analytics, Kineis Data Firehose, AWS Glue Streaming ETL
DynamoDB Streams allows you to capture a time-ordered sequence of item-level modifications in a DynamoDB table. It’s integrated with AWS Lambda so that you create triggers that automatically respond to events in real-time.TTL)Automatically delete items after an expiry timestamp
Use cases:
sample:
Continuous backups using point-in-time recovery (PITR)
Point-in-time recovery to any time within the backup windowOn-demand backups
AWS Backup (enables cross-region copy)S3 (must enable PITR)
JSON or ION formatETL on top of S3 data before importing back into DynamoDB
CSV, DynamoDB JSON or ION formatCloudWatch Logs
DynamoDB Accelerator (DAX)DynamoDB5 minutes TTL for cache (default)
ProvisionedThroughputExceededException exception. What would you do to prevent this error from happening again?
ProvisionedThroughputExceededException exception.DynamoDB Accelerator (DAX) vs. ElastiCache
DynamoDB Global Tables(multiple-regions)Active-Active replication
DynamoDB Streams as a pre-requisite
DynamoDB Global Table. What needs to be enabled first before you create a DynamoDB Global Table?
DynamoDB Streams enable DynamoDB to get a changelog and use that changelog to replicate data across replica tables in other AWS Regions.





