ComenzarEmpieza gratis

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?

Este ejercicio forma parte del curso

Using Data Stores in AWS

Ver curso

Ejercicio interactivo práctico

Pon en práctica la teoría con uno de nuestros ejercicios interactivos

Empezar ejercicio