Temporal Documentation

repository·main·Indexed 41 days ago

https://github.com/temporalio/documentation

Central information corpus for Temporal, featuring guides and architectural information for its components and SDKs. Includes best practices for Temporal Cloud authentication (mTLS and API keys), credential rotation, service account configuration, pre-production resilience testing, and load testing strategies.

Tokens
383.1K
Snippets
902
Records
1.3K
Agent score
50%

What's inside Temporal

  1. Overview of the Temporal Cloud Operations API

    main

    The Temporal Cloud Operations API (Cloud Ops API) is used to programmatically manage Temporal Cloud Control Plane resources. This includes managing Namespaces, Users, Service Accounts, and API keys. It is the same API used by the Temporal Cloud Terraform Provider, the tcld CLI, and the Web UI.

    Important Note: The Cloud Ops API is for managing control plane resources only. It does not allow interaction with individual Workflows or Activities.

  2. Overview of the Temporal Web UI

    main

    The Temporal Web UI is a tool for browsing, filtering, and inspecting Workflow Executions. It provides visibility into Workflow state and metadata for debugging purposes.

    Key availability details:

    • Temporal CLI: Included with every release.
    • Temporal Cloud: Available as a built-in feature.
    • Self-hosted: Can be configured for your own environment (see UI configuration reference).

    Open source repositories for the UI include temporalio/ui and temporalio/ui-server.

  3. Overview of Temporal TypeScript SDK development topics

    main

    The Temporal TypeScript SDK provides several core abstractions and features for building distributed applications:

    Core Primitives

    • Workflows: Orchestrate the execution logic. Topics include Child Workflows, Continue-As-New, Cancellation, Timeouts, Schedules, Timers, and Versioning.
    • Activities: Perform individual tasks. Topics include Activity Execution, Timeouts, Asynchronous Activities, and handling Benign exceptions.
    • Workers: Run the processes that host Workflows and Activities. Supports Interceptors for cross-cutting concerns.
    • Temporal Client: Used to interact with the Temporal Service, including managing Namespaces.

    Advanced Features

    • Temporal Nexus: A specialized feature set for standalone operations and specific feature guides.
    • Platform & Observability: Tools for monitoring and enriching the Temporal UI.
    • Best Practices: Guidance on Testing, Debugging, Data Handling (Converters and encryption), and the Entity pattern.
  4. Overview of the LLM Markdown Pipeline

    main

    The LLM Markdown Pipeline generates clean, readable Markdown versions of every documentation page at /<path>.md (located alongside the rendered HTML). This is designed for LLM ingestion and search indexing, providing a version of the content that strips away MDX-specific noise like imports, JSX components, and frontmatter.

    Key Outputs:

    • outDir/<url-path>.md: A clean, per-page Markdown file.
    • outDir/llms.txt and outDir/<section>/llms.txt: Structured indices following the llmstxt.org format.
    • outDir/llms-full.txt: A single file containing the entire corpus, where each entry includes its source URL, intended for pipelines that perform their own chunking.
  5. Understand the Temporal documentation structure

    main

    The Temporal documentation is organized into several distinct sections based on your current goal. Use this guide to navigate to the right information:

    • Quickstarts: Tutorials to get a "Hello World" running in your language of choice using the development server.
    • Evaluate: High-level explanations of Temporal's value proposition, features, and Temporal Cloud's operational characteristics (pricing, SLA, regions) to help you decide if Temporal fits your needs.
    • Develop: Implementation-focused "how-to" guides for software developers. Each SDK section covers installation, Workflows, Activities, Workers, Clients, message passing, testing, observability, and Nexus.
    • Temporal Cloud: Operational guidance for teams using the managed service, including namespace/user management, certificates, API keys, billing, metrics, Nexus, SAML, and audit logging.
    • Deploy to production: Infrastructure-focused guidance for deploying application Workers or running a self-hosted Temporal Service.
    • CLI (temporal): Reference and how-to guides for the temporal command line tool, including installation, configuration, and the full command tree.
    • Design patterns: A catalog of reusable, code-level implementation techniques (e.g., fan out work, rate-limiting, retry shapes) grouped by problem domain.
    • References: Exhaustive technical details including SDK API docs, metric definitions, event types, error catalogs, and configuration references.
    • Troubleshooting: Targeted guides for resolving specific errors or operational problems (e.g., performance bottlenecks).
    • Best practices: Prescriptive, validated guidance for running Temporal at scale (e.g., namespace management, worker tuning).
    • Encyclopedia: Deep-dive conceptual explanations of Temporal's internals and design, independent of specific SDKs.
    • Durable AI: Resources for building AI applications and agents on Temporal (agents, processing pipelines, model training).
    • Develop with AI: Guidance on using AI coding assistants to write and deploy Temporal workloads.
  6. Configure access restrictions and security boundaries

    main

    Temporal provides several configuration surfaces to limit and control caller access and service behavior in self-hosted deployments:

    • Cluster & Server configuration: Use these for static configuration settings for servers and services.
    • Dynamic configuration: Use these for runtime-updatable settings to tune behavior and control without restarts.
    • Client environment configuration: Use these environment variable settings to configure Temporal clients.
  7. Compare Worker deployment patterns for HA/DR

    main

    When designing for High Availability (HA) and Disaster Recovery (DR) on Temporal Cloud, you must choose a Worker deployment pattern. These patterns trade off recovery time (RTO), cost, and operational complexity.

    Note: While a Temporal Cloud Namespace always has exactly one active region at a time, you can still implement an Active/Active Worker pattern because Workers do not need to reside in the same region as the active Namespace replica.

  8. Explore Temporal core concepts in the Encyclopedia

    main

    The Encyclopedia serves as a deep-dive reference for the Temporal platform. It is organized into several conceptual groups:

    • Workflows & Activities: Detailed definitions of the execution model, limits, timers, and failure detection.
    • Workers: Concepts regarding tasks, task queues, sticky execution, and graceful shutdown.
    • Event History: A deep dive into how Temporal records state changes.
    • Communication: Understanding Workflow Message Passing (Signals, Queries, Updates) and Child Workflows.
    • Visibility: How to use list filters and search attributes to find workflows.
    • Temporal Service & Nexus: Architecture, persistence, replication, and the Nexus service registry/patterns.
    • Extensibility: Advanced topics like data conversion (payload converters, remote encoding), context propagation, and interceptors.
  9. Compare Temporal Cloud support plans and services

    main

    Temporal Cloud support is included in every plan, but the depth of technical guidance, response times, and available channels vary by tier.

    Service Tiers Overview

    • Developer & Business: Focus on break-fix support and general guidance (platform config, access, and basic inquiries).
    • Enterprise: Provides advanced support from developer experts, including Workflow troubleshooting, SDK implementations, and quarterly code reviews. Includes a Private Slack channel.
    • Mission Critical: Provides the highest level of expertise, including proactive cost optimization, performance recommendations based on real-time tests, and Workflow latency monitoring. Includes a Private Slack channel and a Dedicated Platform Architect.

    Support Channels by Plan

    • Developer & Business: Community forums and the Temporal Support Portal.
    • Enterprise & Mission Critical: Community forums, Temporal Support Portal, and Private Slack.
  10. Understand the Temporal SDK structure and capabilities

    main

    Each Temporal SDK documentation follows a standard structure to help you build and manage Temporal applications. While coverage varies by language, you can typically find guidance on the following core components:

    • Setup/Installation: Instructions for installing the SDK and connecting to a Temporal cluster.
    • Workflows: Core logic including basics, child workflows, continue-as-new, message passing, cancellation, timeouts, schedules, timers, versioning, and side effects.
    • Activities: Task execution, including standalone activities, timeouts, async completion, and heartbeats.
    • Workers: How to run a worker process, including interceptors and serverless worker support where available.
    • Client: How to create and use the Temporal Client and perform namespace operations.
    • Nexus: Feature guides and quickstarts for the Nexus service (available in Go, Java, Python, TypeScript, .NET, and Rust).
    • Platform: Guidance on observability and enriching the Temporal Web UI.
    • Best Practices: Testing, debugging, error handling, and data handling (such as converters, encryption, and external storage).
    • Integrations: Framework-specific guides (e.g., Spring Boot for Java, LangGraph for Python, or Rails for Ruby).
  11. What is the Temporal Proxy and why use it?

    main

    The Temporal Proxy is a gRPC proxy that sits between your Temporal SDK Clients, Workers, and the Temporal Web UI on one side and one or more upstream Temporal Services (such as local development, self-hosted, or Temporal Cloud) on the other.

    Key Benefits

    • Decoupling: Prevents connection details (host, TLS material, credentials, and exact Namespace names) from leaking into your application code.
    • Environment Agnostic: Workers can talk plaintext to a single local endpoint using a short Namespace name. The proxy handles the complexity of adding TLS, credentials, and Namespace translation for the specific upstream.
    • Routing: Allows a single endpoint to route requests to different upstreams based on the Namespace used by the client.