Python SDK
Temporal Python SDK | Durable Asyncio Event Loop

Temporal Python SDK | Durable Asyncio Event Loop

3/9/2023

What this post added

This post announces the General Availability (GA) release of the Temporal Python SDK. It details how the SDK leverages Python's native asyncio constructs, treating workflows as asyncio event loops. The post provides code examples for implementing a simple one-click buying workflow and its associated activities using aiohttp. It explains the underlying mechanics of asyncio.sleep and how Temporal's durable timers are built upon it. The post also highlights the durability and resumability of Temporal workflows, even in the face of worker crashes, due to the deterministic nature of workflow code and the event sourcing approach.

Read the original post ↗