Skip to main content
Cloud aws recommended

DynamoDB Patterns

DynamoDB patterns covering single table design, GSI optimization, access patterns, transactions, TypeScript/Python examples, and NoSQL data modeling best practices.

Difficulty
intermediate
Read time
1 min read
Version
v1.0.0
Confidence
established
Last updated

Quick Reference

DynamoDB: Define access patterns FIRST, then design keys. Single table design for co-located data. PK+SK for hierarchical data. GSI for secondary access patterns (max 20). Prefix keys with entity type (USER#, ORDER#). Transactions for ACID across items (max 100 items, 4MB). Eventually consistent reads by default. 400KB item limit.

Use When

  • DynamoDB data modeling
  • Single table design
  • NoSQL access patterns
  • Serverless databases

Skip When

  • Relational data with complex joins
  • OLAP workloads
  • Full-text search requirements

DynamoDB Patterns

DynamoDB patterns covering single table design, GSI optimization, access patterns, transactions, TypeScript/Python examples, and NoSQL data modeling best practices.

Tags

aws dynamodb nosql database typescript python

Discussion