TheLock - Distributed Locking Solution

Have you ever had to consume a shared resource in a distributed system?

Distributed Locking
Made Simple

Coordinate your distributed systems with confidence

See It In Action

Lightning Fast

Fast lock acquisition with optimized algorithms designed for high-throughput systems

🛡️

Battle-Tested

Production-ready reliability

🎯

Developer First

Intuitive APIs that get you up and running in minutes

How It Works

1

Get an API Key

Sign up for the beta and receive your API key

2

Acquire a Lock

A single API call to lock any shared resource

3

Coordinate Systems

Your services stay in sync automatically

Use Cases

Background Job Processing

Multiple workers pull from the same job queue. Only one processes each job.

Preventing Duplicate Payments

Acquire a lock with the order ID before processing. No double charges, ever.

Coordinating Scheduled Tasks

Run cron jobs on multiple servers for redundancy. Only one instance executes.

Leader Election

Whichever instance acquires the lock becomes the leader. If it crashes, another takes over.

5 Lines to Your First Lock

# 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());

Free During Beta

Usage-based pricing after launch.

Get Early Access

Join our beta program and be the first to experience the future of distributed locking

Thanks! We'll be in touch soon.