distributed-lock
Installation
SKILL.md
Distributed Locking
Prevent race conditions across multiple instances.
When to Use This Skill
- Multiple instances processing the same job
- Need to prevent duplicate operations
- Singleton cron jobs across instances
- Critical sections in distributed systems
Core Concepts
- Atomic acquisition - Only one holder at a time
- TTL expiration - Prevents deadlocks if holder crashes
- Lock extension - Renew for long-running operations
- Holder ID - Track who owns the lock