personal reading notes about DynamoDB tips & gotcahs
Disclaimer: I'm super new to DynamoDB, so if you found I wrote something incorrect or stupid, just kindly send me a comment :)
Exists
)primary key
calculate throughput - capacity unit
Scan
request can consume (1 MB page size / 4 KB item size) / 2 (eventually consistent reads) = 128 read operations.Scan
or Query
operations would allow your other critical requests to succeed without throttling.Scan
load by rotating traffic hourly between two tables – one for critical traffic, and one for bookkeeping. Other applications can do this by performing every write on two tables: a "mission-critical" table, and a "shadow" table.LimitExceededException
.QUERY
, must specify the index name to use.See http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/BestPractices.html
See http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Limits.html