Explore projects
Pythonintermediatebackend
Async Job Queue with Python
Async task queue system with workers, exponential backoff retry, dead-letter queue, and monitoring UI.
5 steps
Project steps
- 01
Queue engine
Implement FIFO queue over Redis lists with BRPOPLPUSH for atomic pop.
- 02
Worker pool
N asyncio workers consuming tasks in parallel with a semaphore.
- 03
Retry & backoff
On failure, re-enqueue with exponential delay (1s, 2s, 4s… max 5 retries).
- 04
Dead-letter queue
Tasks exceeding max retries go to DLQ with the error reason.
- 05
FastAPI Dashboard
Pages /queue/stats, /queue/dlq with manual re-enqueue capability.
Recommended resources
Ready to build this?
Fork the repo on GitHub and start building. A mentor will review your code when you open a PR.
5 steps
Tech stack
PythonasyncioRedisFastAPIJinja2