Back to projects
TJM Labs - Distributed Systems
Distributed Lock Service
PythonFastAPIPostgreSQLSQLAlchemyDockernginx
When several clones of a bot share a queue, two can race for the same item, and adding a clone stops adding throughput. This service gives every bot one atomic call: take the lock or skip. It uses fencing tokens to protect against stale holders, per-team rate limits, and an audit trail, and it runs in production across pharmacy teams at TJM Labs.
Private Repository