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

Batch Locking #40

Open
krishnalpatel opened this issue Jul 17, 2019 · 0 comments
Open

Batch Locking #40

krishnalpatel opened this issue Jul 17, 2019 · 0 comments

Comments

@krishnalpatel
Copy link

Provide ability to acquire lock on multiple keys in a single dynamo db query (BatchPutItem or BatchWriteItem)
Currently, the implementation of acquireLock is such that it can only acquire lock for a single key at a time, using PutItem
We have a use case where we need to iterate over a list of objects and acquire a lock on each before proceeding further. When this list hits a considerable size, having multiple dynamodb queries increases the latency manifolds. We were looking on acquiring all the locks in a single query and release them in a single query as well to avoid multiple dynamodb queries and thereby improving latency.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant