DynamoDB

Amazon DynamoDB 筆記。

What is DynamoDB?

  • Ideal for applications with known access patterns
  • Access through APIs/ORMs and authorized through IAM
  • Managed NoSQL DB optimized for performance at scale
  • Cost effective usage-based payment model

Secondary Indexes

Global Secondary Index (GSI)

An index with a partition key and sort key that can be different from those on the table.

Local Secondary Index (LSI)

An index that has the same partition key as the table, but a different sort key.

Data Types

TypeDescription
BBinary data type (base64-encoded string in JSON)
BOOLBoolean (true or false)
BSSet of binary values
LList of values (can contain different data types)
MMap of attribute name-value pairs
NNumber (positive, negative, or zero)
NSSet of number values
NULLNull data type
SString data type
SSSet of string values