You don't need these.
// acquire a distributed lock in 3 lines const res = await fetch(`/ds/semaphore/deploy-lock/acquire`, { method: "POST", body: JSON.stringify({ key: "prod", amount: 1, ttlMs: 30000 }) }); const { leaseId, acquired } = await res.json(); // atomic multi-structure transaction await fetch("/ds/rack", { method: "POST", body: JSON.stringify({ ops: [ { type: "counter", id: "credits", op: "decrement", body: { key: "user_1", amount: 50 }}, { type: "map", id: "orders", op: "set", body: { key: "ord_x7", value: { status: "paid" }}}, ]}) });
One POST to create. One WebSocket to watch. One rack to transact. Zero infrastructure to manage.