Public Courses

Temporal 101 with Python (101_python)

In this course, you will explore the basic building blocks of Temporal: Workflows and Activities. You’ll use these building blocks along with Temporal's Python SDK to develop a small application that communicates with an external service. You'll see how Temporal helps you recover from failures and explore Temporal's execution model and event history. You'll use the Temporal Web UI and Temporal’s command-line tools to explore and interact with your Workflows, and you'll use what you've learned to add new features to your existing Workflow.

When you've completed the course, you'll be able to:

- Configure an environment for developing Temporal Applications
- Use Temporal to describe and implement a business process
- Interpret Temporal's Workflow execution model
- Use Temporal’s tooling to manage the lifecycle of your application


To be successful in this course, you should have experience writing backend applications that rely on external APIs.

This course uses the Python programming language. Although the code examples and hands-on exercises are written in Pythhon, they include explanations and avoid advanced language features, so a developer with minimal Python experience should be able to successfully complete this course.

Programming Language: Python Number of hours: 2

  • Chapter 1: About This Course
  • Welcome
  • Meet the Instructors
  • Format and Duration
  • Course Outcomes
  • Exercise Environment Orientation
  • (Optional Activity) Setting Up a Local Development Environment
  • Course Conventions
  • Getting Help
  • Chapter 2: What is Temporal?
  • Chapter 2 Goals
  • Introducing Temporal
  • What is a Workflow?
  • Workflow Examples
  • Architectural Overview
  • Options for Running a Temporal Cluster
  • Integrating Temporal into Other Applications
  • Temporal SDKs
  • Temporal Command-Line Interface: temporal
  • Chapter 3: Developing a Workflow
  • Chapter 3 Goals
  • Writing a Workflow Definition
  • Input Parameters and Return Values
  • Initializing the Worker
  • Chapter 4: Executing a Workflow
  • Chapter 4 Goals
  • Executing a Workflow from the Command Line
  • Hands-On Exercise #1: Hello Workflow
  • Exercise #1 Recap: Hello Workflow
  • Executing a Workflow from Application Code
  • Chapter 5: Viewing Workflow Execution History
  • Chapter 5 Goals
  • Viewing Workflow History with the Temporal CLI
  • Viewing Workflow History from the Web UI
  • Hands-On Exercise #2: Hello Web UI
  • Chapter 6: Modifying an Existing Workflow
  • Chapter 6 Goals
  • Making Changes to a Workflow
  • Restarting the Worker Process
  • Chapter 7: Developing an Activity
  • Chapter 7 Goals
  • What Are Activities?
  • Asynchronous vs. Synchronous Activity Implementations
  • Registering Activities
  • Executing Activities
  • Using Appropriate Timeouts
  • Chapter 8: Handling Activity Failure
  • Chapter 8 Goals
  • How Temporal Handles Activity Failure
  • Activity Retry Policy Example
  • Hands-On Exercise #3: Farewell Workflow
  • Chapter 9: Understanding Workflow Execution
  • Chapter 9 Goals
  • About This Example
  • Code Walkthrough
  • Chapter 10: Conclusion
  • Chapter 10 Goals
  • Essential Points
  • Hands-On Exercise #4: Finale Workflow
  • Parting Words
  • For More Information
Completion rules
  • All units must be completed