title: DynamoDB Streams and Lambda for transaction processing
body: <p>Can I implement transactions for dynamodb using streams and amazon lambda? </p>
  
  <p>I have a game where players can join a team. There are 2 updates that need to be done.</p>
  
  <ol>
  <li>Update team record (with Conditional - enough room in team)</li>
  <li>Store team id in player record</li>
  </ol>
  
  <p>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.</p>
  
  <p>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?</p>
  
  <p>Only the first write has a conditional from the business point of view. So if the first update succeeds every update has to succeed.</p>