Asynq is a distributed task queue library for Go that uses Redis as its backing store to queue and process asynchronous work across multiple workers and machines.
The library solves the problem of distributing work reliably across a system by allowing clients to enqueue tasks that worker servers pull from Redis-backed queues and process concurrently using goroutines. It guarantees at least one execution of each task and automatically recovers tasks if a worker crashes. The approach is designed for horizontal scaling, supporting multiple worker servers and brokers to achieve high availability.
Asynq suits Go applications that need to offload background jobs or distribute work across machines. It works well for systems requiring task scheduling, retries, and concurrent processing. The tool offers weighted and strict priority queues, task deduplication, per-task timeouts and deadlines, and task aggregation for batching operations. It includes a web UI and CLI for queue inspection and remote control, integrates with Prometheus for metrics, and supports Redis Sentinels for failover. The README notes that some Lua scripts may not be compatible with Redis Cluster.
The project is in moderate development with a zero major version, meaning the public API could change before a stable release. The maintainers actively solicit feedback on APIs and encourage production users to sponsor the project.