Have you ever had to consume a shared resource in a distributed system?
Coordinate your distributed systems with confidence
Fast lock acquisition with optimized algorithms designed for high-throughput systems
Production-ready reliability
Intuitive APIs that get you up and running in minutes
Sign up for the beta and receive your API key
A single API call to lock any shared resource
Your services stay in sync automatically
Multiple workers pull from the same job queue. Only one processes each job.
Acquire a lock with the order ID before processing. No double charges, ever.
Run cron jobs on multiple servers for redundancy. Only one instance executes.
Whichever instance acquires the lock becomes the leader. If it crashes, another takes over.
# Acquire a lock curl -X POST https://api.thelock.io/v1/locks \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{"lock_key": "order-123", "expiration": 30}'
import requests resp = requests.post("https://api.thelock.io/v1/locks", headers={"Authorization": "Bearer YOUR_API_KEY"}, json={"lock_key": "order-123", "expiration": 30}) lock = resp.json()
const lock = await fetch("https://api.thelock.io/v1/locks", { method: "POST", headers: { "Authorization": "Bearer YOUR_API_KEY", "Content-Type": "application/json" }, body: JSON.stringify({ lock_key: "order-123", expiration: 30 }) }).then(r => r.json());
Usage-based pricing after launch.
Join our beta program and be the first to experience the future of distributed locking