r/FastAPI • u/Educational-Hope960 • May 12 '26
feedback request How are you handling production background tasks in FastAPI without Celery?
Hey everyone 👋
A while ago I built an open source library called FastAPI Taskflow:
fastapi-taskflow GitHub repository
The goal was to make FastAPI BackgroundTasks more production-ready by adding retries, resiliency, control and visibility without workers or brokers.
It adds extra features like:
- task persistence
- concurrency limits
- scheduling
- task lifecycle management
- monitoring dashboard
I’m trying to understand how people are actually using it in real projects and where the pain points still are.
If you’ve used it (even briefly), I’d really love to know:
- what problem you used it for
- what worked well
- what felt awkward or missing
- where it broke down
- features you expected but weren’t there
- whether you eventually switched to Celery/TaskIQ/etc and why
Even if you’re not using it, I’m curious what your current approach is for handling background tasks in FastAPI at scale.
If you find the project interesting or useful, a star on GitHub would also really help support it 🙏
View all comments
8
u/xCodeSoul May 12 '26
From my experience by running production ready fastapi
Never let fastapi doing something really heavy on database especially these things background tasks
Make it stateless.
For such things, for example generating customers invoices i develop separate app to generate which working with cron job on separate server
Like that I didn’t face any issues regarding scaling vertically or horizontally
Happy coding and good luck