<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/temporal-101-build-your-first-durable-application-qmhca6jkk" -->

---
title: Temporal 101: Build Your First Durable Application
description: A hands-on workshop transcript introducing Temporal, a durable execution platform, walking developers through building workflows and activities in Python....
canonical: https://daily.dev/posts/temporal-101-build-your-first-durable-application-qmhca6jkk
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Temporal 101: Build Your First Durable Application | daily.dev
og:description: A hands-on workshop transcript introducing Temporal, a durable execution platform, walking developers through building workflows and activities in Python....
og:url: https://daily.dev/posts/temporal-101-build-your-first-durable-application-qmhca6jkk
og:image: https://api.daily.dev/og/posts/QmhCa6jKk.png
og:image:alt: Temporal 101: Build Your First Durable Application
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Temporal 101: Build Your First Durable Application

**[Temporal](https://daily.dev/sources/temporal)** · 62 min read · 0 upvotes · 0 comments

## Summary

A hands-on workshop transcript introducing Temporal, a durable execution platform, walking developers through building workflows and activities in Python. Covers the core primitives (workflows, activities, workers), automatic retries, event history replay, determinism requirements, and a capstone exercise converting a crash-prone ad campaign rollout script into a durable Temporal workflow. Includes live troubleshooting of the workshop's VM-based coding environment.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.youtube.com/watch?v=tZRtLbKXtqg>

## Questions this post answers

### Why does a Temporal workflow need to avoid non-deterministic code like Python's random module?

Temporal replays workflow code from event history to recover state after crashes or sleeps, so the code path must produce identical results every time. Using standard random or datetime would generate different values on replay, breaking recovery. Temporal provides deterministic helpers like workflow.random() and workflow time functions, whose outputs are recorded in history and rehydrated on replay instead of recomputed.

_Developers debugging replay inconsistencies in Temporal workflows can find deeper explainers like this on daily.dev._

### What is the default retry behavior for a Temporal activity in Python if I don't configure a retry policy?

An activity retries infinitely by default using a backoff policy with a 1 second initial interval, a backoff coefficient of two, and a maximum backoff of 100 seconds between attempts. This means transient failures, such as repeated 503 errors from an external API, get retried automatically without any custom loop or counter code, until the activity succeeds or the code is fixed.

_Anyone tuning retry policies for reliable API calls can track Temporal patterns like this on daily.dev._

### How does Temporal handle a workflow when the underlying activity code has a bug, like referencing an undefined variable?

The activity fails and Temporal automatically retries it using the default retry policy while surfacing the stack trace in the worker logs and Temporal UI. Because an activity is treated as a black box, fixing the bug in the activity code and restarting the worker lets the same failed attempt succeed on the next retry, resuming the workflow without re-running already-completed steps.

_Developers self-healing broken activities mid-workflow can follow walkthroughs like this on daily.dev._

## Similar posts on daily.dev

- [How to Build the Python Skills That Get You Hired – Real Python](https://daily.dev/posts/how-to-build-the-python-skills-that-get-you-hired-real-python-dzihy85lh) · Real Python · 1 upvotes · 0 comments
- [Ship Your First Python App: a Free Course on the Local Dev Workflow](https://daily.dev/posts/ship-your-first-python-app-a-free-course-on-the-local-dev-workflow-cimt8mknq) · Planet Python · 0 upvotes · 0 comments
- [Learn Python Interactively](https://daily.dev/posts/learn-python-interactively-pow31uqcx) · freeCodeCamp · 2 upvotes · 0 comments
- [My First Week Learning Data Science at Dataraflow: Python, Bugs, and a Shopping Cart That Almost Broke Me](https://daily.dev/posts/my-first-week-learning-data-science-at-dataraflow-python-bugs-and-a-shopping-cart-that-almost-bro-sf7kpdvpb) · Medium · 5 upvotes · 0 comments

---

Tags: [#python](https://daily.dev/tags/python), [#distributed-systems](https://daily.dev/tags/distributed-systems), [#workflow-orchestration](https://daily.dev/tags/workflow-orchestration)

[View this post on daily.dev](https://daily.dev/posts/temporal-101-build-your-first-durable-application-qmhca6jkk)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Temporal 101: Build Your First Durable Application","url":"https://daily.dev/posts/temporal-101-build-your-first-durable-application-qmhca6jkk","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/temporal-101-build-your-first-durable-application-qmhca6jkk"},"datePublished":"2026-09-18T16:36:53.331Z","dateModified":"2026-09-18T18:24:06.536Z","description":"A hands-on workshop transcript introducing Temporal, a durable execution platform, walking developers through building workflows and activities in Python....","image":"https://i.ytimg.com/vi/tZRtLbKXtqg/sddefault.jpg","thumbnailUrl":"https://i.ytimg.com/vi/tZRtLbKXtqg/sddefault.jpg","isAccessibleForFree":true,"articleSection":"Temporal","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Temporal","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/65290ca7e3ab46a7b1df76f2757800c2","url":"https://daily.dev/sources/temporal"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/temporal-101-build-your-first-durable-application-qmhca6jkk","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"python,distributed-systems,workflow-orchestration","timeRequired":"PT62M","video":{"@type":"VideoObject","name":"Temporal 101: Build Your First Durable Application","description":"A hands-on workshop transcript introducing Temporal, a durable execution platform, walking developers through building workflows and activities in Python....","thumbnailUrl":"https://i.ytimg.com/vi/tZRtLbKXtqg/sddefault.jpg","uploadDate":"2026-09-18T16:36:53.331Z","duration":"PT62M","url":"https://api.daily.dev/r/QmhCa6jKk","embedUrl":"https://www.youtube.com/embed/tZRtLbKXtqg"}}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Temporal","item":"https://daily.dev/sources/temporal"},{"@type":"ListItem","position":3,"name":"Temporal 101: Build Your First Durable Application"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/temporal-101-build-your-first-durable-application-qmhca6jkk#faq","mainEntity":[{"@type":"Question","name":"Why does a Temporal workflow need to avoid non-deterministic code like Python's random module?","acceptedAnswer":{"@type":"Answer","text":"Temporal replays workflow code from event history to recover state after crashes or sleeps, so the code path must produce identical results every time. Using standard random or datetime would generate different values on replay, breaking recovery. Temporal provides deterministic helpers like workflow.random() and workflow time functions, whose outputs are recorded in history and rehydrated on replay instead of recomputed. Developers debugging replay inconsistencies in Temporal workflows can find deeper explainers like this on daily.dev."}},{"@type":"Question","name":"What is the default retry behavior for a Temporal activity in Python if I don't configure a retry policy?","acceptedAnswer":{"@type":"Answer","text":"An activity retries infinitely by default using a backoff policy with a 1 second initial interval, a backoff coefficient of two, and a maximum backoff of 100 seconds between attempts. This means transient failures, such as repeated 503 errors from an external API, get retried automatically without any custom loop or counter code, until the activity succeeds or the code is fixed. Anyone tuning retry policies for reliable API calls can track Temporal patterns like this on daily.dev."}},{"@type":"Question","name":"How does Temporal handle a workflow when the underlying activity code has a bug, like referencing an undefined variable?","acceptedAnswer":{"@type":"Answer","text":"The activity fails and Temporal automatically retries it using the default retry policy while surfacing the stack trace in the worker logs and Temporal UI. Because an activity is treated as a black box, fixing the bug in the activity code and restarting the worker lets the same failed attempt succeed on the next retry, resuming the workflow without re-running already-completed steps. Developers self-healing broken activities mid-workflow can follow walkthroughs like this on daily.dev."}}]}
```

