Runtime for managing distributed application state at scale.
Scalable and reliable runtime
for durable function executions.
Guarantees durable execution of application code.
Two main parts:
Stateful function to orchestrate the application.
All variable and threads in a workflow are stored in the Temporal service.
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.
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.
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 || ||---------------------------------------------------|| | | |-----------------------------------------------------|