talira

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 toolplan not known
Has official SDKsplan not known

Alternatives

The same job

These do what Asynq does.

  1. River Fast and reliable background jobs
  2. Temporal Durable execution platform for reliable workflows
  3. Hatchet An orchestration engine for background tasks, AI agents, and durable workflows
  4. Inngest Workflow orchestration: durable step functions on serverless, servers or the edge
  5. Upstash QStash Serverless HTTP messaging, queues and scheduling
  6. Faktory Language-agnostic background job server

Compare Asynq with the top 3