pip install blitzqA fast, async-native task queue for Python
BlitzQ runs background jobs on asyncio and Redis, with explicit reliable/fast delivery modes, retries, scheduling and multi-queue routing — framework-agnostic, with FastAPI, Django and Flask helpers.
from blitzq import Queue
queue = Queue(name="default", redis_url="redis://localhost:6379/0")
@queue.task(retries=3)
async def process_order(order_id: str) -> dict:
return {"order_id": order_id, "processed": True}
task = await process_order.enqueue("ORD-123")
result = await queue.get_result(task.id, timeout=10)Async-native workers
Thousands of concurrent async def tasks per process; sync functions on a bounded thread pool; CPU-bound functions on a process pool.
Two explicit delivery modes
reliable (Redis Streams, at-least-once, crash recovery) and fast (Redis lists, at-most-once, fewest round-trips) — you choose per queue.
Batteries included
Retries with backoff and jitter, dead letters, delayed tasks, cron/interval periodic tasks, timeouts, cancellation, results, multi-queue routing, per-queue concurrency, priority, rate limiting.
Framework-agnostic
A plain Python core with optional FastAPI/Starlette, Django and Flask helpers — use it from any stack.
Race BlitzQ against Celery
Pick a workload and a task count, then watch both clear the queue at their real measured throughput.
Bare function call — pure dispatch overhead.
Bars race at the real measured throughput ratio, time-compressed to fit the screen.
Benchmarked against Celery and Huey
Measured, not estimated — 5 repetitions per workload, medians reported. BlitzQ wins most workloads, and the report says so when it doesn't.
Median of 5 runs, synthetic task bodies, higher is better. BlitzQ is not fastest everywhere — CPU-bound work on the default thread executor is a known weak spot; switch to executor="process" and it ties. Full methodology and raw numbers in the comparison report.
Known gaps, stated plainly
What's out of scope for 1.0.0, why, and what's already been fixed — including why get_result() no longer polls.