<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Async, Background Work, and Streaming on DATATWEETS</title><link>https://datatweets.com/courses/fastapi/async-background-streaming/</link><description>Recent content in Async, Background Work, and Streaming on DATATWEETS</description><generator>Hugo</generator><language>en</language><copyright>Copyright (c) 2025 Datatweets</copyright><lastBuildDate>Sun, 28 Jun 2026 09:00:00 +0200</lastBuildDate><atom:link href="https://datatweets.com/courses/fastapi/async-background-streaming/index.xml" rel="self" type="application/rss+xml"/><item><title>Lesson 1 - async and Concurrency</title><link>https://datatweets.com/courses/fastapi/async-background-streaming/lesson-1-async-and-concurrency/</link><pubDate>Fri, 14 Nov 2025 09:00:00 +0200</pubDate><guid>https://datatweets.com/courses/fastapi/async-background-streaming/lesson-1-async-and-concurrency/</guid><description>FastAPI runs both async def and def endpoints. Learn how the event loop keeps the server busy during I/O waits, why async helps for I/O-bound work, and the simple rule for choosing between async def and def.</description></item><item><title>Lesson 2 - Background Tasks</title><link>https://datatweets.com/courses/fastapi/async-background-streaming/lesson-2-background-tasks/</link><pubDate>Fri, 14 Nov 2025 09:00:00 +0200</pubDate><guid>https://datatweets.com/courses/fastapi/async-background-streaming/lesson-2-background-tasks/</guid><description>Don&amp;rsquo;t make callers wait for side-effects. Use BackgroundTasks to run work after the response is sent — sending email, writing audit logs, cleanup — and learn the limits that tell you when to move to a real task queue.</description></item><item><title>Lesson 3 - Streaming and Server-Sent Events</title><link>https://datatweets.com/courses/fastapi/async-background-streaming/lesson-3-streaming-and-sse/</link><pubDate>Fri, 14 Nov 2025 09:00:00 +0200</pubDate><guid>https://datatweets.com/courses/fastapi/async-background-streaming/lesson-3-streaming-and-sse/</guid><description>Stop buffering whole responses. Wrap a generator in StreamingResponse to send chunks as they&amp;rsquo;re ready, and use Server-Sent Events (text/event-stream) to push live one-way updates to a client.</description></item><item><title>Lesson 4 - WebSockets</title><link>https://datatweets.com/courses/fastapi/async-background-streaming/lesson-4-websockets/</link><pubDate>Fri, 14 Nov 2025 09:00:00 +0200</pubDate><guid>https://datatweets.com/courses/fastapi/async-background-streaming/lesson-4-websockets/</guid><description>When request/response isn&amp;rsquo;t enough, WebSockets give you a persistent two-way channel. Accept a connection, send and receive messages in a loop, handle disconnects, and test it with the TestClient — a gentle intro with a small echo server.</description></item><item><title>Lesson 5 - Guided Project: Streaming Endpoint</title><link>https://datatweets.com/courses/fastapi/async-background-streaming/lesson-5-guided-project-streaming-endpoint/</link><pubDate>Fri, 14 Nov 2025 09:00:00 +0200</pubDate><guid>https://datatweets.com/courses/fastapi/async-background-streaming/lesson-5-guided-project-streaming-endpoint/</guid><description>Stream a long reply word-by-word as it&amp;rsquo;s produced, the way chat and AI apps do. Build a StreamingResponse over a generator, add realistic per-token delays with an async generator, and verify the stream end to end.</description></item></channel></rss>