DynamoDB
Write Capacity Unit
Example: we write 10 objects per second of 2KB each.
- we need 2 * 10 = 20 WCU
DynamoDB
Read Capacity Unit
DynamoDB Streams
DynamoDB Stream View Types
KEYS_ONLY
NEW_IMAGE
OLD_IMAGE
NEW_AND_OLD_IMAGE
DynamoDB
Global Secondary Index
DynamoDB
Local Secondary Index
DynamoDB
Scan Operations
DynamoDB
ProvisionedThroughputExceededExceptions
◦ Reasons: ‣ Hot Keys: one partition key is being read too much ‣ Hot Partitions: ‣ Large Items: ◦ Solutions ‣ Exponential back-off ‣ Distribute the partitions keys are much as possible ‣ If RCU issue using DAX caching
DynamoDB Stream Type: KEYS_ONLY
only the key attribute of the modified item are written
DynamoDB Stream Type: NEW_IMAGE
the entire item after it was modified is written
DynamoDB Stream Type: OLD_IMAGE
the entire item before it was modified is written to the stream
DynamoDB Stream Type: NEW_AND_OLD_IMAGE
both new and old image are written to the stream