Runtime for managing distributed application state at scale.
Scalable and reliable runtime
for durable function executions.
Function Executions
in UI = Temporal Workflow Executions
.Guarantees durable execution of application code.
If you have critical operation that is expensive when failing (reliability problem), you need to use a queue.
Two main parts to Temporal:
Workflows
and Activities
.Workflows default UI address in local environment:
http://localhost:8233/namespaces/default/workflows
Worker holds and executes the Workflow.
Workflow is a stateful function to orchestrate the application.
When a server fails, the Temporal will continue exactly at the line of failure before the server crash.
You don't need queues or databases to track temporary state of the application.
Any number of workflows can process the activities.
Encapsulates code that interacts with an unreliable external services.
You don't need to write retry logics when an external call or system fails.
Activities do not have states, but it has native retry logic and automatic timeouts.
Platform > Cluster > Worker > Workflows > Activities > Gateways
Consists of a Temporal Cluster
and Worker Processes
.
Temporal Cluster = supervising software Worker Processes = application code
Temporal Platform |-----------------------------------------------------| | | | |Workerprocess 1| Workerprocess 2| Workerprocess 3| | | | ||---------------------------------------------------|| ||Temporal Cluster || ||---------------------------------------------------|| | | |-----------------------------------------------------|
Each worker has its own configuration set.