distributed-lock

Community

Prevent race conditions across instances.

Authordadbodgeoff
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill prevents multiple instances of an application from performing the same operation simultaneously, thereby avoiding data corruption and ensuring consistency in distributed systems.

Core Features & Use Cases

  • Atomic Acquisition: Ensures only one instance can hold a lock at any given time.
  • Automatic Expiration (TTL): Prevents deadlocks by automatically releasing locks after a specified duration.
  • Lock Extension: Allows long-running operations to renew their locks.
  • Use Case: Prevent multiple background workers from processing the same order simultaneously, or ensure a cron job runs as a singleton across a cluster.

Quick Start

Use the distributed-lock skill to acquire a lock named 'process-order:123' with a timeout of 60 seconds.

Dependency Matrix

Required Modules

None required

Components

scriptsreferences

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: distributed-lock
Download link: https://github.com/dadbodgeoff/drift/archive/main.zip#distributed-lock

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.