I need to update quantity attribute of a row in dynamo using a lambda function, if two request comes at same time, they will get same quantity. After update the updated will not be the expected value. Let's say current qty is 4. If two update come with qty 2 at same time then updated value 4+2 for each request. But what the expected qty should be 4+2+2.
I could not find out any solution for this.