A DynamoDB write has just completed. A Query against a global secondary index briefly does not return the item. The application requested immediate visibility. What should the developer account for?

Published
  1. Repeat the write with a new primary key whenever the index does not show it immediately.
  2. Assume the successful write was rolled back because the index is briefly stale.
  3. Enable ConsistentRead on the GSI to force synchronous propagation.
  4. GSIs are eventually consistent; use an appropriate base-table read when immediate read-after-write consistency is required.

Comments — 0