Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Transaction #8

Open
kitar opened this issue Apr 10, 2020 · 0 comments
Open

Support Transaction #8

kitar opened this issue Apr 10, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@kitar
Copy link
Owner

kitar commented Apr 10, 2020

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 kitar added the enhancement New feature or request label Apr 10, 2020
This was referenced Dec 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant