AWS, Dynamodb, Database, Distributed Systems, NoSQL.
(MVCC), but that’s out of the scope for this article. Therefore, in our idempotency use case with DynamoDB we are using the first technique, i.e. optimistic locking; by using conditional writes. Phantom read problems are very common in systems where multiple processes may update the same record