Dramatiq is a distributed task queue and workload manager used to offload function execution to background workers. It functions as an asynchronous task orchestrator that enables the distribution of computational tasks across a cluster using a pluggable transport layer supporting RabbitMQ and Redis.
The framework provides specialized tools for complex task orchestration, including the ability to link background jobs into sequences, pipelines, and barriers. It further manages distributed concurrency through the use of shared mutexes, rate limiters, and exponential backoff retries to prevent resource exhaustion.
Its broader capabilities cover reliable message queueing with dead letter management, task prioritization, and the persistence of task results. The system also includes a multi-process worker model and a middleware system for extending the message lifecycle.
A stub broker is provided to allow tasks to be tested synchronously without a live message broker environment.