Guide Home Part 1 - FastAPI Foundations Part 2 - Building Applications Part 3 - Pages and HTML Part 4 - Security and Deployment Part 5 - Going Further Capstone Build Plan Markdown Source All Guides

Chapter 34: Background Tasks and Services

ASP.NET Core has hosted services and background services. FastAPI has in-process background tasks, but they are only suitable for small, non-critical follow-up work.

Use in-process background tasks for:

Use a real worker queue for:

Python worker choices:

RecipeVault background work:

Keep background job code in application services so the web request and worker can call the same use case safely.