ComeçarComece de graça

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 exercício faz parte do curso

Using Data Stores in AWS

Ver curso

Exercício interativo prático

Transforme a teoria em ação com um de nossos exercícios interativos

Começar o exercício