kitar / laravel-dynamodb

A DynamoDB based Eloquent model and Query builder for Laravel.
MIT License
179 stars 27 forks source link

Support Transaction #8

Open kitar opened 4 years ago

kitar commented 4 years ago

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.