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
Is it possible to know the reason of heartbeat failure #6
I am writing an application and want to use this client in my leasing algorithm. I understand that I can pass a handler that lock client will call in case heartbeat fails or lock is expired. However this can also happen due to failure to contact dynamodb. Is it possible to find out what happened. I want my application to have different behavior in case dynamodb outage and different in case the lock is actually expired.
Transaction support in DynamoDB, recently released may shed some light as to the reasons why conditional updates / puts / deletes fail. I will investigate adding support for this.
Hi,
I am writing an application and want to use this client in my leasing algorithm. I understand that I can pass a handler that lock client will call in case heartbeat fails or lock is expired. However this can also happen due to failure to contact dynamodb. Is it possible to find out what happened. I want my application to have different behavior in case dynamodb outage and different in case the lock is actually expired.
Thanks