{"categories":[{"label":"Python Modules","url":"https://skillfed.io/packages/category/software-development-libraries-python-modules/20"}],"enrichment":{"capability":"Implements the Redlock distributed lock algorithm for asyncio, enabling safe resource coordination across multiple Redis instances in async Python applications.","skillfed_tags":["redis","distributed-locks","asyncio"],"use_cases":["Coordinate task execution across multiple async workers to prevent duplicate processing of the same job.","Protect shared resource updates in a distributed system where multiple services need exclusive access.","Implement leader election or distributed consensus primitives in microservices architectures.","Prevent concurrent writes to a shared data store when using multiple async application instances.","Gate access to rate-limited external APIs or services from multiple concurrent async clients."],"what_it_does":"Aioredlock is an asyncio-compatible implementation of the Redlock distributed locking algorithm for Redis. It allows async Python applications to safely coordinate access to shared resources across multiple Redis instances, ensuring that only one client holds a lock at a time even in the presence of network partitions or clock skew.\n\nThe package provides a lock manager that can acquire, extend, and release locks with configurable timeouts and retry behavior. It supports multiple Redis connection types (tuples, dicts, URIs, and Sentinel), and locks can be used directly or as async context managers. The implementation requires at least half of the configured Redis instances to agree on lock state for operations to succeed, following the Redlock consensus model.","worth_installing":"Yes, but with caution. The package is stable and production-ready (MIT license, no known vulnerabilities, low install friction), but it has been dormant since February 2022. Install it if you need Redlock for asyncio and can accept that no active maintenance is happening; verify that aioredis itself is still viable for your target Python and Redis versions before committing."},"id":"aioredlock","links":{"html":"https://skillfed.io/packages/aioredlock","md":"https://skillfed.io/packages/aioredlock.md","pypi":"https://pypi.org/project/aioredlock/"},"maintenance":{"status":"dormant"},"meta":{"latest_release":"2022-02-08","license_spdx":null,"license_treatment":"permissive","name":"aioredlock","python_support":"supports_current","summary":"Asyncio implemetation of Redis distributed locks"},"popularity":{"monthly_downloads":103363,"position":12810,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"0.7.3"}
