# mike-marcacci/node-redlock

A node.js redlock implementation for distributed, highly-available redis locks

Repository: https://github.com/mike-marcacci/node-redlock
Canonical: https://ross.abutalabs.com/products/node-redlock
Language: TypeScript
License: MIT
License Family: permissive
Topics: redlock, redis-lock, redis, node
Last push: 2025-10-29T13:02:19+00:00

## Health v2 (maintenance only)
Score: 45/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 49, release rhythm 8, longevity 100
- inputs: {"age_days": 4106, "days_push": 308, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1983, forks 176 (observed 2026-08-28T04:06:01.900739+00:00)

## What it is
A Node.js/TypeScript implementation of the Redlock algorithm for distributed, highly-available Redis locks. It provides strong locking guarantees across single or multiple independent Redis instances or clusters, with auto-extending locks via a `using` API.

## Use cases
- implement distributed locks across multiple redis instances
- prevent concurrent job execution in a node.js cluster
- acquire a mutex over shared resources in a distributed system
- auto-extending locks for long-running node.js tasks
- fault-tolerant locking with multiple independent redis nodes

## When to choose
- you need strong distributed locking guarantees with Redis in Node.js
- you run multiple independent Redis instances or clusters and need quorum-based locking
- you want automatic lock extension and abort signaling for long-running routines

## When to avoid
- you use a language or runtime other than Node.js
- you need locks without Redis, e.g. database- or etcd-based coordination
- you only need single-process mutexes, where in-process locks suffice

## Facets
- artifact type: library
- maturity: active
- function: caching, concurrency, database-driver
- domain: databases, microservices, backend, developer-tools
- platform: -
- tags: redlock, distributed-locks, redis, mutex, fault-tolerance, nodejs, typescript

## Member repositories
- mike-marcacci/node-redlock (main) score 45

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:01.900739+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:03:30.527285+00:00, confidence not recorded.
  - readme: https://github.com/mike-marcacci/node-redlock (fetched 2026-08-28T04:06:01.900739+00:00, sha 75d25fc853f2)
- Data as of 2026-08-30T08:39:29.467469+00:00.
