qmetrics.net

Celery

Distributed task queue for Python workers and brokers

Celery screenshot

Celery distributes units of work called tasks from client applications to worker processes through a message broker. It supports RabbitMQ, Redis, Amazon SQS, and other transports with retries and scheduling features.

Overview

Celery implements a task queue pattern for Python applications that need to offload work to background worker processes. A client enqueues a message describing a task; a broker delivers it to an available worker, which executes the task and can store results in configurable backends such as Redis, databases, or other listed stores.

The design allows multiple workers and brokers for horizontal scaling and high availability, with automatic retries on connection loss depending on broker capabilities. Tasks are defined as decorated Python callables bound to a Celery application instance configured with a broker URL.

Concurrency backends include prefork, Eventlet, gevent, and single-threaded solo modes. Serialization supports pickle, JSON, YAML, and msgpack, with optional compression and message signing mentioned in the feature list. The queue integrates with web frameworks including Django, Flask, FastAPI, Pyramid, and Tornado, often without a separate integration package.

Operators typically run Celery worker processes alongside a broker such as RabbitMQ or Redis on their own machines or datacenters. The maintainers note Windows is not officially supported though it may run, while Linux-oriented deployments are the documented norm.

Key features

  • Task enqueueing via message brokers
  • RabbitMQ, Redis, SQS, and Pub/Sub transports
  • Automatic worker retries on connection failures
  • Multiple concurrency pool implementations
  • Pluggable result backends and serializers
  • Framework integration with Django and Flask
  • Scheduled and periodic task support
  • Distributed multi-worker deployments

Use cases

  • Running long jobs outside web request handlers
  • Scaling background work across many worker machines
  • Scheduling periodic maintenance or report jobs
  • Decoupling producers and consumers in microservices

Tags

Similar software

Asynq

Redis-backed distributed task queue for Go

A Go library for enqueueing background work and processing it with worker pools backed by Redis.

★ 13.9k⟳ 17 days agoMIT

BullMQ

Redis-backed distributed job queue for Node and other languages

BullMQ is an open-source message queue and job processor built on Redis, with client libraries for several runtimes.

★ 9.6k⟳ yesterdayMIT

Cadence

Open-source durable workflow orchestration engine

Cadence runs long-lived, fault-tolerant workflows with pluggable persistence and client SDKs in Go and Java.

★ 9.6k⟳ yesterdayApache-2.0
Open Source Alternative to:AWS Step FunctionsDBOS

Bee Queue

Redis-backed job and task queue for Node.js

Bee Queue is a compact Node.js library for short, real-time jobs stored in Redis, aimed at worker pools and request-time enqueue patterns.

★ 4k⟳ 1 month agoMIT

Kubernetes

Open-source container scheduling and management system

Kubernetes (K8s) manages containerized applications across many hosts. It automates deployment, scaling, and ongoing operations for grouped containers.

★ 129.4k⟳ yesterdayApache-2.0

Ansible

Agentless IT automation and configuration engine

Ansible automates configuration management, deployments, cloud provisioning, ad-hoc tasks, and multi-node orchestration using SSH without installing agents on managed hosts.

★ 71.7k⟳ 4 days agoGPL-3.0