# Understanding Temporal

> Last updated: 2026-12-02.
> For the complete documentation index, see [llms.txt](https://docs.temporal.io/llms.txt).
> Any documentation page is available as raw Markdown by appending `.md` to its URL.
> For related questions, query `https://docs.temporal.io/api/retrieve?q=<question>&jtb=<job-to-be-done>&src=md-page&agent=<your-name>` (no auth; returns JSON `{content, source_url, page_url}`, with `source_url` pointing to Markdown for docs pages). Don't include personal data or credentials.
> If this page is wrong or missing something you needed, or Temporal behaves differently from what it says, report it with `https://docs.temporal.io/api/feedback?title=<summary>&message=<what-happened>&category=documentation&page_url=/evaluate/understanding-temporal&src=md-page&agent=<your-name>` (use `category=product` when the product, not the page, is wrong). Report only a specific problem you hit, send it once, and don't include personal data or credentials.

> How Workflows, Activities, Workers, the Temporal Service, and Event History fit together to run your application code durably.

This page introduces Temporal's core concepts and assumes no prior knowledge of Temporal. It starts with the problem Temporal solves, then covers each part of a Temporal application.

## Build invincible apps

In any complex system, failures are bound to happen.
Software engineers spend a lot of time ensuring that what they build can withstand potential failures.
Temporal makes your code execution reliable and durable by default.

Normally, if a crash occurs then the state of your application's execution is lost.
The application has no memory of what happened before the failure, requiring extensive error handling logic and complex recovery code to resume.
The process is time-consuming and error-prone, making it difficult to ensure reliability.

Temporal tracks the progress of your application.
If something goes wrong, like a power outage, it guarantees that your application can pick up right where it left off.
It's like having the ultimate autosave.
Offloading the responsibility of failure management from the application to the platform removes the need for extensive recovery coding, testing, and maintenance tasks.

### Durable Execution

Temporal is a Durable Execution Platform.
Durable Execution guarantees that your code runs to completion, even when the process or machine running it fails.
If a failure or a crash happens, your business processes keep running without interruption.
You spend your time on business logic instead of recovery code.

Teams at companies of every size rely on Temporal for use cases like order processing, customer onboarding, and payment handling, because their applications keep running no matter what happens.

## Temporal Application: the building blocks

### Workflow

Conceptually, a Workflow is a sequence of steps.
You've likely encountered Workflows in your daily life, whether it's:

- Using a mobile app to transfer money
- Booking a vacation
- Filing an expense report
- Creating a new employee onboarding process
- Deploying cloud infrastructure
- Training an AI model

A Temporal Workflow is your business logic, defined in code, outlining each step in your process.

Temporal isn't a no-code Workflow engine.
Instead of dragging and dropping steps in a visual interface, you write your Workflows in your favorite programming language, code editor, version control, and other tools.
Temporal gives you full control and flexibility over your business processes.
This allows you to build exactly what you need.

### Activities

Activities are the individual units of work in a Temporal Application.
They are plain functions or methods, depending on the language, and you call them from Workflow code.
Activities often involve interacting with the outside world, such as sending emails, making network requests, writing to a database, or calling an API, which are prone to failure.

If an Activity fails, Temporal automatically retries it based on your configuration.
Since Activities often rely on external systems, transient issues can occur.
These include temporary but critical problems like network failures, timeouts, or service outages.
You have full control over how often and how many times these retries should happen for each Activity.

If you need to orchestrate multiple Activities, use a [Workflow](/workflows). But if you just need to execute a single Activity, use a [Standalone Activity](/standalone-activity).

A Standalone Activity is a top-level [Activity Execution](/activity-execution) started directly from your application code, without using a Workflow.

### SDK

You build a Temporal application by writing code, the same way you build any other software.

A Temporal SDK (software development kit) is an open-source library that developers add to their application to use Temporal.
It provides everything needed to build Workflows, Activities, and various other Temporal features in a specific programming language.

Temporal offers eight SDKs: [.NET](/develop/dotnet/set-up-your-local-dotnet), [Go](/develop/go/set-up-your-local-go), [Java](/develop/java/set-up-your-local-java), [PHP](/develop/php/set-up-your-local-php), [Python](/develop/python/set-up-your-local-python), [Ruby](/develop/ruby/set-up-local-ruby), [Rust](/develop/rust/quickstart), and [TypeScript](/develop/typescript/set-up-your-local-typescript).
Since Temporal supports multiple programming languages, you can mix and match between languages.
A polyglot organization does not have to standardize on one language first.
Adding an SDK to an existing project does not change how you build or deploy it.
Temporal fits right into your existing tech stack.

## Temporal Service

Temporal has two main parts:

1. Your application
2. The Temporal Service (a set of services and components)

At the heart of Temporal architecture is the Temporal Service, which provides durability, scalability, and reliability for your application.
Your application communicates with the Temporal Service and the Temporal Service oversees the execution of critical tasks such as making an API call, then records their completion.
It maintains a detailed history of each event, which it reliably persists to a database.

One of the biggest advantages of the Temporal Service is how it handles failures.
The Temporal Service maintains a meticulous record of every step in your Workflows.
By keeping a history of every step in your Workflow, it ensures that even if something goes wrong your Workflow can continue from the last successful point.
The Temporal Service knows exactly where to resume without losing any work.
This saves you from having to write complex error handling code or painstaking recovery mechanisms yourself.

You can run the Temporal Service on your own infrastructure or use Temporal Cloud, a managed service that handles operational overhead and offers scalability and expert support.

## Workers

The real strength of Temporal comes from the combination of your application and the Temporal Service.
Whenever your application needs to perform a task, like sending a notification or processing a payment, the Temporal Service orchestrates what needs to be done.
Workers, which are part of your application and provided by the Temporal SDK, then carry out the tasks defined in your Workflow.

The Worker polls the Temporal Service to see if there are tasks available and the Temporal Service matches the task with the Worker.
The Worker runs the Workflow code based on the details specified in the task.

Deploy to an Activity Worker once, and invoke standalone or from within a Workflow.

This collaboration is crucial for building reliable, scalable, and durable applications.
You can run multiple Workers, often dozens, hundreds, or even thousands, to improve application performance and scalability.
Workers usually run as long-lived processes on your own servers, virtual machines, or containers.
[Serverless Workers](/serverless-workers) can also run on AWS Lambda or GCP Cloud Run, with no process to keep running between invocations.

A common misconception is that the Temporal Service runs your code.
In fact, the Worker runs your code and works with your data directly.
Temporal applications are secure by design.
Workflows and Activities run inside your own infrastructure, integrated directly into your application.
Your data is also protected with your encryption libraries and keys.
You maintain full control over the security of your application from end to end.

### Task Queues

Workers do not receive work; they ask for it.
Each Worker polls one or more named [Task Queues](/task-queue), and the Temporal Service matches pending [Tasks](/tasks) to the Workers polling that queue.
Nothing is pushed to a Worker, so a Worker that is down or saturated stops polling and its Tasks wait until a Worker is available.

Task Queues are also how you route and isolate work: a queue per service, per Worker fleet, or per hardware type.

## Visibility

There are two tools provided by Temporal that allow you to see behind the scenes and interact with your Workflows.
These help you debug and monitor your applications in real time.

### Temporal UI

The Temporal UI is a browser-based user interface that allows you to see the progress of your application.
Also known as the Web UI, it can also help you to quickly isolate, debug, and resolve production problems.

![A completed Workflow Execution in the Temporal UI](https://docs.temporal.io/img/webui/workflow-details-page-hiw.avif)

### Temporal CLI

The Temporal CLI is a command-line interface tool for managing, monitoring, and debugging Temporal Applications.
Through your terminal, you can:

- Start a Workflow
- Trace the progress of a Workflow
- Cancel or terminate a Workflow
- And perform other operations

The Temporal CLI provides developers with direct access to a Temporal Service for local development purposes.

## Event History

With Temporal, your Workflows recover from crashes automatically using the [Event History](/encyclopedia/event-history), a durable log of everything that has happened in the lifecycle of a Workflow Execution. The Temporal Service persists these Events as execution progresses. During [Replay](/workflow-execution#replay), a Worker uses the recorded history to reconstruct the Workflow Execution's state.

Temporal uses the Event History to record every step taken along the way. Each time your Workflow Definition makes an API call to execute an Activity or start a Timer for instance, it doesn’t perform the action directly. Instead, it sends a Command to the Temporal Service.

A Command is a requested action issued by a Worker to the Temporal Service after a Workflow Task Execution completes. The Temporal Service will act on these Commands such as scheduling an Activity or scheduling a timer. These Commands are then mapped to Events which are persisted in case of failure. For example, if the Worker crashes, the Worker uses the Event History to replay the code and recreate the state of the Workflow Execution to what it was immediately before the crash. It then resumes progress from the point of failure as if the failure never occurred.

For a deep dive into the Event History or Commands, visit the Temporal [Encyclopedia page](/encyclopedia/event-history) or enroll in one of [our courses](https://learn.temporal.io/courses/).

## Reliable as gravity

Temporal provides effortless durability, allowing applications to run for days, weeks, or even years without interruption even if the underlying infrastructure fails.
This is what we call _Durable Execution_. Temporal also represents a paradigm shift in software development.
It's not just about making existing patterns more reliable; it's about enabling entirely new approaches to building complex, distributed systems.

Temporal simplifies state management and developers don't have to write tons of extra code to handle every possible thing that could go wrong.
With built-in scalability, Temporal ensures that your application runs smoothly, no matter its size or complexity.

> **💡 Tip:**
>
> Pick a [Quickstart](/quickstarts) for your language to install a Temporal SDK and run your first Workflow.
> You can also follow one of our tutorials to [Get Started](https://learn.temporal.io/getting_started/) learning how to use a Temporal SDK.
> Or, jump straight into an [Introduction to Temporal 101](https://learn.temporal.io/courses/temporal_101/) course.
>
> Looking for more? Explore Temporal's [Resource Library](https://temporal.io/resources).
