Ravi Sir's Cards › AWS
Conditional writes
This revision card explains Conditional writes. It starts from the need that only one booking may win. It describes attribute_not_exists(pk). The how-to section notes lost race — ConditionalCheckFailed. An example on the card is counters: ADD hits :one.
Read card text
What this card says
Why do we need it?
Only one booking may win.
What is it?
attribute_not_exists(pk).
How to do it
Lost race: ConditionalCheckFailed.
Example
Counters: ADD hits :one.