Why Move Work Off the Request
Keep responses fast with async tasks.
Slow Work Hurts
Some work is slow: sending email, resizing images, calling APIs. If you do it inside a view, the user waits for all of it. ⏳
The Blocking Problem
A request that runs slow work blocks the worker handling it. While it waits, that worker cannot serve anyone else.
All lessons in this course
- Why Move Work Off the Request
- Wire Celery into the App Factory
- Define and Call a Task
- Track Results and Handle Failures