Generators: The unsung hero of Async programming

Estimated read time 2 min read

Post Content

​ In this theater session from PyCon US 2025, Engineer Chris Anderson walks through Generators and how they are essential to building resiliant solutions with asynchronous programming, including a live demo of them in action using Azure Durable Functions.

https://learn.microsoft.com/en-us/azure/azure-functions/durable/quickstart-python-vscode

https://www.linkedin.com/in/crandycodes/

00:00 β€” Intro: Generators and Durable Functions
00:40 β€” What Are Generators and Why Use Them
01:26 β€” Custom Range with Generator Example
02:06 β€” Infinite Generators and Cleanup with close()
03:27 β€” Sending Data into Generators with send()
04:47 β€” Using Generators for Async Task Scheduling
05:07 β€” Orchestration Pattern: A β†’ B & C β†’ D
05:45 β€” Simulating Failures in Orchestrated Tasks
06:33 β€” Improving Reliability with Durable Activities
07:43 β€” Centralizing Retry Logic in Orchestrator
08:42 β€” Generalizing Durable Activity Wrappers
09:54 β€” Restarting and Resuming Durable Orchestrations
10:49 β€” Externalizing State for Crash Recovery
11:20 β€” Scaling with Distributed Activity Execution
11:41 β€” Live Demo: Durable Functions in Action
12:43 β€” Triggering Durable Functions via HTTP
13:27 β€” Polling Function Status and Viewing Results
14:02 β€” Long-Running Tasks for Agentic Workflows
14:15 β€” Using MCP Triggers with Durable Functions
14:47 β€” Getting Started with Azure Durable Functions
15:00 β€” Is Azure Functions Open Source?
15:33 β€” Durable Functions Architecture and Extensions
16:22 β€” State Management and API Access
16:47 β€” Running Azure Functions on Kubernetes
17:40 β€” Database Compatibility and On-Prem OptionsΒ Β Β Read MoreΒ Microsoft DeveloperΒ 

You May Also Like

More From Author