Best Practices

16 articles in this category

Latest articles

10 DynamoDB Advantages and 10 Disadvantages

DynamoDB scales to millions of requests with no DBA, but the 400KB item cap and rigid access patterns bite. Ten upsides, ten tradeoffs, and when to walk.

Reading time: 12 min

DynamoDB Data Types: Every Type, With Examples

The scalar, document, set and binary types DynamoDB supports, how each counts against the 400KB item limit, and the empty-value rules that break writes.

Reading time: 10 min

DynamoDB FAQ: Straight Answers to Common Questions

Items cap at 400KB, transactions are ACID, and there is no open-source build. Short answers on limits, consistency, indexes, scaling and DynamoDB billing.

Reading time: 10 min

DynamoDB GSI: Global Secondary Indexes Explained

A GSI gives your table a second partition key so you stop scanning. Projections, eventual consistency, capacity planning, and sparse and inverted indexes.

Reading time: 11 min

30 DynamoDB Interview Questions and Answers

Thirty questions interviewers actually ask, answered: partition keys, single-table design, capacity units, adaptive capacity, Streams, DAX and GSIs.

Reading time: 15 min

DynamoDB DAX: How the Cache Works and When to Use It

DAX is a write-through cache that drops DynamoDB reads from milliseconds to microseconds. How the item and query caches work, what it costs, when to skip.

Reading time: 12 min

DynamoDB Partition Key vs Sort Key Explained

The partition key decides where an item lives, the sort key decides its order within. How to choose both, and the hot-partition mistakes to avoid.

Reading time: 9 min

DynamoDB Point-in-Time Recovery (PITR) Explained

PITR restores a table to any second in the last 35 days. How to switch it on, how a restore really runs, what it costs, and where on-demand backups win.

Reading time: 8 min

DynamoDB Streams: How Change Capture Works

Streams records a before and after image of every write, kept for 24 hours. How shards and Lambda triggers work, plus replication and aggregation patterns.

Reading time: 14 min

What Is DynamoDB? AWS's NoSQL Database Explained

DynamoDB is AWS's serverless key-value store: single-digit millisecond reads at any scale. How partitions and keys work, what it costs, when to avoid it.

Reading time: 14 min

DynamoDB Best Practices: 10 Rules for Speed and Cost

Ten rules that decide whether DynamoDB runs fast and cheap or slow and expensive: access-pattern design, key cardinality, index restraint, TTL.

Reading time: 15 min

DynamoDB Indexes: LSI vs GSI and When to Use Each

An LSI shares the partition key and must exist from table creation. A GSI can be added later, at its own cost. Which to reach for, and what to project.

Reading time: 14 min

DynamoDB Pricing Explained, With a Cost Calculator

Work out what a table will actually cost. On-demand versus provisioned compared, an interactive calculator, and where the bill usually leaks.

Reading time: 14 min

DynamoDB PutItem vs UpdateItem: Which to Use

PutItem replaces the entire item. UpdateItem changes only the attributes you name. When each is correct, and the silent data loss PutItem can cause.

Reading time: 10 min

DynamoDB Query Examples in CLI, Python and Node

Working Query examples for the AWS CLI, Boto3 and the Node SDK: sort key conditions, GSI queries, pagination, projections and fixes for empty result sets.

Reading time: 12 min

DynamoDB Free Tier: What You Get and What You Pay

25GB of storage plus 25 read and 25 write capacity units, free every month. The exact limits, the charges that catch people out, and how to stay inside.

Reading time: 10 min
16 posts · newest first