ExitAmazon DynamoDB: shared application state1 / 9
Explanation

A fresh read is not a lock

How DynamoDB preserves shared-state correctness under concurrent access, retries, expiration, and item-size constraints. · advanced

For shared application state, separate freshness from isolation. DynamoDB provides read-committed isolation: reads return committed item values, never values from writes that ultimately failed. However, the default eventually consistent read can omit a recently completed successful write.

On a table or local secondary index, set ConsistentRead to true to request a strongly consistent read. It returns the latest data reflecting all prior successful writes. Global secondary indexes and DynamoDB Streams support only eventual reads, so freshness requirements constrain the access path as well as the request setting.

Read-committed isolation does not prevent another worker from modifying an item immediately after it is read. Even a strong read therefore supplies fresh information, not a lock protecting a later write. A worker can read the latest value and still act on information that another worker subsequently changes.

Read modeFreshnessSupported pathsBlocks later changes
EventualRecent writes may be absentTables, LSIs, GSIs, streamsNo
StrongAll prior successful writesTables and LSIsNo