0PricingLogin
Flask Academy · Lesson

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

  1. Why Move Work Off the Request
  2. Wire Celery into the App Factory
  3. Define and Call a Task
  4. Track Results and Handle Failures
← Back to Flask Academy