{"categories":[{"label":"Distributed Computing","url":"https://skillfed.io/packages/category/system-distributed-computing/2"}],"enrichment":{"capability":"Implements Redis-based distributed locks using the Redlock algorithm, allowing you to acquire and release locks across multiple Redis instances for coordinating access to shared resources.","skillfed_tags":["distributed-locking","redis","abandoned"],"use_cases":["Coordinate job execution across multiple worker processes or machines to ensure only one instance runs a critical task at a time.","Prevent race conditions when multiple application instances need to update a shared resource in a database or external system.","Implement a distributed mutex for protecting access to a limited resource such as a file, API quota, or database connection pool.","Build a distributed task scheduler that ensures a scheduled job runs on only one node in a cluster."],"what_it_does":"redlock-py is a Python implementation of the Redlock distributed lock algorithm, which coordinates access to shared resources across multiple Redis instances. You create a lock manager by pointing it at one or more Redis servers, then call lock() with a resource name and validity duration in milliseconds to acquire a lock, and unlock() to release it. The lock manager returns either False if acquisition failed or a named tuple with the lock's validity period, resource name, and a random key for safe reclamation.\n\nThe package has no runtime dependencies and is straightforward to integrate into applications that need cross-process or cross-machine synchronization. However, it is abandoned\u2014the last release was 2016-03-08 and the declared Python support only extends to 3.4. The author includes a disclaimer that the algorithm is a proposal and was not formally analyzed, so you should understand the algorithm's guarantees and limitations before relying on it in production.","worth_installing":"No. The package is abandoned with last release 2016-03-08 and Python support declared only up to 3.4, creating serious compatibility and maintenance risk. While the MIT license is permissive and there are no known vulnerabilities, the lack of updates and uncertain behavior on modern Python versions makes it unsuitable for new projects. Consider a maintained alternative for production use."},"id":"redlock-py","links":{"html":"https://skillfed.io/packages/redlock-py","md":"https://skillfed.io/packages/redlock-py.md","pypi":"https://pypi.org/project/redlock-py/"},"maintenance":{"status":"abandoned"},"meta":{"latest_release":"2016-03-08","license_spdx":null,"license_treatment":"permissive","name":"redlock-py","python_support":"unspecified","summary":"Redis locking mechanism"},"popularity":{"monthly_downloads":246932,"position":8704,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"1.0.8"}
