Level 2 · Systems
Key-value at any scale
Design keys around your access patterns, then test the actual read operation. Secondary indexes can support additional queries, while changing a table’s primary key requires a new table and a migration.
Chapters
- How DynamoDB keys locate your dataYour database key schema is your primary query interface, and choosing the wrong partition key leads to hot partitions and serverless scalability limits.
- Why a DynamoDB scan will destroy your budgetScans read entire tables and consume massive capacity, whereas indexes provide efficient and cost-effective access paths to your data.