XRAPH/Work/Durable execution
Go · since 2026

Dispatch

Background jobs, durable workflows and leader-elected cron as a library you import rather than a service you operate. Workflow steps checkpoint, so a worker that dies mid-run resumes where it stopped instead of starting over. Exhausted retries land in a dead-letter queue you can inspect and replay.

Language
Go
Category
Durable execution
Since
2026
Stars
1
Repository
01

Anatomy

4 modules
01

Jobs

Durable units with retries and dead lettering.

02

Workflows

Multi-step execution that survives a restart.

03

Cron

Scheduled work coordinated across the cluster.

04

Coordination

Leader election so a schedule fires once, not once per node.

02

Why it exists

Design notes

#What it is

Dispatch is durable execution as a library. Background jobs, multi-step workflows, distributed cron and worker coordination, imported into your process rather than run as a separate service.

#What it gives you

  • Jobs: typed handlers, priority enqueue, configurable retry with backoff.
  • Workflows: multi-step functions with checkpointing, parallel steps and event waiting. A worker that dies mid-run resumes at the last checkpoint instead of restarting.
  • Cron: leader-elected so exactly one worker fires a schedule, with per-tenant entries.
  • Dead letter queue: automatic promotion once retries are exhausted, then inspect, replay or purge.
  • Cluster coordination: worker registration, heartbeats, leader election and work stealing.
  • Middleware: a composable chain for logging, tracing, metrics, panic recovery and scope injection.
  • Observability: OpenTelemetry metrics and traces built in, and Relay integration that emits a typed webhook at every lifecycle point.

Storage is pluggable: memory, PostgreSQL via pgx, Grove, SQLite or Redis.

#The scaling caveat

Workers scale with the process they live in, which is the honest cost of the library model. Running the same binary in a worker-only mode gets most of the way there, and it is a workaround rather than a solution. If you need workers to scale entirely independently of your API tier, a separate service is the right answer and Dispatch is a reasonable way to build one.

03

Signals

GitHub
Stars
1
Language
Go
Since
2026
Adopters
00

Shipping something on Dispatch? Nobody is listed here yet. Tell me what you built and you will be the first.

Get listed
04

Where it sits

Fields · papers