37ms median · in‑region
Distributed mutex for serverless.
FIFO lock queue with distributed state coordination. Hanging HTTP requests (no polling). Dead-man's-switch auto-release.
Features
First in line wins
Requests served in order. No starvation. No random failures under load.
Wait, don't poll
Your request sleeps until the lock is free. No retry loops. Simpler code.
Crash-safe
If your code dies, the lock releases automatically. No orphaned locks. Ever.
Extend without releasing
Need more time? Refresh the lock. No release-reacquire dance.
Try It
Lock Status
Request Lock
API Example
Complete Workflow
# 1. Setup
export SOLENOID_KEY="sm_your_api_key_here"
# 2. Acquire lock (hangs until available or timeout)
curl -X POST "https://api.solenoid.systems/v1/latch/deploy:prod/acquire" \
-H "Authorization: Bearer $SOLENOID_KEY" \
-H "Content-Type: application/json" \
-d '{"ttl":30000,"timeout":10000}'
# Expected response:
# {"status":"acquired","token":"550e8400-e29b-41d4-a716-446655440000","expires_at":1234567890,"key":"deploy:prod"}
# 3. Perform critical work while lock is held
echo "Deploying to production..."
# 4. Release lock
curl -X POST "https://api.solenoid.systems/v1/latch/deploy:prod/release" \
-H "Authorization: Bearer $SOLENOID_KEY" \
-H "Content-Type: application/json" \
-d '{"token":"550e8400-e29b-41d4-a716-446655440000"}'
# Expected: {"status":"released","key":"deploy:prod"} Use Cases
Deploy Coordination
Ensure only one deployment runs at a time. No race conditions during migrations.
Resource Throttling
Limit concurrent access to expensive resources. Prevent thundering herd on cold starts.
Job Deduplication
Prevent duplicate processing of webhooks and async tasks. First request wins.
Critical Section Protection
Serialize writes to shared state. Protect non-atomic operations across serverless functions.
Comparison
| Feature | Solenoid Latch | Redis Redlock | Consul Sessions |
|---|---|---|---|
| Queue Type | FIFO | None | None |
| Wait Strategy | HTTP hang | Polling loop | Watch/polling |
| Auto-Release | DO alarm | TTL expiry | Session expiry |
| Infrastructure | Serverless | Self-hosted | Self-hosted |
| Pricing | $0.50/1K ops | $20-200/mo + ops | Free (OSS) |
| Best for: | Serverless coordination | High-throughput, self-managed | Service mesh integration |
Pricing as of Feb 2026 for managed Redis services