Skip to main content
grasp.study
About
Explore
Pricing
Log in
Try it for free
Back to course
👋
Welcome to a Grasp lesson
Create a free account
to keep studying and create your own study path.
Master FastAPI from scratch
·
Module 9
Advanced Features and Concurrency
Background Tasks in FastAPI
Use FastAPI's `BackgroundTasks` for post-response 'fire-and-forget' operations.
2
Background Tasks vs. Task Queues: Choosing the Right Tool
Explain the use cases for `BackgroundTasks` versus a dedicated task queue like Celery.
Building Real-time Apps with FastAPI WebSockets
Create a WebSocket endpoint in FastAPI to handle persistent, real-time bidirectional communication.
4
Serving Non-JSON Responses
Return non-JSON responses, such as `FileResponse` for file downloads or `StreamingResponse` for large data.
Previous module
Modern API Architecture and Project Structure
Next module
Testing and Production Deployment