Where should long extraction run?
Practice this question- In bounded workers with durable jobs, retries, status, and resource isolation.
- FastAPI can start/check tasks or expose fast specialized operations; it should not keep arbitrary multi-minute processing alive solely through an open request.
Adapted from 13_AI.MD · “29.19 FastAPI”. Code examples are study fragments. Difficulty and core labels are editorial estimates; version-specific behavior should be checked against your project.