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 mode | Freshness | Supported paths | Blocks later changes |
|---|---|---|---|
| Eventual | Recent writes may be absent | Tables, LSIs, GSIs, streams | No |
| Strong | All prior successful writes | Tables and LSIs | No |