Get startedGet started for free

Preventing race conditions with conditions

Two processes are trying to update the same user's email address simultaneously:

Both use updateitem() with ConditionExpression='email = :oldemail' where :old_email = '[email protected]'. Process A executes first and succeeds.

What happens when Process B executes immediately after?

This exercise is part of the course

Using Data Stores in AWS

View Course

Hands-on interactive exercise

Turn theory into action with one of our interactive exercises

Start Exercise