Temporal Decision Framework
This page is part of the Temporal Knowledge Hub.
This guide helps you quickly determine whether Temporal is the right solution for your use case.
Temporal decision framework
Tailor these questions to match your organization's technical landscape.
To decide whether Temporal is a suitable solution for your use case, ask yourself 3 questions:
- Does your digital process have multiple steps that can fail independently?
- Do you need the process to survive failures?
- Does your process span multiple services, APIs, or long time periods (i.e. >10 seconds)?
If you answered "yes" to 2 or more questions, Temporal is likely a good fit. Continue reading.
If you answered "no" to all three questions, consider alternatives first. Skip to Bad use cases for Temporal to explore alternative solutions.
Temporal benefits
Highlight benefits that address your developers' pain points.
- Durable Execution - your code will always complete.
- Automatic retry, recovery from infrastructure failures, durable state persistence, and exactly-once execution semantics—all without custom code.
- Developer velocity - ship faster with less code to maintain.
- Write business logic in familiar languages, collaborate with developers across language barriers, eliminate boilerplate infrastructure code, and leverage built-in testing for rapid iteration.
- Audit trail - complete visibility in your digital process.
- Immutable execution history, self-documenting Workflow execution, and operational transparency.
- Priority and Fairness - enterprise-grade multi-tenancy.
- Priority-based execution, and fair distribution of Workflow Executions across your customer base or tenant.
- Workflow fabric - break down development silo.
- Cross-team Workflow orchestration with reusable operations, cross-namespace coordination, and service registry for discoverability.
Good use cases for Temporal
Replace with use cases from your domain. See Customer Stories for inspiration.
Business transactions
- Payment processing
- Why Temporal is perfect: Multi-party coordination with compensation logic, audit requirements, idempotency guarantees, timeout handling for authorizations that expire, and scalability to support more than billions of transactions per day.
- Order management
- Why Temporal is perfect: Long-running state machines spanning hours to days with complex state transitions, human intervention, parallel operations, different order priority, variable timing per order, and support for more than millions of orders per hour.
- Mortgage underwriting
- Why Temporal is perfect: Weeks-long processes with complex decision trees, multiple external integrations, human approvals, strict compliance requirements, and durable state persistence.
Customer experience
- Marketing campaign
- Why Temporal is perfect: Multi-channel orchestration with time-based sequencing and long campaign durations with dynamic personalization.
- Customer onboarding
- Why Temporal is perfect: Great for long-running, multi-step, and sometimes human-in-the-loop processes that onboarding often requires.
Data engineering
- Document processing
- Why Temporal is perfect: Multi-stage pipelines with variable processing times, external service dependencies, rate limit requirements, and coordinated large-scale processing.
- Data pipeline
- Why Temporal is perfect: Data orchestration with complex dependencies, incremental processing, backfill coordination, cross-system dependencies, SLA monitoring, and idempotent execution.
- Video processing
- Why Temporal is perfect: Long-running compute, resource-intensive GPU activities, complex pipelines with parallel variant generation, failure isolation, and cost-optimized scheduling.
AI/ML
- ML inference
- Why Temporal is perfect: Multi-model orchestration with fallback logic, batch and real-time handling, feature engineering, and comprehensive audit trail.
- RAG
- Why Temporal is perfect: Multi-step retrieval with hybrid search, context assembly from multiple sources, LLM orchestration with retries and fallbacks, and evaluation pipeline tracking.
- AI agents
- Why Temporal is perfect: Long-running autonomous execution with tool orchestration, planning and replanning, human-in-the-loop controls, durable memory management, and safety guardrails.
Operational
- Infrastructure management
- Why Temporal is perfect: Multi-step provisioning with automatic rollback on failure, idempotent cloud operations, change management, and complete auditability.
- CI/CD
- Why Temporal is perfect: Complex pipeline stages with environment promotion gates, parallel test execution, conditional deployment strategies, automatic rollback monitoring, and approval gates.
Bad use cases for Temporal
Add anti-patterns specific to your organization's domain and technology stack.
- Simple Request-Response APIs
- No failure recovery needed
- Better alternative: REST / gRPC server
- Real-time stream processing
- High throughput (>1M events/sec)
- Ultra-low latency requirements (<100ms)
- No durable state needed
- Better alternative: Flink, Amazon Kinesis, Google Cloud Dataflow
- Database triggers & stored procedures
- Logic tightly coupled to database
- Needs transactional guarantees within single DB
- No external service calls
- Better alternative: database native features
- Pure Compute Workloads
- CPU/GPU intensive calculations
- No I/O or service calls
- No state management needed
- Better alternative: AWS Lambda, Spark, Ray
Next steps
Add relevant links (i.e. support channel) for your developers to explore next.
To learn more:
- Run your first Temporal Workflow in under 30 minutes
- Schedule a discovery session with the Temporal platform team to validate your use case
- See how other teams are using Temporal today