Start here. This is the direct spoken answer to practice first.
Overview
Chooses between small in-process follow-up work and durable, independently operated background execution.
FastAPI BackgroundTasks runs a callable after the response has been sent, in the same application process. I use it for small follow-up work where losing the task during a restart is acceptable, such as best-effort logging or a lightweight notification. It is not a durable queue: there is no persisted message, worker handoff, retry policy, or independent scaling. Important or expensive work belongs in a real task system.