{"categories":[{"label":"Distributed Computing","url":"https://skillfed.io/packages/category/system-distributed-computing/2"}],"enrichment":{"capability":"Provides distributed locking on top of DynamoDB with configurable retry semantics, heartbeat-based lease management, and lock-theft detection.","skillfed_tags":["dynamodb","distributed-locking","aws"],"use_cases":["Coordinate database writes across multiple application instances to ensure only one process modifies a given resource at a time.","Implement leader election among distributed services using DynamoDB as the coordination backend.","Prevent concurrent execution of expensive batch jobs or scheduled tasks across a fleet of servers.","Serialize access to shared state stored in DynamoDB when multiple Lambda functions or microservices need to update it safely.","Build a distributed job queue where only one worker processes a given job at a time."],"what_it_does":"Python DynamoDB Lock is a distributed locking library built on DynamoDB that emulates the Java-based AmazonDynamoDBLockClient. It allows multiple processes or services to coordinate access to shared resources by acquiring named locks with configurable retry behavior, maintaining them through periodic heartbeats, and automatically releasing them after a configurable lease duration.\n\nThe library supports both coarse-grained and fine-grained locking, stores arbitrary application data alongside locks, and uses monotonically increasing clocks to handle clock skew. It notifies applications via callback if a lock is stolen or nearing expiry. However, the documentation explicitly notes that locks do not participate in distributed transactions\u2014if a heartbeat is delayed beyond the lease duration, another client may acquire the lock while the original holder is still processing, leading to potential data inconsistency if not handled at the application level.","worth_installing":"Yes, with conditions. The package solves a real problem\u2014distributed locking on DynamoDB\u2014and has no known vulnerabilities. However, dormant maintenance (no updates since 2018-10-28) and classifiers limited to Python 3.6 and 3.7 raise questions about compatibility with modern Python versions. Verify it works with your target Python and boto3 versions before relying on it in production. The documented limitations around distributed transactions require careful application-level handling."},"id":"python-dynamodb-lock","links":{"html":"https://skillfed.io/packages/python-dynamodb-lock","md":"https://skillfed.io/packages/python-dynamodb-lock.md","pypi":"https://pypi.org/project/python-dynamodb-lock/"},"maintenance":{"status":"dormant"},"meta":{"latest_release":"2018-10-28","license_spdx":null,"license_treatment":"permissive","name":"python-dynamodb-lock","python_support":"unspecified","summary":"Python library that emulates the java-based dynamo-db-client from awslabs"},"popularity":{"monthly_downloads":519463,"position":6216,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"0.9.1"}
