2 Antworten
- Neueste
- Die meisten Stimmen
- Die meisten Kommentare
0
It is true that with an atomic counter the updates do not interfere with each other. At the same time you must be aware that the updates are not idempotent.
I the case in which the UpdateItem is unsuccessful, and you get a Network Error for example, you can't be sure that your update was executed or not. Then you probably will retry from your lambda function and the possibility of overcounting exists. So you may end up with the final value of your counter greater than 10 in your example.
If that is acceptable, then great! For scenarios where accuracy is important I advice using transaction with a client request token!
beantwortet vor einem Jahr
Relevanter Inhalt
- AWS OFFICIALAktualisiert vor 2 Jahren
- AWS OFFICIALAktualisiert vor einem Jahr
- AWS OFFICIALAktualisiert vor einem Jahr

Fantastic, thank you for confirming!