Taskiq

Taskiq

docs.taskiq.org

2

About this website

Taskiq is a modern Python asynchronous task queue framework designed from the ground up for native asyncio support, positioning itself as a lightweight alternative to Celery. While traditional Celery is widely used in the Python community, its synchronous architecture creates an impedance mismatch with modern asyncio applications, and Taskiq fundamentally addresses this pain point: all task execution, broker communication, and result backend operations are handled natively via async/await syntax. The architecture consists of three core components: Broker (responsible for receiving and dispatching task messages), Result Backend (responsible for storing task execution results), and Scheduler (supporting cron expressions and interval triggers for scheduled tasks). Supported broker backends include Redis, RabbitMQ via aiormq, NATS, Kafka, and ZMQ; result backends support Redis, MongoDB, PostgreSQL, and Couchbase. Task definition is remarkably concise: simply decorating any async function with the @broker.task decorator registers it as a remotely executable task, supporting parameter serialization (JSON/Pickle/Msgpack), retry strategies, timeout control, task priority, and dependency injection via context for sharing data between tasks. The framework also provides a CLI tool (taskiq worker) for starting worker processes, taskiq scheduler for launching the scheduled task dispatcher, and seamless integration patterns with FastAPI and Starlette web frameworks. As of 2026, Taskiq has over 1,200 GitHub stars and is licensed under MIT, currently in a phase of rapid development.

Tags & Categories

Statistics

2
Views
0
Clicks
0
Like
0
Dislike

Comments

Log In to post a comment

No comments yet. Be the first!