{"categories":[{"label":"Distributed Computing","url":"https://skillfed.io/packages/category/system-distributed-computing/2"}],"enrichment":{"capability":"Implements the RedLock algorithm to provide distributed locks across multiple independent Redis nodes, preventing single-point-of-failure issues that arise with single-master Redis lock implementations.","skillfed_tags":["distributed-locking","redis","abandoned"],"use_cases":["Coordinate exclusive access to a shared resource across multiple application instances running on different machines.","Prevent duplicate job execution in a distributed task queue or scheduler when multiple workers might pick up the same task.","Protect critical sections in microservices that need to ensure only one service instance performs a time-sensitive operation at a time.","Implement distributed mutual exclusion for database migrations or schema updates across a cluster without requiring a central lock server."],"what_it_does":"RedLock is a Python implementation of the RedLock distributed locking algorithm, designed to coordinate access to shared resources across multiple independent Redis nodes. Unlike single-master Redis lock libraries, it addresses the race condition that occurs when a Redis master crashes before replicating a lock acquisition to its slave\u2014by requiring a client to acquire the lock on a majority of independent Redis instances, it ensures safety even when individual nodes fail.\n\nThe package provides a threading.Lock-compatible API with both explicit acquire/release methods and context manager support, making it straightforward to protect critical sections in distributed systems. It also includes a RedLockFactory for efficiently reusing Redis client connections across multiple locks. However, the package has not been maintained since 2015 and targets Python 2 and early Python 3 versions, raising concerns about compatibility with current Python environments.","worth_installing":"No. While the package implements a sound algorithm and has no known vulnerabilities, it is abandoned (last release 2015-12-21) and targets Python 2 and Python 3.2\u20133.4. Compatibility with modern Python versions is unverified, and the lack of maintenance means bugs or security issues discovered in the future will not be addressed. For new projects, consider actively maintained alternatives or a more recent RedLock implementation."},"id":"redlock","links":{"html":"https://skillfed.io/packages/redlock","md":"https://skillfed.io/packages/redlock.md","pypi":"https://pypi.org/project/redlock/"},"maintenance":{"status":"abandoned"},"meta":{"latest_release":"2015-12-21","license_spdx":null,"license_treatment":"permissive","name":"redlock","python_support":"unspecified","summary":"Distributed locks with Redis"},"popularity":{"monthly_downloads":160777,"position":10651,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"1.2.0"}
