Once a Django app leaves “CRUD on one server,” request handlers start accumulating dangerous work: email sends, report generation, webhook fan-out, image processing. The architecture fix is decoupling — push heavy work to a queue, keep HTTP fast, and make failures visible.
Why Celery + Redis shows up so often
Celery (workers) + Redis/RabbitMQ (broker) is a common Django pairing because it gives you:
- Async task execution off the web process
- Retries with backoff
- Horizontal worker scaling
- A clear place to put “this can fail later”
I’m not claiming every FOSSASIA merge required a new Celery topology. I am saying production Django platforms force the same design questions: what belongs in the request, what belongs in a job, and how do you see failures?
Decoupled logging that doesn’t lie
Logs should answer: which request, which user/org, which task id, what failed. Correlate web request IDs with worker job IDs. Structure logs (JSON) so you can query them. Without that, “it failed in production” becomes folklore.
A practical split
- Request path: validate, authorize, persist intent, enqueue
- Worker path: side effects (mail, exports, reconciliations, third-party APIs)
- Ops path: metrics, dead-letter inspection, replay tools
Lessons from real systems work
At ElitesEcom, reporting and reconciliation against ERP data made one thing obvious: batch work and correctness checks don’t belong in a click handler. In Eventyay-scale platforms, the same principle applies — organizer-facing features must stay responsive while background work absorbs complexity.
If you’re hiring for backend judgment, look for people who can draw that boundary without turning every feature into a distributed systems science fair.