New:Embedded & IoT Bootcamp
FastAPI

Advanced

4 tutorials organised into focused series and standalone lessons.

0 series 4 standalone lessons Back to FastAPI

Advanced tutorials

Read in order or jump to the topic you need.

Tutorial2026-06-13

Background Tasks

Use FastAPI's BackgroundTasks to run operations after returning a response - email sending, cleanup jobs, and when to reach for Celery instead

Web Development / Backend / FastAPI / Advanced

FastAPIBackgroundTasks
Tutorial2026-06-13

WebSockets for Real-Time Apps

Build real-time features with FastAPI WebSockets - connection handling, broadcast patterns, disconnect management, and authenticating WebSocket connections with OAuth2

Web Development / Backend / FastAPI / Advanced

FastAPIWebSockets
Tutorial2026-06-13

Dependency Overrides for Testing

Swap out real dependencies during testing with app.dependency_overrides - override auth, database, and external services without modifying application code

Web Development / Backend / FastAPI / Advanced

FastAPITesting
Tutorial2026-06-13

Event Handlers (Startup/Shutdown)

Run code when your FastAPI application starts and stops - connect to databases, initialize clients, and clean up resources gracefully

Web Development / Backend / FastAPI / Advanced

FastAPIStartup