Mujeeb Muhideen
All products

Distributed infrastructure · Active build

Headgate

A job queue that treats dequeue as an admission decision.

Status
Active build
Platform
Go · Rust · embedded console
Role
Creator & engineer
Source
Apache-2.0 license

Swipe to explore

What it does

Focused on the work that matters.

  • Atomic admission with fleet-wide rate limits and concurrency ceilings
  • Fair multi-tenant scheduling that keeps spare capacity useful
  • Leases, fencing, retries, deadlines, panic recovery, and graceful shutdown
  • Typed jobs, resumable steps, progress, results, and durable workflows
  • Quarantine and redrive controls with an embedded operations console
  • A shared wire format and executable conformance suite across languages and stores
Built with

A stack chosen for the product.

GoRustPostgreSQLMySQLRedisOpenTelemetry

Headgate is a distributed job queue for teams that need more than 'give me N jobs.' Its admission gate evaluates rate limits, tenant fairness, concurrency budgets, and quarantine state atomically inside the store before a worker can claim work. The same core behavior is shared across Go and Rust and is exercised against PostgreSQL, MySQL, and Redis.

Dequeue as a policy decision

Most queues ask a worker which jobs it wants. Headgate asks what the fleet's current policy permits it to run. That shift brings rate limits, fairness, concurrency, and poison-pill handling into one atomic admission path instead of scattering them across workers.

Correctness belongs at the store boundary

A claim and its lease are written together, with fencing on every per-job operation. PostgreSQL and MySQL use one statement for the gate; Redis uses one Lua script. Policy-rejected jobs remain visible, while lease loss is explicit and actionable.

A system for operators too

The project includes a control API, CLI, embedded web console, OpenTelemetry hooks, payload redaction, and a conformance register that ties capabilities to named evidence. The goal is a queue that is inspectable when the interesting failures happen.