Can I implement transactions for dynamodb using streams and amazon lambda?
I have a game where players can join a team. There are 2 updates that need to be done.
- Update team record (with Conditional - enough room in team)
- Store team id in player record
I have a conditional write on the business side of things, but I am afraid of time outs when executing the second (third, fourth, ...) update that has to be done.
If I make only the first update directly from the PHP code and then use lambda to make the rest of the updates on other records and tables, will all the updates be made?
Only the first write has a conditional from the business point of view. So if the first update succeeds every update has to succeed.