laravel-dynamodb icon indicating copy to clipboard operation
laravel-dynamodb copied to clipboard

Support Transaction

Open kitar opened this issue 6 years ago • 0 comments

Since DynamoDB uses HTTP connection model, it's important to keep requests count as few as possible. For example, if we try to maintain "likes" count, we would do:

  1. Add like if the user didn't liked yet.
  2. If added, increment the counter.

We can execute them in a single request with Transaction.

kitar avatar Apr 10 '20 14:04 kitar