Simple, reliable and efficient distributed task queue in Go
open sourceMITself-hostablefree
Asynq is a Go library for queueing tasks and processing them in the background with workers, backed by Redis. A client puts tasks on queues and servers on one or many machines pull them off, running each in its own goroutine. It guarantees at-least-once execution, retries failed tasks, recovers tasks after a worker crash, and supports scheduled and periodic tasks, weighted and strict priority queues, unique tasks, per-task timeouts and deadlines, aggregating tasks into batches, middleware, pausing queues and Redis Sentinel for failover. Queue metrics go to Prometheus, and a web UI (Asynqmon) and a CLI inspect and control queues and tasks. It's still at v0.x, and some of its Lua scripts may not work with Redis Cluster.
Problems it solves
- run background jobs in my Go service with retries
- a Redis-backed job queue for Go
- schedule periodic tasks across several Go workers
- process tasks by priority with a dashboard to see what failed
Features
- at-least-once execution
- retries and crash recovery
- scheduled and periodic tasks
- weighted and strict priority queues
- unique tasks, timeouts and deadlines
- task aggregation
- Redis Sentinel failover
- Prometheus metrics, web UI and CLI
Limitations
- Still at v0.x, so its API can change between releases.1
- Some of its Lua scripts may not be compatible with Redis Cluster.1
Capabilities
| Has a command line tool | plan not known |
|---|---|
| Has official SDKs | plan not known |
Alternatives
The same job
These do what Asynq does.
- River Fast and reliable background jobs
- Temporal Durable execution platform for reliable workflows
- Hatchet An orchestration engine for background tasks, AI agents, and durable workflows
- Inngest Workflow orchestration: durable step functions on serverless, servers or the edge
- Upstash QStash Serverless HTTP messaging, queues and scheduling
- Faktory Language-agnostic background job server
