A DynamoDB optimistic update fails its expected-version condition because another request changed the item. What should the application do?

Published
  1. Remove the condition and overwrite the current item without checking.
  2. Treat it as a concurrency conflict, reread if appropriate, and retry only after re-evaluating the intended business change.
  3. Retry the same stale version forever without reading current state.
  4. Assume the failed condition means DynamoDB stored the stale update anyway.

Comments — 0