What is Temporal?
Temporal is a durable execution platform that makes your code crash-proof by automatically persisting workflow state and handling failures transparently. Think of it as a way to write distributed systems code as if failure doesn't exist.
Core Concepts
🔄 Durable Execution
- State Persistence: Every step of your workflow is automatically saved to a database
- Automatic Recovery: If your code crashes, it resumes exactly where it left off
- No Lost Progress: Zero data loss even during infrastructure failures
🏗️ Architecture Components
Workflows: The main business logic that orchestrates your application flow
- Written in regular TypeScript/Python/Go/Java code
- Deterministic and replayable
- Can run for minutes, hours, days, or even years
Activities: Individual tasks that interact with external systems
- Handle API calls, database operations, file I/O
- Automatic retries with exponential backoff
- Timeout handling and error recovery
Workers: Processes that execute your workflows and activities
- Can be scaled horizontally
- Pull tasks from queues automatically