awslabs / amazon-dynamodb-lock-client

The AmazonDynamoDBLockClient is a general purpose distributed locking library built on top of DynamoDB. It supports both coarse-grained and fine-grained locking.
Other
476 stars 87 forks source link

Ability to re-use existing column key and existing table for locking table #28

Open Dheepthi opened 5 years ago

Dheepthi commented 5 years ago

Problem Statement

From the Documentation i found that in-order to acquire lock i need to have a table whose partition key is named as "key". "To use the AmazonDynamoDBLockClient, declare a dependency on the latest version of AmazonDynamoDBLockClient and merge it into your version set. Then, you need to set up a DynamoDB table that has a hash key on a key with the name "key.""

Feature Request

It would be great if I can re-use my existing table say TableName: Sample Partition Key: workspace_id column_2: status column_3: workflow_type

I would like to acquire lock to the key "workspace_id" on the table "sample" so that I dont have to juggle between two tables to find which is locked and which is not.

Appreciate your support.

Regards, Dheepthi